# -*- 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
# $Id: Portfile 118516 2014-04-03 17:52:48Z mojca@macports.org $

PortSystem          1.0
PortGroup           perl5 1.0
PortGroup           wxWidgets 1.0

# ParseXS >= 3.15 is needed for the build,
# but earlier perl versions provide too old ParseXL versions and thus cannot be built
# So 5.14 is the lowest version of Perl that used to work until recently
# but is now broken as well: https://trac.macports.org/ticket/43157
#perl5.branches     5.8 5.10 5.12 5.14 5.16 5.18
perl5.branches      5.16 5.18
perl5.setup         Wx 0.9923

platforms           darwin
maintainers         mojca openmaintainer
license             {Artistic-1 GPL}

description         interface to the wxWidgets GUI toolkit

long_description    ${description}

checksums           rmd160  5243481e9623a974e95a73e27906483bdde2aba9 \
                    sha256  93e974c7d5ae2c66fe2f3de14988d372cea5b9b5e3da6798776aa90efe7442c9

if {${perl5.major} != ""} {
    wxWidgets.use       wxWidgets-3.0

    depends_build-append \
                        port:p${perl5.major}-extutils-xspp

    depends_lib-append  port:p${perl5.major}-alien-wxwidgets \
                        port:${wxWidgets.port}

    configure.args      installdirs=vendor
}
