2011-06-23 13:55:21 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Uade < Formula
|
|
|
|
homepage 'http://zakalwe.fi/uade/'
|
2013-01-28 03:02:29 +00:00
|
|
|
url 'http://zakalwe.fi/uade/uade2/uade-2.13.tar.bz2'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '61c5ce9dfecc37addf233de06be196c9b15a91d8'
|
2011-06-23 13:55:21 +00:00
|
|
|
|
2013-06-15 18:38:54 +00:00
|
|
|
head 'git://zakalwe.fi/uade'
|
|
|
|
|
2011-06-23 13:55:21 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'libao'
|
|
|
|
|
2013-11-15 23:58:33 +00:00
|
|
|
# Upstream patch to fix compiler detection under superenv
|
2014-02-18 22:49:03 +00:00
|
|
|
def patches
|
|
|
|
DATA unless build.head?
|
|
|
|
end
|
2013-11-15 23:58:33 +00:00
|
|
|
|
2011-06-23 13:55:21 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2013-11-15 23:58:33 +00:00
|
|
|
|
|
|
|
__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
|