aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/adplug.rb
blob: 5185221cc598904f86c72ca585bede27683ef6d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
class Adplug < Formula
  homepage "http://adplug.sf.net"
  url "https://downloads.sourceforge.net/project/adplug/AdPlug%20core%20library/2.2.1/adplug-2.2.1.tar.bz2"
  sha1 "5023282ff44f183c9b6d7da9f57f51595742a5f7"

  bottle do
    sha1 "9554ef2e879f3f9c50d151c1fc721bb9528ad772" => :yosemite
    sha1 "364e92b8aafb2960759ebad9020604bcb15f6b17" => :mavericks
    sha1 "45aedf1e4e5d240ec2014b19d27ea31574086447" => :mountain_lion
  end

  depends_on "pkg-config" => :build
  depends_on "libbinio"

  resource "ksms" do
    url "http://advsys.net/ken/ksmsongs.zip"
    sha1 "7643cf95ae17233898b2b092ea9c8a69ec52532b"
  end

  def install
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make", "install"
  end

  test do
    resource("ksms").stage do
      mkdir "#{testpath}/.adplug"
      system "#{bin}/adplugdb", "-v", "add", "JAZZSONG.KSM"
    end
  end
end