[52264] trunk/dports/net/curl/Portfile

ryandesign at macports.org ryandesign at macports.org
Sat Jun 13 03:20:06 PDT 2009


Revision: 52264
          http://trac.macports.org/changeset/52264
Author:   ryandesign at macports.org
Date:     2009-06-13 03:20:01 -0700 (Sat, 13 Jun 2009)
Log Message:
-----------
curl: use muniversal portgroup to try to fix universal issues on 10.6

Modified Paths:
--------------
    trunk/dports/net/curl/Portfile

Modified: trunk/dports/net/curl/Portfile
===================================================================
--- trunk/dports/net/curl/Portfile	2009-06-13 08:54:16 UTC (rev 52263)
+++ trunk/dports/net/curl/Portfile	2009-06-13 10:20:01 UTC (rev 52264)
@@ -1,6 +1,7 @@
 # $Id$
 
 PortSystem              1.0
+PortGroup               muniversal 1.0
 
 name                    curl
 # keep the version in sync with the curl-ca-bundle port
@@ -55,15 +56,19 @@
 test.run                yes
 test.target             test-full
 
+post-build {
+    if {[variant_isset universal]} {
+        foreach arch ${universal_archs} {
+            reinplace "s|[muniversal_get_arch_flag ${arch}]||" \
+                ${worksrcpath}-${arch}/curl-config \
+                ${worksrcpath}-${arch}/libcurl.pc
+        }
+    }
+}
+
 set docdir ${prefix}/share/doc/${name}-${version}
 
 post-destroot {
-    if {[variant_isset universal]} {
-        reinplace "s|${configure.universal_ldflags}||" \
-            ${destroot}${prefix}/bin/curl-config \
-            ${destroot}${prefix}/lib/pkgconfig/libcurl.pc
-    }
-    
     xinstall -d ${destroot}${docdir}
     xinstall -m 0644 -W ${worksrcpath} \
         CHANGES \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090613/ece5b82e/attachment.html>


More information about the macports-changes mailing list