#Packager: Shador pkgname=wxGTK pkgver=2.8.12.1 pkgrel=1ab source=("http://downloads.sourceforge.net/wxpython/wxPython-src-$pkgver.tar.bz2") sourcetemplate="http://gaia.homelinux.org/salix/slkbuilds/$pkgname/" url='http://www.wxpython.org/' docs=("README.1st.txt") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (wxWidgets toolkit for GTK)" "wxWidgets lets developers create applications for Win32, Mac OS X," "GTK+, X11, Motif, WinCE, and more using one codebase. It can be used" "from languages such as C++, Python, Perl, and C#/.NET. Unlike other" "cross-platform toolkits, wxWidgets applications look and feel native." "This is because wxWidgets uses the platform's own native controls" "rather than emulating them. It's also extensive, free, open-source," "and mature." "" "This package is built with GTK+2.0 and compatible with wxPython." ) build() { set -e cd $startdir/src/wxPython-src-$pkgver ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var \ --sysconfdir=/etc \ --mandir=/usr/man \ --enable-shared \ --disable-static \ --enable-utf8 \ --enable-intl \ --enable-image \ --enable-geometry \ --enable-graphics_ctx \ --enable-sound \ --enable-threads \ --enable-mediactrl \ --enable-display \ --enable-optimise \ --enable-unicode \ --with-sdl \ --with-gtk \ --with-zlib \ --with-opengl \ --with-gnomeprint \ --enable-debugreport \ --build=$arch-slackware-linux || return 1 make -j $numjobs || return 1 make install DESTDIR=$startdir/pkg || return 1 cd contrib make -j $numjobs || return 1 make install DESTDIR=$startdir/pkg cd - # This should be more robust across version updates cd $startdir/pkg/usr/bin/ target=$(readlink wx-config \ | sed -e "s;/lib/;/lib${LIBDIRSUFFIX}/;") ln -sf $target wx-config cd - install -vd $startdir/pkg/usr/doc/$pkgname-$pkgver/ install -v docs/{index.htm,*.txt} $startdir/pkg/usr/doc/$pkgname-$pkgver/ cp -r docs/{gtk,tech,html} $startdir/pkg/usr/doc/$pkgname-$pkgver/ set +e }