[109579] users/mojca/wxports/perl/p5-alien-wxwidgets/Portfile

mojca at macports.org mojca at macports.org
Sat Aug 17 12:32:28 PDT 2013


Revision: 109579
          https://trac.macports.org/changeset/109579
Author:   mojca at macports.org
Date:     2013-08-17 12:32:28 -0700 (Sat, 17 Aug 2013)
Log Message:
-----------
mojca/p5-alien-wxwidgets: some more changes

Modified Paths:
--------------
    users/mojca/wxports/perl/p5-alien-wxwidgets/Portfile

Modified: users/mojca/wxports/perl/p5-alien-wxwidgets/Portfile
===================================================================
--- users/mojca/wxports/perl/p5-alien-wxwidgets/Portfile	2013-08-17 19:26:29 UTC (rev 109578)
+++ users/mojca/wxports/perl/p5-alien-wxwidgets/Portfile	2013-08-17 19:32:28 UTC (rev 109579)
@@ -22,15 +22,29 @@
 checksums           rmd160 1cd425f243033e379c84228acb10eca2e097befe \
                     sha256 bdaec7b54d9bbcf6e7e5ef52f7e23ad4295c54819d6f29e6ca3bf07f6fdb35bb
 
-# version 0.64 actually supports just wxWidgets versions up to 2.9.4
+# 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 used to make some difference, but not sure what exactly
-# perl5.use_module_build
+# 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:wxWidgets-3.0
 
-    # WX_CONFIG doesn't seem to work, so use PATH at the moment
-    configure.env-append  WX_CONFIG=${wxWidgets.wxconfig} PATH=${wxWidgets.wxdir}:$env(PATH)
-    build.env-append      WX_CONFIG=${wxWidgets.wxconfig} PATH=${wxWidgets.wxdir}:$env(PATH)
+    # 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/20130817/1ca66125/attachment.html>


More information about the macports-changes mailing list