# Contributor: William Pitcock # Maintainer: pkgname=snowstorm pkgver=2.5.2 pkgrel=4 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"