2011-11-08 02:32:18 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Ocp < Formula
|
|
|
|
homepage "http://sourceforge.net/p/opencubicplayer/home/"
|
2014-02-27 14:19:55 +00:00
|
|
|
url "https://downloads.sourceforge.net/project/opencubicplayer/ocp-0.1.21/ocp-0.1.21.tar.bz2"
|
2012-09-02 18:50:23 +00:00
|
|
|
sha1 "aaa16cf1979c572b09c73e7cc61350bfc4477380"
|
2011-11-08 02:32:18 +00:00
|
|
|
|
2012-09-02 18:50:23 +00:00
|
|
|
depends_on "libvorbis"
|
2013-01-27 00:26:46 +00:00
|
|
|
depends_on "mad" => :recommended
|
|
|
|
depends_on "flac" => :recommended
|
|
|
|
depends_on "adplug" => :optional
|
2011-11-08 02:32:18 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.deparallelize
|
|
|
|
|
2012-09-02 18:50:23 +00:00
|
|
|
args = %W[
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--without-x11
|
|
|
|
--without-sdl
|
|
|
|
--without-desktop_file_install
|
|
|
|
]
|
2011-11-08 02:32:18 +00:00
|
|
|
|
2013-01-27 00:26:46 +00:00
|
|
|
args << "--without-mad" if build.without? "mad"
|
|
|
|
args << "--without-flac" if build.without? "flac"
|
|
|
|
args << "--with-adplug" if build.with? "adplug"
|
2011-11-08 02:32:18 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|