2012-09-15 23:19:56 +00:00
|
|
|
class Libmusicbrainz < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "MusicBrainz Client Library"
|
2015-02-22 04:38:02 +00:00
|
|
|
homepage "https://musicbrainz.org/doc/libmusicbrainz"
|
|
|
|
url "https://github.com/metabrainz/libmusicbrainz/releases/download/release-5.1.0/libmusicbrainz-5.1.0.tar.gz"
|
|
|
|
sha1 "1576b474c777bb9c4ff906853ef1d3bb14915f50"
|
2012-09-15 23:19:56 +00:00
|
|
|
|
2014-07-03 19:34:35 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-02-22 04:50:57 +00:00
|
|
|
sha1 "96390dbcc935eba33bf6908cda20f556991fbf8c" => :yosemite
|
|
|
|
sha1 "b985f402432c3bafa240cd6541c518100fbb5230" => :mavericks
|
|
|
|
sha1 "b336d4eb2c17a1143cefd2838f614ea685f35e34" => :mountain_lion
|
2014-07-03 19:34:35 +00:00
|
|
|
end
|
|
|
|
|
2015-02-22 04:38:02 +00:00
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "neon"
|
2012-09-15 23:19:56 +00:00
|
|
|
|
|
|
|
def install
|
2014-02-26 05:52:56 +00:00
|
|
|
neon = Formula["neon"]
|
2012-09-15 23:19:56 +00:00
|
|
|
neon_args = %W[-DNEON_LIBRARIES:FILEPATH=#{neon.lib}/libneon.dylib
|
2015-02-22 04:38:02 +00:00
|
|
|
-DNEON_INCLUDE_DIR:PATH=#{neon.include}/neon]
|
2012-09-15 23:19:56 +00:00
|
|
|
system "cmake", ".", *(std_cmake_args + neon_args)
|
2015-02-22 04:38:02 +00:00
|
|
|
system "make", "install"
|
2012-09-15 23:19:56 +00:00
|
|
|
end
|
|
|
|
end
|