openSUSE Paste > mypaste
Login

Info:

By KDE, 1 Year ago, written in Text. This post will never expire.

URL: http://paste.opensuse.org/2191090

  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>
  7.  
  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')
  16. depends=('wxgtk' 'lib32-gtk2' 'lib32-libgl' 'lib32-libxxf86vm' 'lib32-libsm' 'lib32-sdl')
  17. makedepends=('gcc-multilib' 'ccache' 'lib32-glu' 'lib32-libxt')
  18. source=(http://downloads.sourceforge.net/wxwindows/wxWidgets-${pkgver}.tar.bz2)
  19. sha1sums=('c1a3c25de3ab43e2d722c2b7c4048e999c57ef21')
  20.  
  21. options=('ccache')  # Required to build libwx_gtk2u_mmedia
  22.  
  23. build() {
  24.   export CC="gcc -m32"
  25.   export CXX="g++ -m32"
  26.  
  27.   rm -fr "${srcdir}/wxWidgets-build"
  28.   cp -R "${srcdir}/wxWidgets-${pkgver}" "${srcdir}/wxWidgets-build"
  29.   cd "${srcdir}/wxWidgets-build"
  30.  
  31.   ./configure --prefix=/usr --libdir=/usr/lib32 --with-gtk=2 --with-opengl --enable-unicode \
  32.     --enable-graphics_ctx  --disable-optimize --disable-mediactrl --with-regex=builtin \
  33.     --with-libpng=sys --with-libxpm=sys --with-libjpeg=sys --with-libtiff=sys \
  34.     --with-sdl --disable-precomp-headers
  35.   make
  36.   make -C locale allmo
  37.   cd contrib/src && make
  38. }
  39.  
  40. package() {
  41.   cd "${srcdir}/wxWidgets-build"
  42.   make DESTDIR="${pkgdir}" install
  43.   cd contrib/src
  44.   make DESTDIR="${pkgdir}" install
  45.  
  46.   install -Dm644 ../../docs/licence.txt "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
  47.  
  48.   rm -rf "$pkgdir"/usr/{include,share,bin}
  49. }
  50.