#Maintainer: Shador pkgname=wxGTK pkgver=2.8.10.1 pkgrel=5ab arch=i486 source=("http://downloads.sourceforge.net/wxpython/wxPython-src-$pkgver.tar.bz2" "00-gsockgtk.patch") sourcetemplate="http://gaia.homelinux.org/salix/packages/$pkgname/$pkgver/" 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() { threadcount=$((($(sed -ne '/processor/h;${g;s/[^0-9]*//p}' \ < /proc/cpuinfo)+1)*2)) if [ $threadcount -lt 2 ]; then threadcount=2 elif [ $threadcount -gt 8 ]; then threadcount=8 fi threads="-j${threadcount}" cd $startdir/src/wxPython-src-$pkgver # patch for building with glib >= 2.21 patch -p1 < ../00-gsockgtk.patch || return 1 configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var \ --sysconfdir=/etc \ --mandir=/usr/man \ --enable-shared \ --disable-static \ --enable-image \ --enable-geometry \ --enable-graphics_ctx \ --enable-sound \ --with-sdl \ --enable-mediactrl \ --enable-display \ --enable-optimize \ --enable-unicode \ --with-gtk \ --with-zlib \ --with-opengl \ --with-gnomeprint \ --enable-debugreport \ --with-gtk=2 make $threads || return 1 make install DESTDIR=$startdir/pkg ( cd contrib make $threads || return 1 make install DESTDIR=$startdir/pkg ) || return 1 # ( cd $startdir/pkg/usr/bin/ # target="`readlink -f wx-config | sed -e 's,/usr,\.\.,'`" # rm -f wx-config; ln -sf $target wx-config # ) install -vd $startdir/pkg/usr/doc/$pkgname-$pkgver/ install -v docs/{index.htm,*.txt} $startdir/pkg/usr/doc/$pkgname-$pkgver/ cp -r docs/{gtk,html,tech} $startdir/pkg/usr/doc/$pkgname-$pkgver/ }