contrib/wxgtk/Pkgfile

52 lines
1.1 KiB
Plaintext

# Description: wxWidgets for GTK+.
# URL: http://www.wxwidgets.org/
# Maintainer: Danny Rawlins, crux at romster dot me
# Packager: Antti Nykanen, aon at iki dot fi
# Depends on: gtk glu gst-plugins-base
name=wxgtk
version=3.0.2
release=2
source=(http://downloads.sourceforge.net/wxwindows/wxWidgets-$version.tar.bz2
make-abicheck-non-fatal.patch
wxgtk-gcc6.patch
gst1.0.patch)
build() {
cd wxWidgets-$version
# C++ ABI check is too strict and breaks with GCC 5.1
# https://bugzilla.redhat.com/show_bug.cgi?id=1200611
patch -p1 -i $SRC/make-abicheck-non-fatal.patch
# Fix build with GCC 6
patch -p1 -i $SRC/wxgtk-gcc6.patch
# Gstreamer 0.10 -> 1.0 patch
patch -p1 -i $SRC/gst1.0.patch
./autogen.sh
./configure \
--prefix=/usr \
--libdir=/usr/lib \
--with-gtk=2 \
--with-opengl \
--enable-unicode \
--enable-graphics_ctx \
--enable-mediactrl \
--enable-webview \
--with-regex=builtin \
--with-libpng=sys \
--with-libxpm=sys \
--with-libjpeg=sys \
--with-libtiff=sys \
--disable-precomp-headers
make
make DESTDIR=$PKG install
rm -r \
$PKG/usr/share/locale \
$PKG/usr/share/bakefile
}