homebrew-core/Formula/ocp.rb

32 lines
786 B
Ruby
Raw Normal View History

require "formula"
class Ocp < Formula
homepage "http://sourceforge.net/p/opencubicplayer/home/"
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"
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
def install
ENV.deparallelize
2012-09-02 18:50:23 +00:00
args = %W[
--prefix=#{prefix}
--without-x11
--without-sdl
--without-desktop_file_install
]
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"
system "./configure", *args
system "make"
system "make install"
end
end