Changeset 73669


Ignore:
Timestamp:
Nov 21, 2010, 4:56:12 AM (7 years ago)
Author:
ryandesign@…
Message:

PlasmaShop: add universal variant

Location:
trunk/dports/devel/PlasmaShop
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/PlasmaShop/Portfile

    r73639 r73669  
    4848patchfiles                  patch-prefix.diff patch-config.diff
    4949
     50variant universal {}
     51if {[variant_isset universal]} {
     52    set archflags ${configure.universal_cflags}
     53} else {
     54    set archflags ${configure.cc_archflags}
     55}
     56
    5057post-patch {
    5158    foreach file ${files_being_patched} {
     
    5360        reinplace "s|@APPLICATIONS_DIR@|${applications_dir}|g" ${worksrcpath}/${file}
    5461    }
    55     reinplace "s|@CFLAGS@|${configure.cflags} ${configure.cc_archflags}|g" ${worksrcpath}/config
    56     reinplace "s|@CXXFLAGS@|${configure.cxxflags} ${configure.cxx_archflags}|g" ${worksrcpath}/config
    57     reinplace "s|@LDFLAGS@|${configure.ldflags} ${configure.ld_archflags}|g" ${worksrcpath}/config
     62    reinplace "s|@CFLAGS@|${configure.cflags} ${archflags}|g" ${worksrcpath}/config
     63    reinplace "s|@CXXFLAGS@|${configure.cxxflags} ${archflags}|g" ${worksrcpath}/config
     64    reinplace "s|@LDFLAGS@|${configure.ldflags} ${archflags}|g" ${worksrcpath}/config
    5865}
    5966
     
    6168configure.pre_args
    6269
     70configure.universal_args-delete --disable-dependency-tracking
     71
    6372# http://forum.guildofwriters.com/viewtopic.php?f=86&t=4145#p40027
    6473use_parallel_build          no
    65 
    66 universal_variant           no
    6774
    6875platform darwin {
  • trunk/dports/devel/PlasmaShop/files/patch-config.diff

    r73639 r73669  
    11--- config.orig Tue Nov 16 15:07:59 2010 -0800
    2 +++ config      Sat Nov 20 03:53:51 2010 -0600
     2+++ config      Sat Nov 20 22:36:50 2010 -0600
    33@@ -1,10 +1,12 @@
    44 # Configure where libHSPlasma is installed
     
    2222+QMAKE_CFLAGS += @CFLAGS@
    2323+QMAKE_CXXFLAGS += @CXXFLAGS@
    24 +QMAKE_LDFLAGS += @LDFLAGS@
     24+QMAKE_LFLAGS += @LDFLAGS@
Note: See TracChangeset for help on using the changeset viewer.