diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/libxmp.rb | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/Library/Formula/libxmp.rb b/Library/Formula/libxmp.rb index cf876fda5..46a3c99bf 100644 --- a/Library/Formula/libxmp.rb +++ b/Library/Formula/libxmp.rb @@ -2,12 +2,24 @@ require 'formula' class Libxmp < Formula homepage 'http://xmp.sourceforge.net' - url 'http://downloads.sourceforge.net/project/xmp/libxmp/4.0.4/libxmp-4.0.4.tar.gz' - sha1 'b8078f9565eba4ad540b7ac3dc4c98e6369bd760' + url 'http://downloads.sourceforge.net/project/xmp/libxmp/4.1.0/libxmp-4.1.0.tar.gz' + sha1 '778df5d2bbbf49a454024753c07dca6fb60bfdf9' head 'git://git.code.sf.net/p/xmp/libxmp' depends_on :autoconf if build.head? + def patches + [ + # disables symbol versioning via alias, which compiler rejects: + # "only weak aliases are supported in this configuration" + "https://github.com/cmatsuoka/libxmp/commit/ca0ba5c9bba275b964e9a2b61e2c089ef26c4096.patch", + # upstream patches for build failures due to strncat/strncpy macros; + # can remove on next release + "https://github.com/cmatsuoka/libxmp/commit/c1c58d926912299c41e7828d1d8954a0745da72c.patch", + "https://github.com/cmatsuoka/libxmp/commit/d8483eb3d330455e42b118e54e0f88ef2acde56d.patch" + ] + end unless build.head? + def install system "autoconf" if build.head? system "./configure", "--prefix=#{prefix}" |
