updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / lib32-wxgtk / PKGBUILD
blob65e1a51a3664c52cc3197e45338e6fef68fdec96
1 # Maintainer: Devin Cofer <ranguvar@archlinux.us>
2 # Contributor: Yggdrasil <tetzank@web.de>
3 # Contributor: Eric Belanger <eric@archlinux.org>
4 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
5 # Contributor: Bob Finch <w9ya@arrl.net>
6 # Contributor: J. Santiago "Angelus" Hirschfeld <jsantiagoh@yahoo.com.ar>
8 pkgname=lib32-wxgtk
9 _pkgname32=wxgtk
10 pkgver=2.8.12
11 pkgrel=1
12 pkgdesc="GTK+ implementation of wxWidgets API for GUI (lib32)"
13 arch=('x86_64')
14 url="http://wxwidgets.org/"
15 license=('custom:wxWindows')
17 makedepends=('gcc-multilib' 'gconf' 'ccache' 'lib32-mesa')
18 depends=('wxgtk' 'lib32-gtk2' 'lib32-libgl' 'lib32-libxxf86vm' 'lib32-libsm')
20 source=("http://downloads.sourceforge.net/wxwindows/wxGTK-$pkgver.tar.bz2")
21 sha256sums=('f4193c29fb0e790c9a5c8936f082377a7e51c76bccafe41f4f9da7ca15c0ef1a')
23 options=('ccache')  # Required to build libwx_gtk2u_mmedia
24 build() {
25         export CC="gcc -m32"
26         export CXX="g++ -m32"
28         cd "$srcdir"/wxGTK-$pkgver
29         ./configure --prefix=/usr --libdir=/usr/lib32 --with-gtk=2 \
30                     --with-opengl --enable-unicode --enable-graphics_ctx \
31                     --with-gnomeprint --disable-optimize --disable-mediactrl \
32                     --with-libpng=sys --with-libxpm=sys --with-libjpeg=sys \
33                     --with-libtiff=sys
34         make
35         make -C locale allmo
36         cd contrib/src && make
38 package() {
39         cd "$srcdir"/wxGTK-$pkgver
40         make DESTDIR="$pkgdir" install
42         cd contrib/src
43         make DESTDIR="$pkgdir" install
45         install -Dm644 ../../docs/licence.txt "$pkgdir"/usr/share/licenses/$pkgname/COPYING
47         rm -rf "$pkgdir"/usr/{include,share,bin}