[90626] trunk/dports/audio/libmad
ryandesign at macports.org
ryandesign at macports.org
Sat Mar 10 00:29:27 PST 2012
Revision: 90626
http://trac.macports.org/changeset/90626
Author: ryandesign at macports.org
Date: 2012-03-10 00:29:23 -0800 (Sat, 10 Mar 2012)
Log Message:
-----------
libmad: use 'use_autoreconf yes' instead of doing half of it manually at pre-configure and letting it do half of it itself at build time, possibly wrongly (#31832); use a patchfile instead of a reinplace to fix configure.ac
Modified Paths:
--------------
trunk/dports/audio/libmad/Portfile
Added Paths:
-----------
trunk/dports/audio/libmad/files/patch-configure.ac.diff
Modified: trunk/dports/audio/libmad/Portfile
===================================================================
--- trunk/dports/audio/libmad/Portfile 2012-03-10 05:14:42 UTC (rev 90625)
+++ trunk/dports/audio/libmad/Portfile 2012-03-10 08:29:23 UTC (rev 90626)
@@ -22,26 +22,22 @@
sourceforge:mad
checksums md5 1be543bc30c56fb6bea1d7bf6a64e66c
-depends_build port:pkgconfig \
- port:libtool \
- port:automake \
- port:autoconf
+depends_build port:pkgconfig
+use_autoreconf yes
+
post-extract {
copy ${filespath}/mad.pc.in ${worksrcpath}/mad.pc
+ touch ${worksrcpath}/AUTHORS ${worksrcpath}/ChangeLog ${worksrcpath}/NEWS
}
+patchfiles patch-configure.ac.diff
+
post-patch {
- reinplace -E /-march=i486/d ${worksrcpath}/configure.ac
-
reinplace "s|%PREFIX%|${prefix}|g" ${worksrcpath}/mad.pc
reinplace "s|%VERSION%|${version}|g" ${worksrcpath}/mad.pc
}
-pre-configure {
- system "cd ${worksrcpath} && aclocal && glibtoolize"
-}
-
post-destroot {
xinstall -d ${destroot}${prefix}/lib/pkgconfig
xinstall -m 644 ${worksrcpath}/mad.pc ${destroot}${prefix}/lib/pkgconfig
Added: trunk/dports/audio/libmad/files/patch-configure.ac.diff
===================================================================
--- trunk/dports/audio/libmad/files/patch-configure.ac.diff (rev 0)
+++ trunk/dports/audio/libmad/files/patch-configure.ac.diff 2012-03-10 08:29:23 UTC (rev 90626)
@@ -0,0 +1,10 @@
+--- configure.ac.orig 2004-01-23 03:41:32.000000000 -0600
++++ configure.ac 2012-03-10 02:22:40.000000000 -0600
+@@ -128,7 +128,6 @@
+ then
+ case "$host" in
+ i386-*) ;;
+- i?86-*) arch="-march=i486" ;;
+ arm*-empeg-*) arch="-march=armv4 -mtune=strongarm1100" ;;
+ armv4*-*) arch="-march=armv4 -mtune=strongarm" ;;
+ powerpc-*) ;;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120310/169bab1b/attachment-0001.html>
More information about the macports-changes
mailing list