aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Pavlik2010-05-20 20:36:28 -0500
committerAdam Vandenberg2010-06-05 20:43:17 -0700
commit9dc40ecd8eb81ee05da6a28005f96afead92b51b (patch)
treebc877f1b5748f39c6b81c3f48213ab58f5e2e1a9
parentfe244b9cdb9be1cb207a0214bea51750bcfe4490 (diff)
downloadhomebrew-9dc40ecd8eb81ee05da6a28005f96afead92b51b.tar.bz2
freealut complements OpenAL
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/freealut.rb35
1 files changed, 35 insertions, 0 deletions
diff --git a/Library/Formula/freealut.rb b/Library/Formula/freealut.rb
new file mode 100644
index 000000000..090dbdcb3
--- /dev/null
+++ b/Library/Formula/freealut.rb
@@ -0,0 +1,35 @@
+require 'formula'
+
+class Freealut <Formula
+ url 'http://connect.creativelabs.com/openal/Downloads/ALUT/freealut-1.1.0.tar.gz'
+ homepage 'http://connect.creativelabs.com/openal/Documentation/The%20OpenAL%20Utility%20Toolkit.htm'
+ md5 'e089b28a0267faabdb6c079ee173664a'
+ aka 'alut'
+
+ def patches
+ # Adds the OpenAL frameworks to the library list so linking succeeds
+ DATA
+ end
+
+ def install
+ system "./autogen.sh"
+ system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}", "--mandir=#{man}"
+ system "make install"
+ end
+end
+
+__END__
+diff --git a/configure.ac b/configure.ac
+index 2b26d6d..4001db1 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -83,7 +83,8 @@ AC_DEFINE([ALUT_BUILD_LIBRARY], [1], [Define to 1 if you want to build the ALUT
+
+ # Checks for libraries. (not perfect yet)
+ AC_SEARCH_LIBS([pthread_self], [pthread])
+-AC_SEARCH_LIBS([alGetError], [openal32 openal])
++# Use Mac OS X frameworks
++LIBS="$LIBS -framework IOKit -framework OpenAL"
+
+ ################################################################################
+ # Checks for header files.