Homebrew / legacy-homebrew

💀 The former home of Homebrew/homebrew (deprecated)
https://brew.sh
26.96k stars 11.34k forks source link

fceux does not build (to non-/usr/local) #29257

Closed adamv closed 10 years ago

adamv commented 10 years ago
$ brew install -v fceux 
==> Downloading https://downloads.sourceforge.net/project/fceultra/Source%20Code/2.2.2%20src/fceux-2.2.2.src.tar.gz
Already downloaded: /Library/Caches/Homebrew/fceux-2.2.2.tar.gz
==> Verifying fceux-2.2.2.tar.gz checksum
tar xf /Library/Caches/Homebrew/fceux-2.2.2.tar.gz
==> Patching
patching file SConstruct
patching file src/drivers/sdl/SConscript
==> /Users/adamv/.hb/opt/scons/bin/scons
scons: Reading SConscript files ...
platform:  darwin
Checking for C library dw... no
Checking for C function asprintf()... yes
Checking for inflate in C library z... yes
Checking for C library SDL... yes
/bin/sh: sdl-config: command not found
OSError: 'sdl-config --cflags --libs' exited 127:
  File "/private/tmp/fceux-ZoSB/fceux-2.2.2/SConstruct", line 112:
    env.ParseConfig('sdl-config --cflags --libs')
  File "/Users/adamv/homebrew/Cellar/scons/2.3.1/libexec/scons-local/SCons/Environment.py", line 1555:
    return function(self, self.backtick(command))
  File "/Users/adamv/homebrew/Cellar/scons/2.3.1/libexec/scons-local/SCons/Environment.py", line 597:
    raise OSError("'%s' exited %d" % (command, status))
==> Configuration
HOMEBREW_VERSION: 0.9.5
HEAD: e17724b25dd453f8046998353cbe46cfdf6d63ed
HOMEBREW_PREFIX: /Users/adamv/.hb
HOMEBREW_CELLAR: /Users/adamv/homebrew/Cellar
CPU: 8-core 64-bit haswell
OS X: 10.9.2-x86_64
Xcode: 5.1.1
CLT: 5.1.0.0.1.1396320587
X11: 2.7.5 => /opt/X11
==> ENV
CFLAGS: -Os -w -pipe -march=native -mmacosx-version-min=10.9
CXXFLAGS: -Os -w -pipe -march=native -mmacosx-version-min=10.9
CPPFLAGS: -I/Users/adamv/.hb/opt/icu4c/include -I/Users/adamv/.hb/opt/gettext/include -isystem/Users/adamv/.hb/include -F/Users/adamv/.hb/Frameworks -I/opt/X11/include -I/opt/X11/include/freetype2
LDFLAGS: -L/Users/adamv/.hb/opt/icu4c/lib -L/Users/adamv/.hb/opt/libffi/lib -L/Users/adamv/.hb/opt/gettext/lib -L/Users/adamv/.hb/lib  -F/Users/adamv/.hb/Frameworks -Wl,-headerpad_max_install_names -L/opt/X11/lib
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /Users/adamv/.hb/opt/icu4c:/Users/adamv/.hb/opt/libffi:/Users/adamv/.hb/opt/gettext:/Users/adamv/.hb:/opt/X11
CMAKE_INCLUDE_PATH: /opt/X11/include:/opt/X11/include/freetype2
CMAKE_FRAMEWORK_PATH: /Users/adamv/.hb/Frameworks
MACOSX_DEPLOYMENT_TARGET: 10.9
PKG_CONFIG_PATH: /Users/adamv/.hb/opt/icu4c/lib/pkgconfig:/Users/adamv/.hb/opt/libffi/lib/pkgconfig
PKG_CONFIG_LIBDIR: /Users/adamv/.hb/lib/pkgconfig:/Users/adamv/.hb/share/pkgconfig:/Users/adamv/homebrew/Library/ENV/pkgconfig/10.9:/usr/lib/pkgconfig:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig
ACLOCAL_PATH: /Users/adamv/.hb/opt/gettext/share/aclocal:/opt/X11/share/aclocal
PATH: /Users/adamv/.hb/opt/icu4c/bin:/Users/adamv/.hb/opt/gettext/bin:/Users/adamv/.gem/ruby/2.0.0/bin:/usr/texbin:/Users/adamv/.hb/bin:/Users/adamv/bin-local:/Users/adamv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/texbin:/Users/adamv/homebrew/Library/Contributions/cmd:/opt/X11/bin
CPATH: /Users/adamv/.hb/include

But:

$ sdl-config --cflags --libs
-I/Users/adamv/.hb/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE
-L/Users/adamv/.hb/lib -lSDLmain -lSDL -Wl,-framework,Cocoa
[~/homebrew] (more-lua)
$ echo $?
0
adamv commented 10 years ago

No doubt scons is stripping the path.

jacknagel commented 10 years ago

Upstream applied a patch I provided to let PKG_CONFIG_PATH into the build, yet it doesn't use pkg-config to locate sdl. However it will happily use pkg-config to find sdl2. Go figure.

adamv commented 10 years ago

Closing as I don't use this software and no users have complained.