aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLin Jen-Shin2011-07-10 17:53:53 +0800
committerAdam Vandenberg2012-08-10 07:43:24 -0700
commitf7e55058e303bb53b5693ffa8932a5c2683dded1 (patch)
treefca116cb04c1947325865235e321b5ffb5d9ed53
parent15bdbb0a8f0621e4a4c086220aae62b3ad75ec05 (diff)
downloadhomebrew-f7e55058e303bb53b5693ffa8932a5c2683dded1.tar.bz2
ALURE 1.2
ALURE is a utility library to help manage common tasks with OpenAL Closes #6368. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/alure.rb28
1 files changed, 28 insertions, 0 deletions
diff --git a/Library/Formula/alure.rb b/Library/Formula/alure.rb
new file mode 100644
index 000000000..2d64a64d9
--- /dev/null
+++ b/Library/Formula/alure.rb
@@ -0,0 +1,28 @@
+require 'formula'
+
+class Alure < Formula
+ homepage 'http://kcat.strangesoft.net/alure.html'
+ url 'http://kcat.strangesoft.net/alure-releases/alure-1.2.tar.bz2'
+ sha1 'f033f0820c449ebff7b4b0254a7b1f26c0ba485b'
+
+ depends_on 'cmake' => :build
+ depends_on 'flac' => :optional
+ depends_on 'fluidsynth' => :optional
+ depends_on 'libogg' => :optional
+ depends_on 'libsndfile' => :optional
+ depends_on 'libvorbis' => :optional
+ depends_on 'mpg123' => :optional
+
+ def install
+ # fix a broken include flags line, which fixes a build error.
+ # Not reported upstream.
+ # https://github.com/mxcl/homebrew/pull/6368
+ inreplace 'CMakeLists.txt', '${VORBISFILE_CFLAGS}',
+ %x[pkg-config --cflags vorbisfile].chomp
+
+ cd "build" do
+ system "cmake", "..", *std_cmake_args
+ system "make install"
+ end
+ end
+end