void-packages/srcpkgs/wxPython/template
2014-08-27 00:14:20 +02:00

50 lines
1.5 KiB
Text

# Template build file for 'wxPython'
pkgname=wxPython
version=3.0.0.0
revision=2
wrksrc="${pkgname}-src-${version}"
hostmakedepends="pkg-config"
makedepends="zlib-devel libpng-devel libjpeg-turbo-devel libXpm-devel
tiff-devel expat-devel libX11-devel libXinerama-devel GConf-devel cairo-devel
gtk+-devel MesaLib-devel glu-devel wxWidgets-devel python-devel gst-plugins-base-devel"
depends="python"
pycompile_module="wx-3.0-gtk2"
short_desc="The wxWidgets GUI toolkit library (Python Bindings)"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.wxwidgets.org/"
license="wxWindows"
distfiles="${SOURCEFORGE_SITE}/wxpython/${pkgname}-src-${version}.tar.bz2"
checksum=af88695e820dd914e8375dc91ecb736f6fb605979bb38460ace61bbea494dc11
nocross=yes
pre_configure() {
mv wxPython/wx/tools/Editra/editra wxPython/wx/tools/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 WXPORT=gtk2 UNICODE=1 build
}
do_install() {
cd wxPython
python2.7 setup.py WXPORT=gtk2 UNICODE=1 install --root="${DESTDIR}"
vinstall ../docs/licence.txt 0644 \
"usr/share/licenses/${pkgname}" LICENSE
}
wxPython-devel_package() {
depends="wxGTK-devel wxPython>=${version}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
}
}