1 # Maintainer: Vojtech Horky <vojta . horky at-symbol seznam . cz>
2 # based on wxgtk and wxgtk-2.6-ansi PKGBUILDs (thanks, guys)
8 pkgdesc="wxGTK - GTK+ implementation of wxWidgets API for GUI - ANSI version (no unicode)"
10 url="http://wxwidgets.org"
11 license=('custom:wxWindows')
13 makedepends=('libgnomeprintui' 'gstreamer0.10-base-plugins' 'gconf' 'ccache' 'sed' 'mesa')
14 source=(http://downloads.sourceforge.net/wxwindows/wxGTK-${pkgver}.tar.bz2)
15 md5sums=('6040933d200037f90f6aa1c5169e7ec6')
16 sha1sums=('e979d9d2b1ee5bd10e90fd00b02f3306327c661a')
19 cd "${srcdir}/wxGTK-${pkgver}"
21 # this ensures that /usr/lib is searched even on x86_64
22 sed '/SEARCH_LIB=/s|/usr/\$wx_cv_std_libpath|& /usr/lib|' -i configure
24 ./configure --prefix=/usr --libdir=/usr/lib --with-gtk=2 --with-opengl --disable-unicode \
25 --enable-graphics_ctx --with-gnomeprint --disable-optimize --enable-mediactrl \
26 --with-libpng=sys --with-libxpm=sys --with-libjpeg=sys --with-libtiff=sys || return 1
29 make -C locale allmo || return 1
30 make DESTDIR="${pkgdir}" install || return 1
33 make DESTDIR="${pkgdir}" install || return 1
35 # take care of the ANSI thing
36 # (this is needed to allow installation of both
37 # Unicode and non-unicode build)
38 rm -rf "${pkgdir}/usr/share"
39 # we need to install this back
40 install -D -m644 ../../docs/licence.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
41 rm -rf "${pkgdir}/usr/include"
42 rm -rf "${pkgdir}/usr/bin"