gtk/wxgtk/PKGBUILD

54 lines
1.5 KiB
Bash
Raw Normal View History

2013-04-28 06:04:01 +08:00
pkgname=wxgtk
2017-05-17 07:20:32 +08:00
pkgver=3.0.3.1
pkgrel=3
2013-04-28 06:04:01 +08:00
pkgdesc="GTK+ implementation of wxWidgets API for GUI"
arch=('x86_64')
url="http://wxwidgets.org"
license=('custom:wxWindows')
depends=('gtk2' 'gst-plugins-base-libs' 'libsm' 'libxxf86vm' 'libnotify')
makedepends=('gst-plugins-base' 'glu' 'libwebkit-gtk2')
2016-03-10 20:35:19 +08:00
optdepends=('libwebkit-gtk2: for webview support')
options=('!emptydirs')
2017-05-17 07:20:32 +08:00
source=(https://github.com/wxWidgets/wxWidgets/releases/download/v$pkgver/wxWidgets-$pkgver.tar.bz2
'make-abicheck-non-fatal.patch')
sha256sums=('3164ad6bc5f61c48d2185b39065ddbe44283eb834a5f62beb13f1d0923e366e4'
'46a1bb97d69163547da13d5e23a4c73e68de27ee601da5d2fb5bc5c417931453')
2015-11-12 07:02:53 +08:00
prepare() {
cd wxWidgets-${pkgver}
# C++ ABI check is too strict and breaks with GCC 5.1
# https://bugzilla.redhat.com/show_bug.cgi?id=1200611
patch -Np1 -i ../make-abicheck-non-fatal.patch
./autogen.sh
2015-11-12 07:02:53 +08:00
}
2013-04-28 06:04:01 +08:00
build() {
cd wxWidgets-${pkgver}
2014-07-29 04:48:33 +08:00
./configure \
--prefix=/usr \
--libdir=/usr/lib \
--with-gtk=2 \
--with-opengl \
--enable-unicode \
--enable-graphics_ctx \
--enable-mediactrl \
2015-11-12 07:02:53 +08:00
--enable-webview \
2014-07-29 04:48:33 +08:00
--with-regex=builtin \
--with-libpng=sys \
--with-libxpm=sys \
--with-libjpeg=sys \
--with-libtiff=sys \
--disable-precomp-headers \
--without-gconf
2013-04-28 06:04:01 +08:00
make
make -C locale allmo
}
package() {
cd wxWidgets-${pkgver}
2013-04-28 06:04:01 +08:00
make DESTDIR="${pkgdir}" install
2014-07-29 04:48:33 +08:00
install -Dm644 docs/licence.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
2013-04-28 06:04:01 +08:00
}