[86975] trunk/dports/print/ppmtomd/Portfile
ryandesign at macports.org
ryandesign at macports.org
Mon Nov 7 11:55:24 PST 2011
Revision: 86975
http://trac.macports.org/changeset/86975
Author: ryandesign at macports.org
Date: 2011-11-07 11:55:24 -0800 (Mon, 07 Nov 2011)
Log Message:
-----------
ppmtomd: fix build with latest netpbm; add universal variant; build for the right archs; ensure we're UsingTheRightCompiler
Modified Paths:
--------------
trunk/dports/print/ppmtomd/Portfile
Modified: trunk/dports/print/ppmtomd/Portfile
===================================================================
--- trunk/dports/print/ppmtomd/Portfile 2011-11-07 19:44:20 UTC (rev 86974)
+++ trunk/dports/print/ppmtomd/Portfile 2011-11-07 19:55:24 UTC (rev 86975)
@@ -36,12 +36,14 @@
depends_lib \
port:netpbm
-universal_variant no
+variant universal {}
patchfiles \
patch-Makefile.diff
-configure {
+configure.cppflags-append -I${prefix}/include/netpbm
+
+post-patch {
reinplace "s%@PREFIX@%${prefix}%g" ${worksrcpath}/Makefile
reinplace "s%@DESTROOT@%${destroot}%g" ${worksrcpath}/Makefile
reinplace "s%@CFLAGS@%${configure.cflags}%g" ${worksrcpath}/Makefile
@@ -49,6 +51,10 @@
reinplace "s%@LDFLAGS@%${configure.ldflags}%g" ${worksrcpath}/Makefile
}
+use_configure no
+
+build.args CC="${configure.cc} [get_canonical_archflags]"
+
livecheck.type regex
livecheck.url ${homepage}
livecheck.regex ${name}-(\[0-9.\]+)\\.tar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111107/47fa895c/attachment.html>
More information about the macports-changes
mailing list