summaryrefslogtreecommitdiffstats
path: root/testing/snowstorm/APKBUILD
blob: bec0d972369ea5cd7bf51e147b0277950e095867 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer:
pkgname=snowstorm
pkgver=2.5.2
pkgrel=3
pkgdesc="snowstorm viewer for secondlife (and compatible servers)"
url="http://wiki.secondlife.com/wiki/Project_Snowstorm"
arch=""
license="GPL"
depends=
depends_dev="mesa-dev sdl-dev openal-soft-dev apr-dev 
	apr-util-dev libvorbis-dev 
	libogg-dev freealut-dev db-dev boost-dev c-ares-dev
	xmlrpc-epi-dev libpng-dev tut-dev openjpeg-dev gtk+-dev
	qt-dev dbus-glib-dev gstreamer-dev gst-plugins-base-dev
	jsoncpp-dev boost-coroutine pth-dev"
makedepends="$depends_dev cmake"
install=""
subpackages=""
source="http://67.202.104.180/~nenolod/secondlife-${pkgver}-sourcebundle.tar.gz
	indra-no-breakpad.patch"

_builddir="${srcdir}/build"
_srcdir="${srcdir}/viewer-release/indra"
prepare() {
	local i
	mkdir "$_builddir"

	cd "$_srcdir/.."

	msg "Copying indra to indra.orig for easy patching"
	cp -R indra indra.orig

	cd "$_srcdir"

	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	msg "Preparing llqtwebkit"
	cd "$_builddir/../llqtwebkit"

	qmake CONFIG-=debug
	make

	msg "Building indra"
	cd "$_builddir"
	cmake -DCMAKE_INSTALL_PREFIX=/usr -DPACKAGE:BOOL=FALSE \
		-DLLQTWEBKIT_INCLUDE_DIR:STRING=${srcdir}/llqtwebkit \
		-DLLQTWEBKIT_LIBRARY:STRING=${srcdir}/llqtwebkit \
		-DCMAKE_BUILD_TYPE:STRING=RELWITHDEBINFO \
		-DOPENAL:BOOL=TRUE \
		-DFMOD:BOOL=FALSE \
		-DUNATTENDED:BOOL=TRUE \
		-DSTANDALONE:BOOL=TRUE \
		-DLL_TESTS:BOOL=FALSE \
		-DNDOF:BOOL=FALSE \
		-DVIEWER:BOOL=TRUE "$_srcdir" || return 1
	make || return 1
}

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

md5sums="e16f67d04813953e5eadc1beafc435dd  secondlife-2.5.2-sourcebundle.tar.gz
c75027c0a6f7c52e0ae2b8008ca99f9e  indra-no-breakpad.patch"