[50420] trunk/dports/graphics/netpbm/Portfile
mcalhoun at macports.org
mcalhoun at macports.org
Thu Apr 30 13:21:13 PDT 2009
Revision: 50420
http://trac.macports.org/changeset/50420
Author: mcalhoun at macports.org
Date: 2009-04-30 13:21:13 -0700 (Thu, 30 Apr 2009)
Log Message:
-----------
netpbm: Allow universal builds.
Modified Paths:
--------------
trunk/dports/graphics/netpbm/Portfile
Modified: trunk/dports/graphics/netpbm/Portfile
===================================================================
--- trunk/dports/graphics/netpbm/Portfile 2009-04-30 20:15:17 UTC (rev 50419)
+++ trunk/dports/graphics/netpbm/Portfile 2009-04-30 20:21:13 UTC (rev 50420)
@@ -39,11 +39,10 @@
reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/pm_config.in.h
}
-use_configure no
configure.cflags-delete -O2
configure.cflags-append -O3
-post-configure {
+configure {
file copy ${worksrcpath}/Makefile.config.in ${worksrcpath}/Makefile.config
reinplace "s|^CC =.*\$|CC = ${configure.cc}|" ${worksrcpath}/Makefile.config
reinplace "s|^#CFLAGS =.*\$|CFLAGS = ${configure.cppflags} ${configure.cflags}|" ${worksrcpath}/Makefile.config
@@ -58,7 +57,7 @@
platform darwin {
post-configure {
- set ldshlib "-dynamiclib -install_name ${prefix}/lib/libnetpbm.\$(MAJ).dylib -compatibility_version \$(MAJ) -current_version ${version}"
+ set ldshlib "${configure.ldflags} -dynamiclib -install_name ${prefix}/lib/libnetpbm.\$(MAJ).dylib -compatibility_version \$(MAJ) -current_version ${version}"
reinplace "s|^NETPBMLIBTYPE =.*\$|NETPBMLIBTYPE = dylib|" ${worksrcpath}/Makefile.config
reinplace "s|^NETPBMLIBSUFFIX =.*\$|NETPBMLIBSUFFIX = dylib|" ${worksrcpath}/Makefile.config
reinplace "s|^LDSHLIB =.*\$|LDSHLIB = ${ldshlib}|" ${worksrcpath}/Makefile.config
@@ -117,8 +116,6 @@
# "Netpbm has a sophisticated, rather novel system of releasing source code"
livecheck.distname super stable
-universal_variant no
-
# work around bug in Apple's gcc build 4061
platform darwin 8 {
set fl [open "| ${configure.cc} --version"]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090430/24ee10b7/attachment.html>
More information about the macports-changes
mailing list