[71355] trunk/dports/graphics/qwtplot3d/Portfile

michaelld at macports.org michaelld at macports.org
Thu Sep 9 18:24:46 PDT 2010


Revision: 71355
          http://trac.macports.org/changeset/71355
Author:   michaelld at macports.org
Date:     2010-09-09 18:24:45 -0700 (Thu, 09 Sep 2010)
Log Message:
-----------
Added 'debug' variant and reinplace to handle it; now matches qt4-mac.
Fixed universal install.
Fixed install name of the library.
Rev bump to have these changes take effect.

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

Modified: trunk/dports/graphics/qwtplot3d/Portfile
===================================================================
--- trunk/dports/graphics/qwtplot3d/Portfile	2010-09-10 00:52:53 UTC (rev 71354)
+++ trunk/dports/graphics/qwtplot3d/Portfile	2010-09-10 01:24:45 UTC (rev 71355)
@@ -5,7 +5,7 @@
 
 name                qwtplot3d
 version             0.2.7
-revision            1
+revision            2
 categories          graphics science
 platforms           darwin
 maintainers         michaelld
@@ -59,6 +59,38 @@
     default_variants    +qwt52
 }
 
+variant debug description "Build release and debug versions" {}
+
+if {![variant_isset debug]} {
+    post-patch {
+        # remove 'debug' from the qwtplot3d.pro file
+        reinplace "s at debug@@g" ${worksrcpath}/qwtplot3d.pro
+    }
+}
+
+platform darwin 9 {
+    post-patch {
+        if {[variant_isset universal]} {
+            # add both architectures to CONFIG
+            reinplace "s@\\(CONFIG.*qt\\)@\\1 x86 ppc@" ${worksrcpath}/qwtplot3d.pro
+        }
+    }
+}
+
+platform darwin 10 {
+    post-patch {
+        if {[variant_isset universal]} {
+            # add both architectures to CONFIG
+            reinplace "s@\\(CONFIG.*qt\\)@\\1 x86 x86_64@" ${worksrcpath}/qwtplot3d.pro
+        }
+    }
+}
+
+variant universal {
+    # remove from universal configure flags
+    configure.universal_args-delete --disable-dependency-tracking
+}
+
 patch {
     reinplace "s|0.2.6|${version}|g" ${worksrcpath}/qwtplot3d.pro
 }
@@ -70,4 +102,5 @@
     system "cd ${destroot}/${prefix}/lib && ln -s lib${name}.${version}.dylib lib${name}.dylib"
     xinstall -m 755 -d  ${destroot}/${prefix}/include/${name}
     eval xinstall -m 0644 [glob ${worksrcpath}/include/*] ${destroot}/${prefix}/include/${name}
+    system "install_name_tool -id ${prefix}/lib/lib${name}.${version}.dylib ${destroot}/${prefix}/lib/lib${name}.${version}.dylib"
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100909/fe74c627/attachment.html>


More information about the macports-changes mailing list