Changeset 110265


Ignore:
Timestamp:
Aug 29, 2013, 10:45:55 AM (6 years ago)
Author:
mojca@…
Message:

p5-alien-wxwidgets: now using wxWidgets-3.0, but there seem to be a number of problems left (#38375)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/perl/p5-alien-wxwidgets/Portfile

    r105728 r110265  
    44PortSystem          1.0
    55PortGroup           perl5 1.0
     6PortGroup           wxWidgets 1.0
    67
    78perl5.branches      5.8 5.10 5.12 5.14 5.16
    89perl5.setup         Alien-wxWidgets 0.64
    9 revision            1
     10revision            2
    1011
    1112platforms           darwin
     
    2223                    sha256 bdaec7b54d9bbcf6e7e5ef52f7e23ad4295c54819d6f29e6ca3bf07f6fdb35bb
    2324
     25# version 0.64 officially supports just wxWidgets versions up to 2.9.4
     26# but this only seems to be related to patching (when fetching files on the fly)
     27wxWidgets.use       wxWidgets-3.0
     28# this is needed to use Build.Pl instead of Makefile.PL - the proper way (per author)
     29# (else --wxWidgets-build=0 doesn't work)
     30perl5.use_module_build
     31
    2432if {${perl5.major} != ""} {
    25     depends_lib-append  port:wxWidgets30
     33    depends_lib-append  port:${wxWidgets.port}
    2634
    27     configure.env-append \
    28                         WX_CONFIG=${prefix}
     35    # author says that Makefile.PL shouldn't be there
     36    # this line is not really needed, but it's a guard
     37    # to make sure that the right building procedure is used
     38    # (it can be removed)
     39    post-patch {
     40        delete ${worksrcpath}/Makefile.PL
     41    }
     42
     43    # WX_CONFIG doesn't seem to work in all circumstances,
     44    # so until the bug is fixed, one needs to either change PATH or specify --wxWidgets-build=0
     45    configure.args-append   --wxWidgets-build=0
     46    configure.env-append    WX_CONFIG=${wxWidgets.wxconfig}
     47    build.env-append        WX_CONFIG=${wxWidgets.wxconfig}
     48    # configure.env-append  WX_CONFIG=${wxWidgets.wxconfig} PATH=${wxWidgets.wxdir}:$env(PATH)
     49    # build.env-append      WX_CONFIG=${wxWidgets.wxconfig} PATH=${wxWidgets.wxdir}:$env(PATH)
    2950}
Note: See TracChangeset for help on using the changeset viewer.