# Depends on: gtk2 gstreamer-plugins-base mesa xorg-libsm xorg-libxxf86vm sdl

description="GTK+ implementation of wxWidgets API for GUI"
url="http://wxwidgets.org"
packager="pierre at nutyx dot org, tnut at nutyx dot org"
name=wxgtk28
version=2.8.12.1
release=3

source=(http://downloads.sourceforge.net/wxpython/wxPython-src-${version}.tar.bz2
	make-abicheck-non-fatal.patch wxGTK-collision.patch)
build() {
cd wx*-$version
patch -p1 -i ../wxGTK-collision.patch
patch -Np1 -i ../make-abicheck-non-fatal.patch
CXX="g++ -std=c++98"  ./configure --prefix=/usr --libdir=/usr/lib --with-gtk=2 --with-opengl --enable-unicode \
--enable-graphics_ctx  --enable-mediactrl --enable-webview --with-regex=builtin \
--with-libpng=sys --with-libxpm=sys --with-libjpeg=sys --with-libtiff=sys \
--disable-precomp-headers
make
make -C locale allmo
make DESTDIR=$PKG install
}
