# -*- 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
PortGroup active_variants 1.1
github.setup wxWidgets wxWidgets 3.0.4 v
github.tarball_from releases
# ugly workaround to allow some C++11-only applications to be built on < 10.9
subport wxWidgets-3.0-cxx11 {}
# for cases when wxPython gets out of sync with wxWidgets releases
# TODO: fix dist_subdir and subset name at next release
# when revbumping remember to change the revision also for wxPython-3.0
set installname wxWidgets
if {${subport} eq ${name}} {
wxWidgets.use wxWidgets-3.0
} elseif {${subport} eq "wxWidgets-3.0-cxx11"} {
# ugly workaround to allow some C++11-only applications to be built on < 10.9
wxWidgets.use wxWidgets-3.0-cxx11
} elseif {${subport} eq "wxPython-3.0"} {
wxWidgets.use wxPython-3.0
} elseif {${subport} eq "wxgtk-3.0"} {
# with satisfactory Cocoa support there is no real need for GTK-based wxWidgets any more
# wxgtk-3.0 is here mainly for testing purposes
# it might be useful to report GTK-related bugs upstream
# and play with quartz-based GTK
# (and maybe backport changes to 2.8)
set branch [join [lrange [split ${version} .] 0 1] .]
categories graphics devel
maintainers {mojca @mojca}
description C++ framework for cross-platform GUI development
long_description wxWidgets ${branch} is an open-source cross-platform C++ \
GUI framework for Mac OS, Unix, Linux, Windows.
homepage http://www.wxwidgets.org/
dist_subdir wxWidgets/${version}
worksrcdir ${distname}-${version}/build
patch.dir ${worksrcpath}/..