homebrew-core/Formula/libmusicbrainz.rb
2012-02-24 21:35:51 -08:00

24 lines
689 B
Ruby

require 'formula'
class Libmusicbrainz < Formula
homepage 'http://musicbrainz.org'
url 'http://ftp.musicbrainz.org/pub/musicbrainz/libmusicbrainz-3.0.3.tar.gz'
md5 'f4824d0a75bdeeef1e45cc88de7bb58a'
devel do
url 'ftp://ftp.musicbrainz.org/pub/musicbrainz/libmusicbrainz-4.0.0beta1.tar.gz'
md5 '7dffa8fa08e4c0bc8119b8f48a15da41'
version '4.0.0beta1'
end
depends_on 'neon'
depends_on 'cmake' => :build
def install
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} ."
system "make install"
end
end