void-packages/srcpkgs/wxPython/template

51 lines
1.5 KiB
Plaintext

# Template file for 'wxPython'
pkgname=wxPython
version=3.0.2.0
revision=2
wrksrc="${pkgname}-src-${version}"
hostmakedepends="pkg-config"
makedepends="
zlib-devel libpng-devel libjpeg-turbo-devel tiff-devel expat-devel gtk+-devel
libSM-devel MesaLib-devel glu-devel webkitgtk2-devel gst-plugins-base-devel
libnotify-devel python-devel wxWidgets-devel"
depends="python"
pycompile_module="wx-3.0-gtk2 wxversion.py"
short_desc="The wxWidgets GUI toolkit library (Python Bindings)"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.wxpython.org/"
license="wxWindows"
distfiles="${SOURCEFORGE_SITE}/wxpython/${pkgname}-src-${version}.tar.bz2"
checksum=d54129e5fbea4fb8091c87b2980760b72c22a386cb3b9dd2eebc928ef5e8df61
nocross=yes
pre_configure() {
mv wxPython/wx/tools/Editra/{editra,Editra}
}
do_configure() {
./configure --prefix=/usr --enable-monolithic --with-gtk=2 --with-x \
--with-opengl --enable-unicode --enable-graphics_ctx \
--enable-optimize --enable-mediactrl --with-regex=builtin \
--with-libpng=sys --with-libxpm=sys --with-libjpeg=sys \
--with-libtiff=sys --disable-precomp-headers
}
do_build() {
cd wxPython
python2.7 setup.py WX_CONFIG=wx-config-3.0 WXPORT=gtk2 UNICODE=1 build
}
do_install() {
cd wxPython
python2.7 setup.py WX_CONFIG=wx-config-3.0 WXPORT=gtk2 UNICODE=1 install --root=${DESTDIR}
vlicense ../docs/licence.txt LICENSE
}
wxPython-devel_package() {
depends="wxWidgets-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
}
}