# -*- 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$ PortSystem 1.0 PortGroup github 1.0 PortGroup select 1.0 PortGroup wxWidgets 1.0 github.setup wxWidgets wxWidgets 3.1.0 v name wxWidgets-3.2 wxWidgets.use wxWidgets-3.2 set wxtype osx_cocoa set branch [join [lrange [split ${version} .] 0 1] .] categories graphics devel platforms darwin license wxwidgets-3.1 maintainers mojca jwa openmaintainer 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/ checksums rmd160 843b4b0b7d18b2a6ff7c7dd1c68ebd425e7318ef \ sha256 c2ad6b8f36be70b609f53dc29fdd8899f19c9ad4e963386cedc4a3396bb3e130 dist_subdir wxWidgets/${version} worksrcdir ${distname}/build patch.dir ${worksrcpath}/.. set selectdir ${workpath}/select select.group wxWidgets select.file ${selectdir}/${subport} depends_lib-append port:jpeg \ port:tiff \ port:libpng \ port:zlib \ port:libiconv \ port:expat depends_run port:wxWidgets-common \ port:wxWidgets_select patchfiles patch-configure.diff \ patch-include-wx-defs.h.diff \ patch-upstream.diff post-patch { reinplace "s|@@PREFIX@@|${prefix}|g" ${patch.dir}/configure file mkdir ${selectdir} system "echo \"${wxWidgets.wxdir}/wx-config\n${wxWidgets.wxdir}/wxrc-${branch}\" > ${select.file}" } configure.cmd ../configure configure.args --prefix=${wxWidgets.prefix} \ --with-libiconv-prefix=${prefix} \ --with-libjpeg \ --with-libtiff \ --with-libpng \ --with-zlib \ --with-opengl \ --with-cocoa \ --without-sdl \ --enable-aui \ --disable-sdltest \ --enable-display \ --enable-xrc \ --enable-graphics_ctx \ --with-macosx-sdk=no \ --with-macosx-version-min=no \ --disable-compat30 # during the test period we could afford to disable compatibility to 3.0 # to detect the problems earlier # notes: # --enable-unicode (already default) # --enable-cxx11 (figure out how to use this switch) if {[string match *clang* ${configure.cxx}]} { configure.ldflags-append \ -stdlib=${configure.cxx_stdlib} } post-destroot { set confscript ${wxWidgets.prefix}/lib/wx/config/${wxtype}-unicode-${branch} ln -sf ${confscript} ${destroot}${wxWidgets.prefix}/bin/wx-config } variant universal { set archs [join ${configure.universal_archs} ,] # --disable-precomp-headers is automatically selected with cocoa, but not with gtk # http://trac.wxwidgets.org/ticket/15454 configure.args-append --enable-universal_binary=${archs} \ --disable-precomp-headers } variant debug description {add debug info to libraries} { configure.args-append --enable-debug } variant stdlib description {add support for various standard library features} { configure.args-append --enable-stl \ --enable-std_containers \ --enable-std_iostreams \ --enable-std_string \ --enable-std_string_conv_in_wxstring }