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

Last change on this file was 154393, checked in by mojca@…, 11 months ago

p5-*: remove subports for perl5.22 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 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 154393 2016-10-28 22:10:07Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6PortGroup           wxWidgets 1.0
7
8perl5.branches      5.24
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                        port:p${perl5.major}-module-pluggable
32
33    # author says that Makefile.PL shouldn't be there
34    # this line is not really needed, but it's a guard
35    # to make sure that the right building procedure is used
36    # (it can be removed)
37    post-patch {
38        delete ${worksrcpath}/Makefile.PL
39    }
40
41    # WX_CONFIG doesn't seem to work in all circumstances,
42    # so until the bug is fixed, one needs to either change PATH or specify --wxWidgets-build=0
43    configure.args-append   --wxWidgets-build=0
44    configure.env-append    WX_CONFIG=${wxWidgets.wxconfig}
45    build.env-append        WX_CONFIG=${wxWidgets.wxconfig}
46    # configure.env-append  WX_CONFIG=${wxWidgets.wxconfig} PATH=${wxWidgets.wxdir}:$env(PATH)
47    # build.env-append      WX_CONFIG=${wxWidgets.wxconfig} PATH=${wxWidgets.wxdir}:$env(PATH)
48}
Note: See TracBrowser for help on using the repository browser.