source: trunk/dports/perl/p5-alien-wxwidgets/Portfile @ 134666

Last change on this file since 134666 was 134666, checked in by mojca@…, 5 years ago

p5-alien-wxwidgets: upgrade to 0.67 (#47339)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 134666 2015-04-02 16:21:43Z mojca@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6PortGroup           wxWidgets 1.0
7
8perl5.branches      5.16 5.18 5.20
9perl5.setup         Alien-wxWidgets 0.67
10
11platforms           darwin
12maintainers         mojca openmaintainer
13license             {Artistic-1 GPL}
14
15supported_archs     noarch
16
17description         Alien::wxWidgets - building, finding and using wxWidgets binaries.
18
19long_description    ${description}
20
21checksums           rmd160  0f328a552b61a8e51d03da3521c7a2956f0c3d6f \
22                    sha256  d906dffefec41748676e16ff28a93ca36d60a8158a82e9d8bac6383a0142b51c
23
24# this is needed to use Build.Pl instead of Makefile.PL - the proper way (per author)
25# (else --wxWidgets-build=0 doesn't work)
26perl5.use_module_build
27
28if {${perl5.major} != ""} {
29    wxWidgets.use       wxWidgets-3.0
30    depends_lib-append  port:${wxWidgets.port}
31
32    # module-pluggable has been removed from Perl core in version 5.20
33    if {[vercmp ${perl5.major} 5.20] >= 0} {
34        depends_lib-append \
35                        port:p${perl5.major}-module-pluggable
36    }
37
38    # author says that Makefile.PL shouldn't be there
39    # this line is not really needed, but it's a guard
40    # to make sure that the right building procedure is used
41    # (it can be removed)
42    post-patch {
43        delete ${worksrcpath}/Makefile.PL
44    }
45
46    # WX_CONFIG doesn't seem to work in all circumstances,
47    # so until the bug is fixed, one needs to either change PATH or specify --wxWidgets-build=0
48    configure.args-append   --wxWidgets-build=0
49    configure.env-append    WX_CONFIG=${wxWidgets.wxconfig}
50    build.env-append        WX_CONFIG=${wxWidgets.wxconfig}
51    # configure.env-append  WX_CONFIG=${wxWidgets.wxconfig} PATH=${wxWidgets.wxdir}:$env(PATH)
52    # build.env-append      WX_CONFIG=${wxWidgets.wxconfig} PATH=${wxWidgets.wxdir}:$env(PATH)
53}
Note: See TracBrowser for help on using the repository browser.