void-packages/srcpkgs/wxPython/template

51 lines
1.5 KiB
Text
Raw Normal View History

2014-11-20 10:41:14 +00:00
# Template file for 'wxPython'
2012-03-31 01:56:27 +00:00
pkgname=wxPython
2014-11-20 10:41:14 +00:00
version=3.0.1.1
revision=1
2012-03-31 01:56:27 +00:00
wrksrc="${pkgname}-src-${version}"
2013-07-13 07:24:15 +00:00
hostmakedepends="pkg-config"
2014-11-20 10:41:14 +00:00
makedepends="
zlib-devel libpng-devel libjpeg-turbo-devel tiff-devel expat-devel gtk+-devel
libSM-devel MesaLib-devel glu-devel webkit-gtk-devel gst-plugins-base-devel
libnotify-devel python-devel wxWidgets-devel"
depends="python"
2014-11-20 10:41:14 +00:00
pycompile_module="wx-3.0-gtk2 wxversion.py"
2012-03-31 01:56:27 +00:00
short_desc="The wxWidgets GUI toolkit library (Python Bindings)"
maintainer="Juan RP <xtraeme@gmail.com>"
2014-11-20 10:41:14 +00:00
homepage="http://www.wxpython.org/"
2012-03-31 01:56:27 +00:00
license="wxWindows"
distfiles="${SOURCEFORGE_SITE}/wxpython/${pkgname}-src-${version}.tar.bz2"
2014-11-20 10:41:14 +00:00
checksum=d51463fe760e2fc00271678700c216809f9db32a6081a1808bd4b7c884dc0a32
2014-08-26 22:14:06 +00:00
nocross=yes
2012-03-31 01:56:27 +00:00
pre_configure() {
2014-11-20 10:41:14 +00:00
mv wxPython/wx/tools/Editra/{editra,Editra}
2012-03-31 01:56:27 +00:00
}
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
2014-11-20 10:41:14 +00:00
python2.7 setup.py WX_CONFIG=wx-config-3.0 WXPORT=gtk2 UNICODE=1 build
2012-03-31 01:56:27 +00:00
}
do_install() {
2013-07-13 07:24:15 +00:00
cd wxPython
2014-11-20 10:41:14 +00:00
python2.7 setup.py WX_CONFIG=wx-config-3.0 WXPORT=gtk2 UNICODE=1 install --root=${DESTDIR}
vlicense ../docs/licence.txt LICENSE
2012-03-31 01:56:27 +00:00
}
wxPython-devel_package() {
2014-11-20 10:41:14 +00:00
depends="wxWidgets-devel ${sourcepkg}>=${version}_${revision}"
2013-07-13 07:24:15 +00:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
}
}