#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=wxPython
pkgver=3.0.2.0
pkgrel=1gv
source=("http://downloads.sourceforge.net/wxpython/wxPython-src-$pkgver.tar.bz2")
url='http://www.wxpython.org/'
docs=("README.1st.txt" "BuildSVN.txt")

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname (Python bindings for the wxWidgets toolkit)"
"wxPython is a GUI toolkit for the Python programming language. It"
"allows Python programmers to create programs with a robust, highly"
"functional graphical user interface, simply and easily. It is"
"implemented as a Python extension module (native code) that wraps the"
"popular wxWidgets cross platform GUI library, which is written in C++."
)


build() {
	cd $startdir/src/wxPython-src-$pkgver

	./configure --prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--with-opengl \
		--enable-unicode \
		--enable-graphics_ctx \
		--enable-mediactrl \
		--disable-precomp-headers \
		--with-regex=sys \
		--with-libpng=sys \
		--with-libxpm=sys \
		--with-libjpeg=sys \
		--with-libtiff=sys
		--build=$arch-slackware-linux
	
	cd wxPython
	python setup.py \
		WXPORT=gtk2 \
		UNICODE=1 \
		build
	python setup.py \
		WXPORT=gtk2 \
		UNICODE=1 \
		install --prefix=/usr --root=$startdir/pkg || return 1
	install -vd $startdir/pkg/usr/doc/$pkgname-$pkgver/
	cp -r docs/* $startdir/pkg/usr/doc/$pkgname-$pkgver/
}
