2012-03-31 01:56:27 +00:00
|
|
|
# Template build file for 'wxPython'
|
|
|
|
pkgname=wxPython
|
|
|
|
version=2.8.12.1
|
2014-06-08 10:15:44 +00:00
|
|
|
revision=6
|
2012-03-31 01:56:27 +00:00
|
|
|
wrksrc="${pkgname}-src-${version}"
|
2013-07-13 07:24:15 +00:00
|
|
|
hostmakedepends="pkg-config"
|
|
|
|
makedepends="zlib-devel libpng-devel libjpeg-turbo-devel libXpm-devel
|
2013-01-08 09:10:40 +00:00
|
|
|
tiff-devel expat-devel libX11-devel libXinerama-devel GConf-devel cairo-devel
|
2013-07-13 07:24:15 +00:00
|
|
|
gtk+-devel MesaLib-devel glu-devel wxGTK-devel python-devel"
|
2014-01-01 15:10:11 +00:00
|
|
|
depends="python"
|
|
|
|
pycompile_module="wx-2.8-gtk2-unicode"
|
2012-03-31 01:56:27 +00:00
|
|
|
short_desc="The wxWidgets GUI toolkit library (Python Bindings)"
|
2014-06-08 10:15:44 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-03-31 01:56:27 +00:00
|
|
|
homepage="http://www.wxwidgets.org/"
|
|
|
|
license="wxWindows"
|
2013-01-08 09:10:40 +00:00
|
|
|
distfiles="${SOURCEFORGE_SITE}/wxpython/${pkgname}-src-${version}.tar.bz2"
|
2012-03-31 01:56:27 +00:00
|
|
|
checksum=1f3f153d9f1504c6ce2d2c4b23e940b8f58b81f4cba35cda1a5bb31142243cd0
|
|
|
|
|
|
|
|
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() {
|
2013-07-13 07:24:15 +00:00
|
|
|
cd wxPython
|
2012-03-31 01:56:27 +00:00
|
|
|
python2.7 setup.py WXPORT=gtk2 UNICODE=1 build
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2013-07-13 07:24:15 +00:00
|
|
|
cd wxPython
|
2012-03-31 01:56:27 +00:00
|
|
|
python2.7 setup.py WXPORT=gtk2 UNICODE=1 install --root="${DESTDIR}"
|
|
|
|
vinstall ../docs/licence.txt 0644 \
|
|
|
|
"usr/share/licenses/${pkgname}" LICENSE
|
|
|
|
}
|
2013-04-14 15:36:49 +00:00
|
|
|
|
|
|
|
wxPython-devel_package() {
|
|
|
|
depends="wxGTK-devel wxPython>=${version}"
|
2013-07-13 07:24:15 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-14 15:36:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
}
|
|
|
|
}
|