2011-07-10 09:53:53 +00:00
|
|
|
class Alure < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Manage common tasks with OpenAL applications"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://kcat.strangesoft.net/alure.html"
|
|
|
|
url "http://kcat.strangesoft.net/alure-releases/alure-1.2.tar.bz2"
|
|
|
|
sha256 "465e6adae68927be3a023903764662d64404e40c4c152d160e3a8838b1d70f71"
|
2011-07-10 09:53:53 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "flac" => :optional
|
|
|
|
depends_on "fluid-synth" => :optional
|
|
|
|
depends_on "libogg" => :optional
|
|
|
|
depends_on "libsndfile" => :optional
|
|
|
|
depends_on "libvorbis" => :optional
|
|
|
|
depends_on "mpg123" => :optional
|
2011-07-10 09:53:53 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
# fix a broken include flags line, which fixes a build error.
|
|
|
|
# Not reported upstream.
|
2013-12-14 18:13:11 +00:00
|
|
|
# https://github.com/Homebrew/homebrew/pull/6368
|
2014-06-22 20:31:19 +00:00
|
|
|
if build.with? "libvorbis"
|
|
|
|
inreplace "CMakeLists.txt", "${VORBISFILE_CFLAGS}",
|
2015-08-03 12:55:31 +00:00
|
|
|
`pkg-config --cflags vorbisfile`.chomp
|
2014-06-22 20:31:19 +00:00
|
|
|
end
|
2011-07-10 09:53:53 +00:00
|
|
|
|
|
|
|
cd "build" do
|
|
|
|
system "cmake", "..", *std_cmake_args
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2011-07-10 09:53:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|