2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-08-08 12:52:48 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libmusicbrainz < Formula
|
2010-06-11 20:41:51 +00:00
|
|
|
homepage 'http://musicbrainz.org'
|
2011-07-03 18:30:45 +00:00
|
|
|
if ARGV.flag? '--devel'
|
|
|
|
version '4.0.0beta1'
|
|
|
|
url 'ftp://ftp.musicbrainz.org/pub/musicbrainz/libmusicbrainz-4.0.0beta1.tar.gz'
|
|
|
|
md5 '7dffa8fa08e4c0bc8119b8f48a15da41'
|
|
|
|
else
|
|
|
|
url 'http://ftp.musicbrainz.org/pub/musicbrainz/libmusicbrainz-3.0.3.tar.gz'
|
|
|
|
md5 'f4824d0a75bdeeef1e45cc88de7bb58a'
|
|
|
|
end
|
2009-08-08 12:52:48 +00:00
|
|
|
|
2009-09-18 18:16:39 +00:00
|
|
|
depends_on 'neon'
|
2010-11-17 21:40:04 +00:00
|
|
|
depends_on 'cmake' => :build
|
2009-08-08 12:52:48 +00:00
|
|
|
|
|
|
|
def install
|
2010-06-11 20:41:51 +00:00
|
|
|
neon = Formula.factory("neon")
|
|
|
|
neon_args = "-DNEON_LIBRARIES:FILEPATH=#{neon.lib}/libneon.dylib -DNEON_INCLUDE_DIR:PATH=#{neon.include}/neon"
|
|
|
|
|
|
|
|
system "cmake . #{std_cmake_parameters} #{neon_args}"
|
2009-08-08 12:52:48 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2010-11-17 21:40:04 +00:00
|
|
|
end
|