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

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

p5-*: remove support for Perl versions 5.8-5.14 (#46322)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 130129 2014-12-27 11:23:11Z 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.65
10revision            4
11
12platforms           darwin
13maintainers         mojca openmaintainer
14license             {Artistic-1 GPL}
15
16supported_archs     noarch
17
18description         Alien::wxWidgets - building, finding and using wxWidgets binaries.
19
20long_description    ${description}
21
22checksums           rmd160  3a0e7e312ca2c141d20b66ae123af53b1602fad4 \
23                    sha256  b4772a319d78cd3c933e90d7bd2f766cd57216c5234abdfd2c43a10ba83c8f40
24
25# this is needed to use Build.Pl instead of Makefile.PL - the proper way (per author)
26# (else --wxWidgets-build=0 doesn't work)
27perl5.use_module_build
28
29if {${perl5.major} != ""} {
30    wxWidgets.use       wxWidgets-3.0
31    depends_lib-append  port:${wxWidgets.port}
32
33    # module-pluggable has been removed from Perl core in version 5.20
34    if {[vercmp ${perl5.major} 5.20] >= 0} {
35        depends_lib-append \
36                        port:p${perl5.major}-module-pluggable
37    }
38
39    # author says that Makefile.PL shouldn't be there
40    # this line is not really needed, but it's a guard
41    # to make sure that the right building procedure is used
42    # (it can be removed)
43    post-patch {
44        delete ${worksrcpath}/Makefile.PL
45    }
46
47    # WX_CONFIG doesn't seem to work in all circumstances,
48    # so until the bug is fixed, one needs to either change PATH or specify --wxWidgets-build=0
49    configure.args-append   --wxWidgets-build=0
50    configure.env-append    WX_CONFIG=${wxWidgets.wxconfig}
51    build.env-append        WX_CONFIG=${wxWidgets.wxconfig}
52    # configure.env-append  WX_CONFIG=${wxWidgets.wxconfig} PATH=${wxWidgets.wxdir}:$env(PATH)
53    # build.env-append      WX_CONFIG=${wxWidgets.wxconfig} PATH=${wxWidgets.wxdir}:$env(PATH)
54}
Note: See TracBrowser for help on using the repository browser.