summaryrefslogtreecommitdiffstats
path: root/extra/wxgtk/Pkgfile
blob: 72259bb23b1baacabd33a069fe79aef0fe8eb672 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Description: wxGTK - GTK+ implementation of wxWidgets API for GUI
# URL: http://wxwidgets.org
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: gtk, mesa3d 
# Run on: gtk,mesa3d

name=wxgtk
version=2.8.10
release=1
source=(http://downloads.sourceforge.net/wxwindows/wxGTK-${version}.tar.bz2 \
	overflow.patch glib-2.21.patch)


build() {
	export LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
	cd wxGTK-$version

        patch -p4 < ../overflow.patch
	patch -Np1 -i ../glib-2.21.patch

        ./configure --prefix=/usr\
		--with-gtk=2 \
		--libdir=/usr/lib \
		--with-opengl \
		--enable-unicode \
		--without-gnomeprint \
		--disable-optimize \
		--mandir=/usr/share/man\
		--infodir=/usr/share/info
	make
	make DESTDIR=$PKG install
	cd contrib
	make
	make prefix=$PKG/usr install
	ln -sf /usr/lib/wx/config/gtk2-unicode-release-2.8 $PKG/usr/bin/wx-config		
}