aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Gravelyn2014-06-15 14:53:49 -0700
committerJack Nagel2014-07-18 19:35:48 -0500
commit0971e56c9d86bde4644e63ad580ed819ad76ba5f (patch)
tree9392e68b2798bfa181c6b80ac06e73628a34f887
parenta55ce7f0ca8a8e6e96164303b1e5222b70634721 (diff)
downloadhomebrew-0971e56c9d86bde4644e63ad580ed819ad76ba5f.tar.bz2
New formula: OpenAL Soft
Closes #30177. Closes #30941. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
-rw-r--r--Library/Formula/openal-soft.rb28
1 files changed, 28 insertions, 0 deletions
diff --git a/Library/Formula/openal-soft.rb b/Library/Formula/openal-soft.rb
new file mode 100644
index 000000000..11a752b26
--- /dev/null
+++ b/Library/Formula/openal-soft.rb
@@ -0,0 +1,28 @@
+require "formula"
+
+class OpenalSoft < Formula
+ homepage "http://kcat.strangesoft.net/openal.html"
+ url "http://kcat.strangesoft.net/openal-releases/openal-soft-1.15.1.tar.bz2"
+ sha1 "a0e73a46740c52ccbde38a3912c5b0fd72679ec8"
+
+ depends_on "cmake" => :build
+
+ def install
+ system "cmake", ".", *std_cmake_args
+ system "make", "install"
+ end
+
+ test do
+ (testpath/"test.c").write <<-EOS.undent
+ #include "AL/al.h"
+ #include "AL/alc.h"
+ int main() {
+ ALCdevice *device;
+ device = alcOpenDevice(0);
+ alcCloseDevice(device);
+ return 0;
+ }
+ EOS
+ system ENV.cc, "test.c", "-lopenal"
+ end
+end