[22414] trunk/dports/graphics/libpng/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Wed Feb 28 02:34:45 PST 2007


Revision: 22414
          http://trac.macosforge.org/projects/macports/changeset/22414
Author:   pipping at macports.org
Date:     2007-02-28 02:34:45 -0800 (Wed, 28 Feb 2007)

Log Message:
-----------
 * fix variant universal
 * add testsuite

Modified Paths:
--------------
    trunk/dports/graphics/libpng/Portfile

Modified: trunk/dports/graphics/libpng/Portfile
===================================================================
--- trunk/dports/graphics/libpng/Portfile	2007-02-28 10:16:38 UTC (rev 22413)
+++ trunk/dports/graphics/libpng/Portfile	2007-02-28 10:34:45 UTC (rev 22414)
@@ -28,6 +28,19 @@
 configure.args	--mandir=${prefix}/share/man
 configure.env	CFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib"
 
+if {[llength [info commands configure.universal_ldflags-append]] > 0} {
+    configure.universal_ldflags-append  -L${prefix}/lib
+    configure.universal_cflags-append   -I${prefix}/include
+} else {
+    variant universal {
+        return -code error "You need to be running MacPorts 1.4.0 or higher to \
+        use this variant (universal)."
+    }
+}
+
+test.run        yes
+test.target     check
+
 post-destroot	{
 	system "ranlib ${destroot}${prefix}/lib/libpng12.a"
 	xinstall -d -m 755 ${destroot}${prefix}/share/${name}
@@ -35,10 +48,7 @@
 }
 
 platform darwin 8 {
-	configure.env-append CC=/usr/bin/gcc-4.0 CXX=/usr/bin/g++-4.0 CPP=/usr/bin/cpp-4.0
+	configure.env-append    CC=/usr/bin/gcc-4.0 \
+                            CXX=/usr/bin/g++-4.0 \
+                            CPP=/usr/bin/cpp-4.0
 }
-
-variant universal {
-	configure.args-append --disable-dependency-tracking
-	configure.env-append CFLAGS="-I${prefix}/include -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" LDFLAGS="-L${prefix}/lib -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
-}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070228/f47ac19d/attachment.html


More information about the macports-changes mailing list