aboutsummaryrefslogtreecommitdiffstats
path: root/community/wxgtk/APKBUILD
blob: 680cf421df2183bba8864e66eb6fdd32080adb3e (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Contributor: Pavel Kalian <pavel@kalian.cz>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=wxgtk
pkgver=3.0.3
pkgrel=0
pkgdesc="GTK2 port of wxWidgets GUI library"
url="http://www.wxwidgets.org/"
arch="all"
license="wxWidgets"
depends=""
depends_dev="gtk+2.0-dev mesa-dev zlib-dev tiff-dev libjpeg-turbo-dev expat-dev
	libsm-dev"
makedepends="$depends_dev glu-dev sdl-dev gst-plugins-base0.10-dev
	gstreamer0.10-dev gconf-dev"
install=""
subpackages="$pkgname-dev $pkgname-lang $pkgname-media $pkgname-base"
source="https://github.com/wxWidgets/wxWidgets/releases/download/v${pkgver}/wxWidgets-${pkgver}.tar.bz2"
builddir="$srcdir/wxWidgets-$pkgver"

prepare() {
	default_prepare || return 1
	update_config_sub || return 1
}

build() {
cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--with-sdl \
		--with-opengl \
		--enable-unicode \
		--enable-aui \
		--enable-no_deps \
		--enable-shared \
		--enable-sound \
		--enable-mediactrl \
		--disable-rpath \
		--disable-optimise \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
}

dev() {
	default_dev
	mv "$pkgdir"/usr/lib/wx/config "$subpkgdir"/usr/lib/wx/ || return 1
	mv "$pkgdir"/usr/bin/wxrc* "$subpkgdir"/usr/bin/ || return 1
	mv "$pkgdir"/usr/share/bakefile "$subpkgdir"/usr/share/ || return 1
}

media() {
	pkdesc="Multimedia add-on for the wxWidgets library"

	mkdir -p "$subpkgdir"/usr/lib/
	mv "$pkgdir"/usr/lib/libwx_gtk2u_media-*.so.* "$subpkgdir"/usr/lib/
}

base() {
	pkgdesc="Non-GUI support classes from the wxWidgets library"
	mkdir -p "$subpkgdir"/usr/lib/
	mv "$pkgdir"/usr/lib/libwx_baseu-*.so.* \
		"$pkgdir"/usr/lib/libwx_baseu_net-*.so.* \
		"$pkgdir"/usr/lib/libwx_baseu_xml-*.so.* \
		"$subpkgdir"/usr/lib/
}

sha512sums="dfe53682d7cda1d460f336a890603c4e823078be4b05e7cf43ab36cb49247f702808aa939d9311705bdf5f96eaa076e7a8f77f4415bc07c5bfdc19e5deff1dd1  wxWidgets-3.0.3.tar.bz2"