2011-03-10 05:11:03 +00:00
|
|
|
class Adplug < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Free, hardware independent AdLib sound player library"
|
2015-02-23 11:27:17 +00:00
|
|
|
homepage "http://adplug.sf.net"
|
|
|
|
url "https://downloads.sourceforge.net/project/adplug/AdPlug%20core%20library/2.2.1/adplug-2.2.1.tar.bz2"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "f95a015268a0dfe9ff5782f3ea7b2a69e09b8d36ccd19ebf4d979d767b6e53ef"
|
2015-02-23 11:27:17 +00:00
|
|
|
|
2015-02-23 16:14:34 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "9554ef2e879f3f9c50d151c1fc721bb9528ad772" => :yosemite
|
|
|
|
sha1 "364e92b8aafb2960759ebad9020604bcb15f6b17" => :mavericks
|
|
|
|
sha1 "45aedf1e4e5d240ec2014b19d27ea31574086447" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-02-23 11:27:17 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "libbinio"
|
2010-07-02 02:12:05 +00:00
|
|
|
|
2015-02-23 11:27:17 +00:00
|
|
|
resource "ksms" do
|
|
|
|
url "http://advsys.net/ken/ksmsongs.zip"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "2af9bfc390f545bc7f51b834e46eb0b989833b11058e812200d485a5591c5877"
|
2015-02-23 11:27:17 +00:00
|
|
|
end
|
2010-07-02 02:12:05 +00:00
|
|
|
|
|
|
|
def install
|
2015-02-23 11:27:17 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
2013-01-26 22:01:15 +00:00
|
|
|
"--prefix=#{prefix}"
|
2015-02-23 11:27:17 +00:00
|
|
|
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
|