summaryrefslogtreecommitdiff
path: root/wxgtk-common/Pkgfile
blob: 8c395f9d854588312961662d76a609de5cea2a8c (plain)
    1 # Description: Common libraries and headers for wxgtk2 and wxgtk3
    2 # URL: http://www.wxwidgets.org/
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Depends on: gtk glu gst-plugins-base
    5 
    6 name=wxgtk-common
    7 version=3.0.5.1
    8 release=1
    9 source=(https://github.com/wxWidgets/wxWidgets/releases/download/v$version/wxWidgets-$version.tar.bz2
   10 	make-abicheck-non-fatal.patch)
   11 
   12 build() {
   13 	cd wxWidgets-$version
   14 
   15 	# C++ ABI check is too strict and breaks with GCC 5.1
   16 	# https://bugzilla.redhat.com/show_bug.cgi?id=1200611
   17 	patch -p1 -i $SRC/make-abicheck-non-fatal.patch
   18 
   19 	./configure \
   20 		--prefix=/usr \
   21 		--libdir=/usr/lib \
   22 		--with-gtk=2 \
   23 		--with-opengl \
   24 		--enable-unicode \
   25 		--enable-graphics_ctx \
   26 		--enable-mediactrl \
   27 		--enable-webview \
   28 		--with-regex=builtin \
   29 		--with-libpng=sys \
   30 		--with-libxpm=sys \
   31 		--with-libjpeg=sys \
   32 		--with-libtiff=sys \
   33 		--disable-precomp-headers
   34 
   35 	make
   36 	make DESTDIR=$PKG install
   37 
   38 	rm -r $PKG/usr/{bin/wx-config,lib/{wx,libwx_gtk*}}
   39 
   40 	rm -r \
   41 		$PKG/usr/share/locale \
   42 		$PKG/usr/share/bakefile
   43 }

Generated by cgit