From 682adcd45d268067fec089c9c3acdb3654ec2511 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Thu, 25 Apr 2013 11:07:31 -0500 Subject: libxmp 4.1.0 --- Library/Formula/libxmp.rb | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'Library') 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}" -- cgit v1.2.3