homebrew-core/Formula/adplug.rb

35 lines
1.1 KiB
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Adplug < Formula
desc "Free, hardware independent AdLib sound player library"
homepage "http://adplug.sf.net"
url "https://downloads.sourceforge.net/project/adplug/AdPlug%20core%20library/2.2.1/adplug-2.2.1.tar.bz2"
sha256 "f95a015268a0dfe9ff5782f3ea7b2a69e09b8d36ccd19ebf4d979d767b6e53ef"
2015-02-23 16:14:34 +00:00
bottle do
2015-11-19 15:45:31 +00:00
sha256 "ba956cade5a385748de3c646845ce48e64271fb4379eb919c3e0d594d36a582d" => :yosemite
sha256 "d25c4e701fb6944a644d21a690ac77beb52ecb0b2c081c92ec85e923847c9393" => :mavericks
sha256 "a7d564710def8caab38de1755790bf7480b853063e36b1054423f4483c96c80a" => :mountain_lion
2015-02-23 16:14:34 +00:00
end
depends_on "pkg-config" => :build
depends_on "libbinio"
2010-07-02 02:12:05 +00:00
resource "ksms" do
url "http://advsys.net/ken/ksmsongs.zip"
sha256 "2af9bfc390f545bc7f51b834e46eb0b989833b11058e812200d485a5591c5877"
end
2010-07-02 02:12:05 +00:00
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
2013-01-26 22:01:15 +00:00
"--prefix=#{prefix}"
system "make", "install"
end
test do
resource("ksms").stage do
mkdir "#{testpath}/.adplug"
system "#{bin}/adplugdb", "-v", "add", "JAZZSONG.KSM"
end
2010-07-02 02:12:05 +00:00
end
end