[82575] trunk/dports/devel/PlasmaShop/Portfile

ryandesign at macports.org ryandesign at macports.org
Mon Aug 15 13:50:33 PDT 2011


Revision: 82575
          http://trac.macports.org/changeset/82575
Author:   ryandesign at macports.org
Date:     2011-08-15 13:50:33 -0700 (Mon, 15 Aug 2011)
Log Message:
-----------
PlasmaShop: simplify setting archflags

Modified Paths:
--------------
    trunk/dports/devel/PlasmaShop/Portfile

Modified: trunk/dports/devel/PlasmaShop/Portfile
===================================================================
--- trunk/dports/devel/PlasmaShop/Portfile	2011-08-15 20:49:00 UTC (rev 82574)
+++ trunk/dports/devel/PlasmaShop/Portfile	2011-08-15 20:50:33 UTC (rev 82575)
@@ -48,20 +48,15 @@
 patchfiles                  patch-prefix.diff patch-config.diff
 
 variant universal {}
-if {[variant_isset universal]} {
-    set archflags ${configure.universal_cflags}
-} else {
-    set archflags ${configure.cc_archflags}
-}
 
 post-patch {
     foreach file ${files_being_patched} {
         reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/${file}
         reinplace "s|@APPLICATIONS_DIR@|${applications_dir}|g" ${worksrcpath}/${file}
     }
-    reinplace "s|@CFLAGS@|${configure.cflags} ${archflags}|g" ${worksrcpath}/config
-    reinplace "s|@CXXFLAGS@|${configure.cxxflags} ${archflags}|g" ${worksrcpath}/config
-    reinplace "s|@LDFLAGS@|${configure.ldflags} ${archflags}|g" ${worksrcpath}/config
+    reinplace "s|@CFLAGS@|${configure.cflags} [get_canonical_archflags]|g" ${worksrcpath}/config
+    reinplace "s|@CXXFLAGS@|${configure.cxxflags} [get_canonical_archflags]|g" ${worksrcpath}/config
+    reinplace "s|@LDFLAGS@|${configure.ldflags} [get_canonical_archflags]|g" ${worksrcpath}/config
 }
 
 configure.cmd               ${qt_qmake_cmd}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110815/69accbae/attachment.html>


More information about the macports-changes mailing list