aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2013-04-25 11:07:31 -0500
committerMisty De Meo2013-04-26 09:19:53 -0500
commit682adcd45d268067fec089c9c3acdb3654ec2511 (patch)
treebe48ff9444c25eac0433b9bcbfc39cced2c5ec98 /Library
parent2dd41320dd116c1d96611ef32cefcda725b9a30a (diff)
downloadhomebrew-682adcd45d268067fec089c9c3acdb3654ec2511.tar.bz2
libxmp 4.1.0
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/libxmp.rb16
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}"