2013-04-28 06:04:01 +08:00
|
|
|
pkgname=wxgtk
|
2015-01-23 07:05:39 +08:00
|
|
|
pkgver=3.0.2
|
2017-02-12 12:45:33 +08:00
|
|
|
pkgrel=5
|
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')
|
2017-02-11 16:28:51 +08:00
|
|
|
depends=('gtk2' 'gst-plugins-base-libs')
|
|
|
|
makedepends=('gst-plugins-base' 'glu' 'libwebkit-gtk2')
|
2016-03-10 20:35:19 +08:00
|
|
|
optdepends=('libwebkit-gtk2: for webview support')
|
2014-04-17 06:16:17 +08:00
|
|
|
options=('!emptydirs')
|
2015-11-12 07:02:53 +08:00
|
|
|
source=("http://downloads.sourceforge.net/wxwindows/wxWidgets-${pkgver}.tar.bz2"
|
2017-02-11 16:28:51 +08:00
|
|
|
'make-abicheck-non-fatal.patch'
|
|
|
|
'wxgtk-gcc6.patch'
|
|
|
|
'gst1.0.patch')
|
2015-11-12 07:02:53 +08:00
|
|
|
sha256sums=('346879dc554f3ab8d6da2704f651ecb504a22e9d31c17ef5449b129ed711585d'
|
2017-02-11 16:28:51 +08:00
|
|
|
'46a1bb97d69163547da13d5e23a4c73e68de27ee601da5d2fb5bc5c417931453'
|
|
|
|
'6e659eb4f1cfbfe31e0da0c8719e496e16efa5be36265388a639964e4b39cf78'
|
|
|
|
'b85e5d5fdcd2b4774825d2855272c77e0c54024d7c687d4740c91bb24d246d8d')
|
2014-04-17 06:16:17 +08:00
|
|
|
|
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
|
2017-02-11 16:28:51 +08:00
|
|
|
|
|
|
|
# Fix build with GCC 6
|
|
|
|
patch -p1 -i ../wxgtk-gcc6.patch
|
|
|
|
|
|
|
|
# Gstreamer 0.10 -> 1.0 patch
|
|
|
|
patch -Np1 -i ../gst1.0.patch
|
|
|
|
./autogen.sh
|
2015-11-12 07:02:53 +08:00
|
|
|
}
|
2013-04-28 06:04:01 +08:00
|
|
|
|
|
|
|
build() {
|
2014-04-17 06:16:17 +08:00
|
|
|
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() {
|
2014-04-17 06:16:17 +08:00
|
|
|
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
|
|
|
}
|