homebrew-core/Formula/libxmp.rb

30 lines
853 B
Ruby
Raw Normal View History

2013-02-16 07:45:34 +00:00
require 'formula'
class Libxmp < Formula
homepage 'http://xmp.sourceforge.net'
2014-01-16 18:37:08 +00:00
url 'http://downloads.sourceforge.net/project/xmp/libxmp/4.2.2/libxmp-4.2.2.tar.gz'
sha1 '54d2db955b48e5ebdcfb6809d7cab3ce146c7611'
2013-02-16 07:45:34 +00:00
2013-09-22 01:47:24 +00:00
head do
url 'git://git.code.sf.net/p/xmp/libxmp'
depends_on :autoconf
end
2013-02-16 07:45:34 +00:00
2014-01-16 18:37:08 +00:00
# Both of these patches have been applied upstream and should be in
# the next release.
def patches
[
# fixes dylib versioning
'https://github.com/cmatsuoka/libxmp/commit/c6301dc68e1c1f6c247667df56fda754412cfb48.patch',
# fixes replay time of S3M modules
'https://github.com/cmatsuoka/libxmp/commit/3368bb9a4583d75e1844fad5caa964045d007179.patch'
]
end unless build.head?
2013-02-16 07:45:34 +00:00
def install
system "autoconf" if build.head?
system "./configure", "--prefix=#{prefix}"
system "make install"
end
end