updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / wxgtk-gcc43 / PKGBUILD
blobdaa0b873c1cdeefb4ce3c3456ec547269af645e6
1 # Maintainer: Joe Amenta <amentajo@msu.edu>
2 # Original Maintainer: Eric Belanger <eric@archlinux.org>
3 # Original Contributor: Tom Newsom <Jeepster@gmx.co.uk>
4 # New Version - Contributor: Bob Finch <w9ya@arrl.net>
5 # with help from J. Santiago Hirschfeld <jsantiagoh@yahoo.com.ar> aka Angelus
7 pkgname=wxgtk-gcc43
8 pkgver=2.8.11
9 pkgrel=1
10 pkgdesc="GTK+ implementation of wxWidgets API for GUI, compiled with gcc-4.3"
11 arch=('i686' 'x86_64')
12 url="http://wxwidgets.org"
13 license=('custom:wxWindows')
14 provides=('wxgtk=2.8.11-1')
15 conflicts=('wxgtk')
16 depends=('gtk2' 'gstreamer0.10-base' 'libgl')
17 makedepends=('gcc43' 'libgnomeprintui' 'gstreamer0.10-base-plugins' 'gconf' 'mesa')
18 #source=(http://downloads.sourceforge.net/wxpython/wxPython-src-${pkgver}.tar.bz2)
19 source=(http://downloads.sourceforge.net/wxwindows/wxGTK-${pkgver}.tar.bz2
20         use-libdir.patch)
21 md5sums=('6040933d200037f90f6aa1c5169e7ec6'
22          'fc91c92c10ac71892ef23b4698daedb9')
24 build() {
25 #  cd "${srcdir}/wxPython-src-${pkgver}"
26   cd "${srcdir}/wxGTK-${pkgver}"
27   LDFLAGS="${LDFLAGS//-Wl,--as-needed/}"
28   patch -p1 < $srcdir/use-libdir.patch
29   ./configure CC=gcc-4.3 CXX=g++-4.3 --prefix=/usr --libdir=/usr/lib --with-gtk=2 --with-opengl \
30     --enable-unicode --enable-graphics_ctx --with-gnomeprint --disable-optimize --enable-mediactrl \
31     --with-libpng=sys --with-libxpm=sys --with-libjpeg=sys --with-libtiff=sys || return 1
32   make || return 1
33   make -C locale allmo || return 1
34   cd contrib/src
35   make || return 1
38 package() {
39   cd "${srcdir}/wxGTK-${pkgver}"
40   make DESTDIR="${pkgdir}" install || return 1
41   cd contrib/src
42   make DESTDIR="${pkgdir}" install || return 1
43   install -D -m644 ../../docs/licence.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1