wxGTK: modernize to build 32bit pkgs.

This commit is contained in:
Juan RP 2014-06-02 18:00:02 +02:00
parent 5fbbd66c9f
commit 3ddf14cca0
1 changed files with 13 additions and 16 deletions

View File

@ -1,41 +1,37 @@
# Template build file for 'wxGTK'
pkgname=wxGTK
version=2.8.12.1
revision=4
revision=5
wrksrc="wxPython-src-${version}"
# XXX: GStreamer support?
makedepends="pkg-config zlib-devel libpng-devel>=1.6 libjpeg-turbo-devel
build_style=gnu-configure
configure_args="--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"
hostmakedepends="pkg-config"
makedepends="zlib-devel libpng-devel>=1.6 libjpeg-turbo-devel
libXpm-devel tiff-devel expat-devel libXinerama-devel libSM-devel libXt-devel
GConf-devel gtk+-devel glu-devel"
short_desc="The wxWidgets GUI toolkit library (GTK Version)"
maintainer="davehome <davehome@redthumb.info.tm>"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.wxwidgets.org/"
license="wxWindows"
distfiles="${SOURCEFORGE_SITE}/wxpython/wxPython-src-${version}.tar.bz2"
checksum=1f3f153d9f1504c6ce2d2c4b23e940b8f58b81f4cba35cda1a5bb31142243cd0
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() {
post_build() {
make ${makejobs}
make ${makejobs} -C locale allmo
make ${makejobs} -C contrib/src
}
do_install() {
make DESTDIR="${DESTDIR}" install
post_install() {
make -C contrib/src DESTDIR="${DESTDIR}" install
vinstall docs/licence.txt 0644 "usr/share/licenses/${pkgname}" LICENSE
}
wxGTK-devel_package() {
depends="wxGTK>=$version"
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" -- development files"
pkg_install() {
vmove usr/include
@ -43,5 +39,6 @@ wxGTK-devel_package() {
vmove usr/share/bakefile
vmove usr/lib/wx
vmove usr/bin
vmove usr/lib/*.so
}
}