# $Id$ PNAME="wxgtk" PVER="2.8.12.1" PBUILD="r4" PCAT="x11-libs" DESCRIPTION="GTK+ version of the open source, cross-platform native UI framework." HOMEPAGE="http://www.wxwidgets.org/" DEPEND=">= virtual/opengl >= virtual/glu >= x11-libs/libX11-1.6 >= x11-libs/libXinerama-1 >= x11-libs/libXxf86vm-1 >= sys-libs/zlib-1.2.8 >= media-libs/libpng-1.5 >= media-libs/libtiff-3.9 >= virtual/libjpeg >= dev-libs/expat-2 >= dev-libs/glib2-2.52 >= x11-libs/gtk2+-2.24 >= sys-libs/libstdc++-6.3" # we are using the wxpython tarball which contains the full source of # wxGTK and is release more frequently SRCFILE="wxPython-src-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/wxPython-src-${PVER}" sminclude mbuild msetfeature "!check" SRC_URI=( #sourceforge://wxwindows/${SRCFILE} sourceforge://wxpython/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-fix-c++14.patch ) UP2DATE="updatecmd_sourceforge wxpython wxPython" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix ftbfs mpatch ${PNAME}-${PVER}-fix-c++14.patch || die } src_compile() { cd ${SRCDIR} # --disable-optimize to use our own CFLAGS # --enable-debugreport to fix missing gtku_qa solib export LANG='C' mconfigure \ --disable-optimize \ --disable-precomp-headers \ --disable-rpath \ --enable-soname \ --enable-debugreport \ --enable-compat24 \ --enable-unicode \ --enable-intl \ --enable-no_deps \ --enable-geometry \ --enable-display \ --enable-gui \ --enable-sound \ --enable-timer \ --enable-graphics_ctx \ --enable-mediactrl \ --with-opengl \ --with-gtk=2 \ --with-regex=builtin \ --with-zlib=sys \ --with-expat=sys \ --with-libpng=sys \ --with-libxpm=sys \ --with-libjpeg=sys \ --with-libtiff=sys \ --without-gnomevfs \ --without-gnomeprint \ || die mmake || die mmake -C contrib/src/stc || die mmake -C contrib/src/ogl || die mmake -C contrib/src/gizmos || die mmake -C contrib/src/svg || die # not part of the main build? mmake -j1 -C locale allmo || die } src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die mmake -C contrib/src/stc DESTDIR=${BINDIR} install || die mmake -C contrib/src/ogl DESTDIR=${BINDIR} install || die mmake -C contrib/src/gizmos DESTDIR=${BINDIR} install || die mmake -C contrib/src/svg DESTDIR=${BINDIR} install || die # docs minstalldocs *.txt docs/*.txt || die }