# Contributor: Pavel Kalian # Maintainer: ScrumpyJack pkgname=wxgtk pkgver=3.0.4 pkgrel=2 pkgdesc="GTK2 port of wxWidgets GUI library" url="https://www.wxwidgets.org/" arch="all" license="wxWidgets" depends_dev="gtk+2.0-dev mesa-dev zlib-dev tiff-dev libjpeg-turbo-dev expat-dev libsm-dev" makedepends="$depends_dev glu-dev sdl-dev gst-plugins-base0.10-dev gstreamer0.10-dev" subpackages="$pkgname-dev $pkgname-lang $pkgname-media $pkgname-base" source="https://github.com/wxWidgets/wxWidgets/releases/download/v${pkgver}/wxWidgets-${pkgver}.tar.bz2" builddir="$srcdir/wxWidgets-$pkgver" prepare() { default_prepare update_config_sub } build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --with-sdl \ --with-opengl \ --enable-unicode \ --enable-aui \ --enable-no_deps \ --enable-shared \ --enable-sound \ --enable-mediactrl \ --disable-rpath \ --disable-optimise make } package() { make DESTDIR="$pkgdir" install } dev() { default_dev mv "$pkgdir"/usr/lib/wx/config "$subpkgdir"/usr/lib/wx/ mv "$pkgdir"/usr/bin/wxrc* "$subpkgdir"/usr/bin/ mv "$pkgdir"/usr/share/bakefile "$subpkgdir"/usr/share/ } media() { pkgdesc="Multimedia add-on for the wxWidgets library" mkdir -p "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/lib/libwx_gtk2u_media-*.so.* "$subpkgdir"/usr/lib/ } base() { pkgdesc="Non-GUI support classes from the wxWidgets library" mkdir -p "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/lib/libwx_baseu-*.so.* \ "$pkgdir"/usr/lib/libwx_baseu_net-*.so.* \ "$pkgdir"/usr/lib/libwx_baseu_xml-*.so.* \ "$subpkgdir"/usr/lib/ } sha512sums="c9e6b35d541a99921c54cfdac260843f574f146b27f924a7a0fca5007344fa99865a96ded95e6802329ad9221b4880d62b92277a1b4c1ce71420acb672ad9158 wxWidgets-3.0.4.tar.bz2"