homebrew-core/Formula/timidity.rb
2019-01-25 14:42:28 +00:00

45 lines
1.8 KiB
Ruby

class Timidity < Formula
desc "Software synthesizer"
homepage "https://timidity.sourceforge.io/"
url "https://downloads.sourceforge.net/project/timidity/TiMidity++/TiMidity++-2.14.0/TiMidity++-2.14.0.tar.bz2"
sha256 "f97fb643f049e9c2e5ef5b034ea9eeb582f0175dce37bc5df843cc85090f6476"
bottle do
sha256 "04f54d77441e16992c34443e4e6b39a2f03c83e450edb4fa05ec9d9c87972bc0" => :mojave
sha256 "5db392f0e53371e29fdca1ebeee3fdad24043f038c943314e991a06765d102a5" => :high_sierra
sha256 "b45b1df69ab87563a77e1163114160f66679fde5548bac0ae81acb7fae86ab80" => :sierra
sha256 "0b26a98c3e8e3706f8ff1fb2e21c014ac7245c01510799172e7f3ebdc71602ac" => :el_capitan
sha256 "2bfaec5aaaacf7ed13148f437cbeba6bb793f9eacdab739b7202d151031253b4" => :yosemite
sha256 "9e56e31b91c1cab53ebd7830114520233b02f7766f69f2e761d005b8bcd2fb58" => :mavericks
end
depends_on "flac"
depends_on "libao"
depends_on "libogg"
depends_on "libvorbis"
depends_on "speex"
resource "freepats" do
url "https://freepats.zenvoid.org/freepats-20060219.zip"
sha256 "532048a5777aea717effabf19a35551d3fcc23b1ad6edd92f5de1d64600acd48"
end
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}",
"--enable-audio=darwin,vorbis,flac,speex,ao"
system "make", "install"
# Freepats instrument patches from https://freepats.zenvoid.org/
(share/"freepats").install resource("freepats")
pkgshare.install_symlink share/"freepats/Tone_000",
share/"freepats/Drum_000",
share/"freepats/freepats.cfg" => "timidity.cfg"
end
test do
system "#{bin}/timidity"
end
end