#Packager: Dimitris Tzemos pkgname=wxGTK pkgver=2.8.12.1 pkgrel=3dj source=("http://downloads.sourceforge.net/wxpython/wxPython-src-$pkgver.tar.bz2" "wxGTK-collision.patch" "make-abicheck-non-fatal.patch") 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 patch -p1 -i ../wxGTK-collision.patch || return 1 # C++ ABI check is too strict and breaks with GCC 5.1 # https://bugzilla.redhat.com/show_bug.cgi?id=1200611 patch -Np1 -i ../make-abicheck-non-fatal.patch || return 1 ./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 \ --without-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 - # Now let's fix the broken symlink created by the package ln -fs /usr/lib${LIBDIRSUFFIX}/wx/config/gtk2-unicode-release-2.8 \ $PKG/usr/bin/wx-config cd - install -vd $startdir/pkg/usr/doc/$pkgname-$pkgver/ || return 1 install -v $startdir/src/wxPython-src-$pkgver/docs/{index.htm,*.txt} $startdir/pkg/usr/doc/$pkgname-$pkgver/ || return 1 cp -r $startdir/src/wxPython-src-$pkgver/docs/{gtk,tech,html} $startdir/pkg/usr/doc/$pkgname-$pkgver/ || return 1 set +e }