[57217] trunk/dports/audio/libmad
nox at macports.org
nox at macports.org
Mon Sep 7 11:30:21 PDT 2009
Revision: 57217
http://trac.macports.org/changeset/57217
Author: nox at macports.org
Date: 2009-09-07 11:30:16 -0700 (Mon, 07 Sep 2009)
Log Message:
-----------
libmad: Add Universal Support.
Modified Paths:
--------------
trunk/dports/audio/libmad/Portfile
Removed Paths:
-------------
trunk/dports/audio/libmad/files/patch-configure
Modified: trunk/dports/audio/libmad/Portfile
===================================================================
--- trunk/dports/audio/libmad/Portfile 2009-09-07 17:53:52 UTC (rev 57216)
+++ trunk/dports/audio/libmad/Portfile 2009-09-07 18:30:16 UTC (rev 57217)
@@ -21,24 +21,30 @@
sourceforge:mad
checksums md5 1be543bc30c56fb6bea1d7bf6a64e66c
-depends_build port:pkgconfig
+depends_build port:pkgconfig \
+ port:libtool \
+ port:autoconf
-patchfiles patch-configure
+post-extract {
+ copy ${filespath}/mad.pc.in ${worksrcpath}/mad.pc
+}
post-patch {
- file copy -force ${filespath}/mad.pc.in ${worksrcpath}/mad.pc
-
+ 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 {
- file mkdir ${destroot}${prefix}/lib/pkgconfig
- file copy -force ${worksrcpath}/mad.pc ${destroot}${prefix}/lib/pkgconfig
+ xinstall -d ${destroot}${prefix}/lib/pkgconfig
+ xinstall -m 644 ${worksrcpath}/mad.pc ${destroot}${prefix}/lib/pkgconfig
}
-livecheck.check regex
+livecheck.type regex
livecheck.url ftp://ftp.mars.org/pub/mpeg/
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*\[a-z\])${extract.suffix}"
-
-universal_variant no
Deleted: trunk/dports/audio/libmad/files/patch-configure
===================================================================
--- trunk/dports/audio/libmad/files/patch-configure 2009-09-07 17:53:52 UTC (rev 57216)
+++ trunk/dports/audio/libmad/files/patch-configure 2009-09-07 18:30:16 UTC (rev 57217)
@@ -1,11 +0,0 @@
---- configure.orig 2009-07-27 11:18:48.000000000 -0700
-+++ configure 2009-07-27 11:19:03.000000000 -0700
-@@ -19087,7 +19087,7 @@
- then
- case "$host" in
- i386-*) ;;
-- i?86-*) arch="-march=i486" ;;
-+ i?86-*) ;;
- 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/20090907/bbece53f/attachment.html>
More information about the macports-changes
mailing list