diff options
| author | Jack Nagel | 2013-11-15 17:58:33 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-11-15 20:14:19 -0600 |
| commit | dce39ee72b376817d579bf9af2012f54681de769 (patch) | |
| tree | 8d3effc5b2572c9e65ad0c63333ec1e1c5a571bf /Library | |
| parent | b840f5a09698407a0c8dc058f99e15bd811d3fb9 (diff) | |
| download | homebrew-dce39ee72b376817d579bf9af2012f54681de769.tar.bz2 | |
uade: fix build under superenv
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/uade.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Library/Formula/uade.rb b/Library/Formula/uade.rb index 746b4b97e..e5e792eb2 100644 --- a/Library/Formula/uade.rb +++ b/Library/Formula/uade.rb @@ -10,8 +10,33 @@ class Uade < Formula depends_on 'pkg-config' => :build depends_on 'libao' + # Upstream patch to fix compiler detection under superenv + def patches; DATA; end unless build.head? + def install system "./configure", "--prefix=#{prefix}" system "make install" end end + +__END__ +diff --git a/configure b/configure +index 05bfa9b..a73608e 100755 +--- a/configure ++++ b/configure +@@ -399,13 +399,13 @@ if test -n "$sharedir"; then + uadedatadir="$sharedir" + fi + +-$NATIVECC -v 2>/dev/null >/dev/null ++$NATIVECC --version 2>/dev/null >/dev/null + if test "$?" != "0"; then + echo Native CC "$NATIVECC" not found, please install a C compiler + exit 1 + fi + +-$TARGETCC -v 2>/dev/null >/dev/null ++$TARGETCC --version 2>/dev/null >/dev/null + if test "$?" != "0"; then + echo Target CC "$TARGETCC" not found, please install a C compiler + exit 1 |
