[110265] trunk/dports/perl/p5-alien-wxwidgets/Portfile

mojca at macports.org mojca at macports.org
Thu Aug 29 03:45:56 PDT 2013


Revision: 110265
          https://trac.macports.org/changeset/110265
Author:   mojca at macports.org
Date:     2013-08-29 03:45:55 -0700 (Thu, 29 Aug 2013)
Log Message:
-----------
p5-alien-wxwidgets: now using wxWidgets-3.0, but there seem to be a number of problems left (#38375)

Modified Paths:
--------------
    trunk/dports/perl/p5-alien-wxwidgets/Portfile

Modified: trunk/dports/perl/p5-alien-wxwidgets/Portfile
===================================================================
--- trunk/dports/perl/p5-alien-wxwidgets/Portfile	2013-08-29 10:40:07 UTC (rev 110264)
+++ trunk/dports/perl/p5-alien-wxwidgets/Portfile	2013-08-29 10:45:55 UTC (rev 110265)
@@ -3,10 +3,11 @@
 
 PortSystem          1.0
 PortGroup           perl5 1.0
+PortGroup           wxWidgets 1.0
 
 perl5.branches      5.8 5.10 5.12 5.14 5.16
 perl5.setup         Alien-wxWidgets 0.64
-revision            1
+revision            2
 
 platforms           darwin
 maintainers         nomaintainer
@@ -21,9 +22,29 @@
 checksums           rmd160 1cd425f243033e379c84228acb10eca2e097befe \
                     sha256 bdaec7b54d9bbcf6e7e5ef52f7e23ad4295c54819d6f29e6ca3bf07f6fdb35bb
 
+# version 0.64 officially supports just wxWidgets versions up to 2.9.4
+# but this only seems to be related to patching (when fetching files on the fly)
+wxWidgets.use       wxWidgets-3.0
+# this is needed to use Build.Pl instead of Makefile.PL - the proper way (per author)
+# (else --wxWidgets-build=0 doesn't work)
+perl5.use_module_build
+
 if {${perl5.major} != ""} {
-    depends_lib-append  port:wxWidgets30
+    depends_lib-append  port:${wxWidgets.port}
 
-    configure.env-append \
-                        WX_CONFIG=${prefix}
+    # author says that Makefile.PL shouldn't be there
+    # this line is not really needed, but it's a guard
+    # to make sure that the right building procedure is used
+    # (it can be removed)
+    post-patch {
+        delete ${worksrcpath}/Makefile.PL
+    }
+
+    # WX_CONFIG doesn't seem to work in all circumstances,
+    # so until the bug is fixed, one needs to either change PATH or specify --wxWidgets-build=0
+    configure.args-append   --wxWidgets-build=0
+    configure.env-append    WX_CONFIG=${wxWidgets.wxconfig}
+    build.env-append        WX_CONFIG=${wxWidgets.wxconfig}
+    # configure.env-append  WX_CONFIG=${wxWidgets.wxconfig} PATH=${wxWidgets.wxdir}:$env(PATH)
+    # build.env-append      WX_CONFIG=${wxWidgets.wxconfig} PATH=${wxWidgets.wxdir}:$env(PATH)
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130829/c138a0b0/attachment.html>


More information about the macports-changes mailing list