summaryrefslogtreecommitdiff
path: root/portsToCome/wxgtk2-8/Pkgfile
blob: 330b840fc1b0209433f1df0807e87d12374d4a71 (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
# Description: wxWidgets for GTK+
# URL: http://www.wxwidgets.org/
# Maintainer: Erich Eckner, erich at eckner dot net
# Packager: Daryl Fonseca-Holt, wyatt at prairieturtle dot ca
# Depends on: gtk glu gst-plugins-base-compat gconf xorg-libxxf86vm
# Arch Maintainer: Bartlomiej Palmowski, rotwang at crux dot org dot pl

name=wxgtk2-8
version=2.8.12
release=5
source=(http://download.sourceforge.net/wxwindows/wxGTK-$version.tar.bz2)

build() {
	export LDFLAGS="$LDFLAGS -L/usr/X11R6/lib"
	cd wxGTK-$version
#	patch -p0 -i $SRC/$name-$version-gsocket.patch
	# quick workaround (configure can't find mesa3d libs on 64 bit)
	sed -i '/^SEARCH_INCLUDE="\\/s|\\|/usr/lib \\|' configure       
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--enable-gtk2 \
		--enable-unicode \
		--with-opengl \
		--enable-mediactrl
	make
	make prefix=$PKG/usr 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
	rm -rf $PKG/usr/share/locale $PKG/usr/share/bakefile
}