summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Peterson <lavajoe@gentoo.org>2009-06-14 19:13:25 +0000
committerJoe Peterson <lavajoe@gentoo.org>2009-06-14 19:13:25 +0000
commit22be50c90321b4833d8234bf337a7b6115858852 (patch)
treea4c451a5b957f9903c5d7491bc5673ce4ce797e8 /games-simulation
parentMinor fix to epatch comment/quoting (diff)
downloadhistorical-22be50c90321b4833d8234bf337a7b6115858852.tar.gz
historical-22be50c90321b4833d8234bf337a7b6115858852.tar.bz2
historical-22be50c90321b4833d8234bf337a7b6115858852.zip
Add new 1.23_rc4; correct 1.23_rc2 version strings
Package-Manager: portage-2.1.6.13/cvs/Linux x86_64
Diffstat (limited to 'games-simulation')
-rw-r--r--games-simulation/secondlife/ChangeLog20
-rw-r--r--games-simulation/secondlife/Manifest18
-rw-r--r--games-simulation/secondlife/files/secondlife-1.23_rc2-fix-memset-error.patch (renamed from games-simulation/secondlife/files/secondlife-1.23.2_rc2-fix-memset-error.patch)0
-rw-r--r--games-simulation/secondlife/files/secondlife-1.23_rc2-fix-printf-format-error.patch (renamed from games-simulation/secondlife/files/secondlife-1.23.2_rc2-fix-printf-format-error.patch)0
-rw-r--r--games-simulation/secondlife/files/secondlife-1.23_rc2-fix-uninitialized-gdkcolor.patch (renamed from games-simulation/secondlife/files/secondlife-1.23.2_rc2-fix-uninitialized-gdkcolor.patch)0
-rw-r--r--games-simulation/secondlife/files/secondlife-1.23_rc4-amd64-audio-streaming-fix.patch26
-rw-r--r--games-simulation/secondlife/files/secondlife-1.23_rc4-fix-memset-error.patch12
-rw-r--r--games-simulation/secondlife/files/secondlife-1.23_rc4-fix-printf-format-error.patch11
-rw-r--r--games-simulation/secondlife/files/secondlife-1.23_rc4-fix-uninitialized-gdkcolor.patch10
-rw-r--r--games-simulation/secondlife/secondlife-1.23_rc2.ebuild (renamed from games-simulation/secondlife/secondlife-1.23.2_rc2.ebuild)2
-rw-r--r--games-simulation/secondlife/secondlife-1.23_rc4.ebuild141
11 files changed, 233 insertions, 7 deletions
diff --git a/games-simulation/secondlife/ChangeLog b/games-simulation/secondlife/ChangeLog
index 14c8e5439cb5..a9073722719e 100644
--- a/games-simulation/secondlife/ChangeLog
+++ b/games-simulation/secondlife/ChangeLog
@@ -1,6 +1,24 @@
# ChangeLog for games-simulation/secondlife
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-simulation/secondlife/ChangeLog,v 1.2 2009/05/27 00:22:33 lavajoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/secondlife/ChangeLog,v 1.3 2009/06/14 19:13:25 lavajoe Exp $
+
+*secondlife-1.23_rc4 (14 Jun 2009)
+*secondlife-1.23_rc2 (14 Jun 2009)
+
+ 14 Jun 2009; Joe Peterson <lavajoe@gentoo.org>
+ +secondlife-1.23_rc2.ebuild, +secondlife-1.23_rc4.ebuild,
+ -files/secondlife-1.23.2_rc2-fix-memset-error.patch,
+ +files/secondlife-1.23_rc2-fix-printf-format-error.patch,
+ +files/secondlife-1.23_rc4-fix-printf-format-error.patch,
+ -files/secondlife-1.23.2_rc2-fix-printf-format-error.patch,
+ +files/secondlife-1.23_rc2-fix-uninitialized-gdkcolor.patch,
+ +files/secondlife-1.23_rc4-fix-uninitialized-gdkcolor.patch,
+ -secondlife-1.23.2_rc2.ebuild,
+ -files/secondlife-1.23.2_rc2-fix-uninitialized-gdkcolor.patch,
+ +files/secondlife-1.23_rc2-fix-memset-error.patch,
+ +files/secondlife-1.23_rc4-amd64-audio-streaming-fix.patch,
+ +files/secondlife-1.23_rc4-fix-memset-error.patch:
+ Add new 1.23_rc4; correct 1.23_rc2 version strings
26 May 2009; Joe Peterson <lavajoe@gentoo.org>
secondlife-1.23.2_rc2.ebuild:
diff --git a/games-simulation/secondlife/Manifest b/games-simulation/secondlife/Manifest
index a9551f061b9e..9c6b89109d58 100644
--- a/games-simulation/secondlife/Manifest
+++ b/games-simulation/secondlife/Manifest
@@ -1,13 +1,21 @@
-AUX secondlife-1.23.2_rc2-fix-memset-error.patch 477 RMD160 04884855bfdb1cf1c5500942c8ff2ff4dfa78ab3 SHA1 63db029995464160a2e0fb8e56b4eeea6f9e63a7 SHA256 3046b715b667a39fcf9f66fabe9b131d0839e48aa40b9a814889db5b73e35f83
-AUX secondlife-1.23.2_rc2-fix-printf-format-error.patch 546 RMD160 a89790fcb463a3b65b251da90731088f7dca4529 SHA1 b2abbce7bfec0e38515ea7f575dd5156724eb6d2 SHA256 1ad359259c6187ae65b23f18f5990afc6234b2e620194fa3a44baf9433f0c987
-AUX secondlife-1.23.2_rc2-fix-uninitialized-gdkcolor.patch 416 RMD160 f24518fcb869b082618f73d344745da620e19eb2 SHA1 5eb11f83f5593515c738fceb1799983a61bb61bd SHA256 1e0183f61dbfaa97067bf10657b6e587119dde597c898cb2ec5a7e89c8d49b96
+AUX secondlife-1.23_rc2-fix-memset-error.patch 477 RMD160 04884855bfdb1cf1c5500942c8ff2ff4dfa78ab3 SHA1 63db029995464160a2e0fb8e56b4eeea6f9e63a7 SHA256 3046b715b667a39fcf9f66fabe9b131d0839e48aa40b9a814889db5b73e35f83
+AUX secondlife-1.23_rc2-fix-printf-format-error.patch 546 RMD160 a89790fcb463a3b65b251da90731088f7dca4529 SHA1 b2abbce7bfec0e38515ea7f575dd5156724eb6d2 SHA256 1ad359259c6187ae65b23f18f5990afc6234b2e620194fa3a44baf9433f0c987
+AUX secondlife-1.23_rc2-fix-uninitialized-gdkcolor.patch 416 RMD160 f24518fcb869b082618f73d344745da620e19eb2 SHA1 5eb11f83f5593515c738fceb1799983a61bb61bd SHA256 1e0183f61dbfaa97067bf10657b6e587119dde597c898cb2ec5a7e89c8d49b96
+AUX secondlife-1.23_rc4-amd64-audio-streaming-fix.patch 1170 RMD160 af09589d950bd7f321644713eee83603711a2c1b SHA1 d4597fe55c4831ff7d7ea7a3a311f1068a08ad9f SHA256 2a4592adf1ebb7fcee62e571c6847d426b184a86f43dc037729a1da24500e2e2
+AUX secondlife-1.23_rc4-fix-memset-error.patch 477 RMD160 04884855bfdb1cf1c5500942c8ff2ff4dfa78ab3 SHA1 63db029995464160a2e0fb8e56b4eeea6f9e63a7 SHA256 3046b715b667a39fcf9f66fabe9b131d0839e48aa40b9a814889db5b73e35f83
+AUX secondlife-1.23_rc4-fix-printf-format-error.patch 546 RMD160 a89790fcb463a3b65b251da90731088f7dca4529 SHA1 b2abbce7bfec0e38515ea7f575dd5156724eb6d2 SHA256 1ad359259c6187ae65b23f18f5990afc6234b2e620194fa3a44baf9433f0c987
+AUX secondlife-1.23_rc4-fix-uninitialized-gdkcolor.patch 416 RMD160 f24518fcb869b082618f73d344745da620e19eb2 SHA1 5eb11f83f5593515c738fceb1799983a61bb61bd SHA256 1e0183f61dbfaa97067bf10657b6e587119dde597c898cb2ec5a7e89c8d49b96
AUX secondlife-disable-ndof.patch 302 RMD160 e4f7947c8362d914808d4eb7fef90c7044883280 SHA1 8b76332cf5093b9c77d443986cde01aae3db6bc6 SHA256 e532e9618afc28e543f79c0ec4195b16f2c945d7184abb7d121a42275c6e58b7
AUX secondlife-fix-cmake-include-path.patch 444 RMD160 0cb80fe8aecb0d88027c844577158054884018f1 SHA1 472a39c127324d7801284d9c362b6fc916ca4fe9 SHA256 9934aea45e6a8303ea9a059855e4cbfdcb60570adea43967d483003310ae2b05
DIST glh_linear-linux-20080613.tar.bz2 8822 RMD160 28461838d90c03b666fd9f3b44e795ae3272b661 SHA1 37b1dc99797a643dc1cf5892fad7f48980a94f40 SHA256 1582ca663eb5eb5cb6bb24c09f8de4e91c17cab3e488bdb35c1d6113a520a143
DIST slviewer-artwork-viewer-1.23.2-r120719.zip 10127954 RMD160 8555d1494236790c68c0397e95e6e12e8b4d75d7 SHA1 8a7d3549bede62823bc6cbebc3cfb3bdcf4565d3 SHA256 4995d37c86fca63b2bce5711b55fcc83dda68c050edd81f6b0343b0b0cee42b6
+DIST slviewer-artwork-viewer-rc-frozen-1.23.4.123523.zip 10127954 RMD160 019707a81587a1bb4d26949d03c033b3e5fa6943 SHA1 9d32a63a9c582f243bf6555ae6894cbc95e11464 SHA256 f2b7644fdef739846a61509f8de1ee3cfc18898b97bdda0ddcd986ded2f95baf
DIST slviewer-linux-libs-viewer-1.23.2-r120719.tar.gz 548524 RMD160 a77f849c643c56276ee024e7f9754593e62f6699 SHA1 a44b94249465e106c7d8326d32a00402881e7740 SHA256 b0035eeb201577fe6ba65b16be2ca22473548cd002c0325e59112aa483163bf6
+DIST slviewer-linux-libs-viewer-rc-frozen-1.23.4.123523.tar.gz 1408656 RMD160 b6f9eacdae8e3e4b0999f4779d305167d49b024c SHA1 f0ad9cda7162c4b05d65dcbebbe7a15996b783d7 SHA256 958a81b069405f9da9a18dcc0f1b3d77260d97170d7a913d73d6d01d0de9f8a8
DIST slviewer-src-viewer-1.23.2-r120719.tar.gz 8059168 RMD160 d161beb02a64910600d9f7d00acd327cc4223704 SHA1 51a6caa21a17311ea80b9c1a9ab65cdae931fb5d SHA256 2285a5c5fb56227805aa2276b88e30a53e445257a86c62f7713442efc8dcd1e9
+DIST slviewer-src-viewer-rc-frozen-1.23.4.123523.tar.gz 8461103 RMD160 a58b7b38f77ae5d395ef9cdfa909c3f8497a15c6 SHA1 61d04d4307b76396a7f788560950a9f63413d8bc SHA256 607b8859c764f358cb0adab8b2b8c6e1de7e1eb9879d6fb315de9fd81a4f6f16
DIST xmlrpc-epi-0.54.tar.gz 491572 RMD160 4f51c47f1e84a21b0041e770d9362c8be371c242 SHA1 e547f2399c008a818b43161c1df593a0490c7567 SHA256 bd685ec51a477a28735188c10313d9f9ca35a7725a740ad49ccdcf62d9ca0e3f
-EBUILD secondlife-1.23.2_rc2.ebuild 5154 RMD160 b6d1bcfe80e16de39a5b442ea872d78f3b7b6154 SHA1 d5a0bd71c3e1444d9e52810c7ebd58d6ba0bb24b SHA256 2102803ede840bc1510574d296c62734dcd30cc8040a5fe524306cc3c9ff372d
-MISC ChangeLog 768 RMD160 36045ee137e5fd87210bce9e044d732e726dc2a5 SHA1 ff57728ea84f30d0451b63d6f9001f44994ef927 SHA256 31733137980fb99d5c015d179a00cf7fb353945cf02b2f7214ed7472cee099f3
+EBUILD secondlife-1.23_rc2.ebuild 5152 RMD160 8880d17952373ce48d467834248741e4f63bd912 SHA1 c37804536a05f5684cc8a5d2eb3b8516e09cbc06 SHA256 32209b10ff4ce3cedbda22b9aba1f05565b08b73a314e7f4fdecd1058e2c72fa
+EBUILD secondlife-1.23_rc4.ebuild 4915 RMD160 a1fdddaa5de8a1e6ba8bc4fd3d09a201ff300c48 SHA1 98bf25e7c5e9eec76828c4f7b113eb68703a86ed SHA256 14e319ebefd664b63bf11bafaf180dbb505902c0ac32eedbe552689805391670
+MISC ChangeLog 1631 RMD160 22375703b00d07926e0680e53ec07bc4109c700d SHA1 7eb016f5d9f9c5bb424e66311f249befd2169374 SHA256 9fb7f5bfade6c675e07e57b73912d09c542268aac899bd560e8f819b1e875cb4
MISC metadata.xml 223 RMD160 0c9c59654305e8789fe6c93fd07c561cfe003f54 SHA1 7904e6fb45104baf2cb67fb9886c633af4dc7056 SHA256 a24b49fe5448d4cb329acf1d8113ac30eb1d61d63a7319b66c077d3f1775d055
diff --git a/games-simulation/secondlife/files/secondlife-1.23.2_rc2-fix-memset-error.patch b/games-simulation/secondlife/files/secondlife-1.23_rc2-fix-memset-error.patch
index edff470da052..edff470da052 100644
--- a/games-simulation/secondlife/files/secondlife-1.23.2_rc2-fix-memset-error.patch
+++ b/games-simulation/secondlife/files/secondlife-1.23_rc2-fix-memset-error.patch
diff --git a/games-simulation/secondlife/files/secondlife-1.23.2_rc2-fix-printf-format-error.patch b/games-simulation/secondlife/files/secondlife-1.23_rc2-fix-printf-format-error.patch
index c99b5302b3da..c99b5302b3da 100644
--- a/games-simulation/secondlife/files/secondlife-1.23.2_rc2-fix-printf-format-error.patch
+++ b/games-simulation/secondlife/files/secondlife-1.23_rc2-fix-printf-format-error.patch
diff --git a/games-simulation/secondlife/files/secondlife-1.23.2_rc2-fix-uninitialized-gdkcolor.patch b/games-simulation/secondlife/files/secondlife-1.23_rc2-fix-uninitialized-gdkcolor.patch
index e51edaeea883..e51edaeea883 100644
--- a/games-simulation/secondlife/files/secondlife-1.23.2_rc2-fix-uninitialized-gdkcolor.patch
+++ b/games-simulation/secondlife/files/secondlife-1.23_rc2-fix-uninitialized-gdkcolor.patch
diff --git a/games-simulation/secondlife/files/secondlife-1.23_rc4-amd64-audio-streaming-fix.patch b/games-simulation/secondlife/files/secondlife-1.23_rc4-amd64-audio-streaming-fix.patch
new file mode 100644
index 000000000000..62fd2b40d963
--- /dev/null
+++ b/games-simulation/secondlife/files/secondlife-1.23_rc4-amd64-audio-streaming-fix.patch
@@ -0,0 +1,26 @@
+--- indra/newview/linux_tools/wrapper.sh.old 2009-06-09 08:53:20.000000000 -0600
++++ indra/newview/linux_tools/wrapper.sh 2009-06-14 12:16:32.000000000 -0600
+@@ -5,7 +5,7 @@
+ ## testing phase; you should not usually need to touch them.
+
+ ## - Avoids using any OpenAL audio driver.
+-#export LL_BAD_OPENAL_DRIVER=x
++export LL_BAD_OPENAL_DRIVER=x
+ ## - Avoids using any FMOD audio driver.
+ #export LL_BAD_FMOD_DRIVER=x
+
+@@ -48,10 +48,10 @@
+ ## - GStreamer is automatically disabled - for now - on 64-bit systems due
+ ## to common fatal incompatibilities; remove/comment these lines if you want
+ ## to try anyway.
+-if [ "`uname -m`" = "x86_64" ]; then
+- export LL_DISABLE_GSTREAMER=x
+- echo '64-bit Linux detected: Disabling GStreamer (streaming video and music) by default; edit ./secondlife to re-enable.'
+-fi
++#if [ "`uname -m`" = "x86_64" ]; then
++# export LL_DISABLE_GSTREAMER=x
++# echo '64-bit Linux detected: Disabling GStreamer (streaming video and music) by default; edit ./secondlife to re-enable.'
++#fi
+
+ ## Everything below this line is just for advanced troubleshooters.
+ ##-------------------------------------------------------------------
diff --git a/games-simulation/secondlife/files/secondlife-1.23_rc4-fix-memset-error.patch b/games-simulation/secondlife/files/secondlife-1.23_rc4-fix-memset-error.patch
new file mode 100644
index 000000000000..edff470da052
--- /dev/null
+++ b/games-simulation/secondlife/files/secondlife-1.23_rc4-fix-memset-error.patch
@@ -0,0 +1,12 @@
+--- linden/indra/llmessage/lltemplatemessagereader.cpp~ 2009-05-20 15:26:15.000000000 -0600
++++ linden/indra/llmessage/lltemplatemessagereader.cpp 2009-05-25 21:56:50.000000000 -0600
+@@ -676,8 +676,7 @@
+
+ // default to 0s.
+ U32 size = mvci.getSize();
+- std::vector<U8> data(size);
+- memset(&(data[0]), 0, size);
++ std::vector<U8> data(size, 0);
+ cur_data_block->addData(mvci.getName(), &(data[0]),
+ size, mvci.getType());
+ }
diff --git a/games-simulation/secondlife/files/secondlife-1.23_rc4-fix-printf-format-error.patch b/games-simulation/secondlife/files/secondlife-1.23_rc4-fix-printf-format-error.patch
new file mode 100644
index 000000000000..c99b5302b3da
--- /dev/null
+++ b/games-simulation/secondlife/files/secondlife-1.23_rc4-fix-printf-format-error.patch
@@ -0,0 +1,11 @@
+--- linden/indra/newview/llappviewerlinux.cpp~ 2009-05-20 15:26:19.000000000 -0600
++++ linden/indra/newview/llappviewerlinux.cpp 2009-05-25 23:24:31.000000000 -0600
+@@ -188,7 +188,7 @@
+ for (i = 0; i < size; i++)
+ {
+ // the format of the StraceFile is very specific, to allow (kludgy) machine-parsing
+- fprintf(StraceFile, "%-3d ", i);
++ fprintf(StraceFile, "%-3ld ", (long) i);
+ fprintf(StraceFile, "%-32s\t", "unknown");
+ fprintf(StraceFile, "%p ", stackarray[i]);
+ fprintf(StraceFile, "%s\n", strings[i]);
diff --git a/games-simulation/secondlife/files/secondlife-1.23_rc4-fix-uninitialized-gdkcolor.patch b/games-simulation/secondlife/files/secondlife-1.23_rc4-fix-uninitialized-gdkcolor.patch
new file mode 100644
index 000000000000..e51edaeea883
--- /dev/null
+++ b/games-simulation/secondlife/files/secondlife-1.23_rc4-fix-uninitialized-gdkcolor.patch
@@ -0,0 +1,10 @@
+--- linden/indra/llwindow/llwindowsdl.cpp~ 2009-05-20 15:26:16.000000000 -0600
++++ linden/indra/llwindow/llwindowsdl.cpp 2009-05-25 21:42:55.000000000 -0600
+@@ -2195,6 +2195,7 @@
+ orig_color.red = guint16(65535 * *r);
+ orig_color.green= guint16(65535 * *g);
+ orig_color.blue = guint16(65535 * *b);
++ orig_color.pixel = 0;
+ color = orig_color;
+
+ gtk_color_selection_set_previous_color (colorsel, &color);
diff --git a/games-simulation/secondlife/secondlife-1.23.2_rc2.ebuild b/games-simulation/secondlife/secondlife-1.23_rc2.ebuild
index ae29ce147d4f..b0d3a5dc7e14 100644
--- a/games-simulation/secondlife/secondlife-1.23.2_rc2.ebuild
+++ b/games-simulation/secondlife/secondlife-1.23_rc2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-simulation/secondlife/secondlife-1.23.2_rc2.ebuild,v 1.2 2009/05/27 00:22:33 lavajoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/secondlife/secondlife-1.23_rc2.ebuild,v 1.1 2009/06/14 19:13:25 lavajoe Exp $
inherit eutils multilib games versionator
diff --git a/games-simulation/secondlife/secondlife-1.23_rc4.ebuild b/games-simulation/secondlife/secondlife-1.23_rc4.ebuild
new file mode 100644
index 000000000000..c04d38c6c995
--- /dev/null
+++ b/games-simulation/secondlife/secondlife-1.23_rc4.ebuild
@@ -0,0 +1,141 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-simulation/secondlife/secondlife-1.23_rc4.ebuild,v 1.1 2009/06/14 19:13:25 lavajoe Exp $
+
+inherit eutils multilib games versionator
+
+SECONDLIFE_REVISION=123523
+SECONDLIFE_MAJOR_VER=$(get_version_component_range 1-2)
+SECONDLIFE_MINOR_VER=$(get_version_component_range 3)
+SECONDLIFE_MINOR_VER=${SECONDLIFE_MINOR_VER/rc/}
+MY_P="slviewer-src-viewer-rc-frozen-${SECONDLIFE_MAJOR_VER}.${SECONDLIFE_MINOR_VER}.${SECONDLIFE_REVISION}"
+
+DESCRIPTION="The Second Life (an online, 3D virtual world) viewer"
+HOMEPAGE="http://secondlife.com/"
+SRC_URI="http://automated-builds-secondlife-com.s3.amazonaws.com/viewer-rc-frozen/${MY_P}.tar.gz http://automated-builds-secondlife-com.s3.amazonaws.com/viewer-rc-frozen/slviewer-artwork-viewer-rc-frozen-${SECONDLIFE_MAJOR_VER}.${SECONDLIFE_MINOR_VER}.${SECONDLIFE_REVISION}.zip http://automated-builds-secondlife-com.s3.amazonaws.com/viewer-rc-frozen/slviewer-linux-libs-viewer-rc-frozen-${SECONDLIFE_MAJOR_VER}.${SECONDLIFE_MINOR_VER}.${SECONDLIFE_REVISION}.tar.gz mirror://sourceforge/xmlrpc-epi/xmlrpc-epi-0.54.tar.gz"
+
+LICENSE="GPL-2-with-Linden-Lab-FLOSS-exception Epinions"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="sys-libs/glibc
+ sys-apps/dbus
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ >=x11-libs/gtk+-2.0
+ x11-libs/libXinerama
+ dev-libs/libgcrypt
+ dev-libs/libgpg-error
+ dev-libs/openssl
+ dev-libs/apr
+ dev-libs/apr-util
+ dev-libs/boost
+ dev-libs/elfio
+ dev-libs/expat
+ dev-util/cmake
+ media-libs/freetype
+ media-libs/libogg
+ media-libs/libsdl
+ media-libs/libvorbis
+ media-libs/gstreamer
+ media-plugins/gst-plugins-meta
+ media-libs/fmod
+ media-libs/jpeg
+ media-libs/openjpeg
+ net-libs/gnutls
+ net-misc/curl
+ net-dns/c-ares
+ sys-libs/zlib
+ virtual/libstdc++
+ virtual/glu
+ virtual/opengl
+ media-libs/openal
+ media-libs/freealut"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/linden"
+
+use amd64 && ARCH_LIBS_DIR="x86_64-linux"
+use x86 && ARCH_LIBS_DIR="i686-linux"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # On 64-bit systems, we need to uncomment LL_BAD_OPENAL_DRIVER=x
+ # and comment out the amd64 streaming disable to fix streaming audio.
+ use amd64 && epatch "${FILESDIR}/${P}-amd64-audio-streaming-fix.patch"
+
+ # Fix cmake include path (so it can find xmlrpc includes)
+ epatch "${FILESDIR}/${PN}-fix-cmake-include-path.patch"
+
+ # Disable NDOF (joystick) that will not compile
+ epatch "${FILESDIR}/${PN}-disable-ndof.patch"
+
+ # Fix uninitialized GdkColor
+ epatch "${FILESDIR}/${P}-fix-uninitialized-gdkcolor.patch"
+
+ # Fix memset used with constant zero length parameter error
+ epatch "${FILESDIR}/${P}-fix-memset-error.patch"
+
+ # Fix printf format type error
+ epatch "${FILESDIR}/${P}-fix-printf-format-error.patch"
+
+ # Add local paths to the xmlrpc-epi cmake files.
+ # NOTE: This lib is downloaded separately, since it is
+ # not available in Gentoo.
+ sed -i -e"s:/usr/local/include:${S}/libraries/${ARCH_LIBS_DIR}/include /usr/local/include:" indra/cmake/FindXmlRpcEpi.cmake || die
+ sed -i -e"s:/usr/lib:${S}/libraries/${ARCH_LIBS_DIR}/lib_release_client /usr/lib:" indra/cmake/FindXmlRpcEpi.cmake || die
+
+ # Make 3rd party package area for xmlrpc-epi
+ mkdir -p libraries/${ARCH_LIBS_DIR}/include || die
+ mkdir libraries/${ARCH_LIBS_DIR}/lib_release_client || die
+}
+
+src_compile() {
+ # First, build xmlrpc-epi
+ cd "${WORKDIR}/xmlrpc-epi-"*
+
+ econf
+ emake || die
+
+ # Copy relevant files from xmlrpc-epi to 3rd party package area
+ rm src/.libs/libxmlrpc-epi.la || die
+ cp src/libxmlrpc-epi.la src/.libs || die
+ mkdir "${S}"/libraries/${ARCH_LIBS_DIR}/include/xmlrpc-epi || die
+ cp -dR src/*.h "${S}"/libraries/${ARCH_LIBS_DIR}/include/xmlrpc-epi || die
+ cp -dR src/.libs/libxmlrpc* "${S}"/libraries/${ARCH_LIBS_DIR}/lib_release_client || die
+
+ # Now build the Second Life viewer
+ cd "${S}/indra"
+
+ ./develop.py --standalone configure || die
+ ./develop.py --standalone build || die
+}
+
+src_install() {
+ cd "${S}"/indra/viewer-*/newview/packaged || die
+
+ dodoc README-*.txt licenses.txt || die
+ rm README-*.txt licenses.txt || die
+
+ insinto /usr/share/secondlife
+ doins secondlife_icon.png || die
+ rm secondlife_icon.png || die
+
+ dodir /usr/lib/${PN} || die
+ cp -dR "${S}"/libraries/${ARCH_LIBS_DIR}/lib_release_client/libxml* "${D}"/usr/lib/${PN} || die
+ #cp -dR bin secondlife *.sh "${D}"/usr/lib/${PN} || die
+ #rm -r bin secondlife *.sh || die
+ cp -dR * "${D}"/usr/lib/${PN} || die
+ chmod o-x "${D}"/usr/lib/${PN}/bin/* "${D}"/usr/lib/${PN}/secondlife "${D}"/usr/lib/${PN}/*.sh || die
+ chgrp games "${D}"/usr/lib/${PN}/bin/* "${D}"/usr/lib/${PN}/secondlife "${D}"/usr/lib/${PN}/*.sh || die
+
+ games_make_wrapper secondlife "./secondlife --set VersionChannelName Gentoo" /usr/lib/${PN} /usr/lib/${PN}
+ make_desktop_entry secondlife "Second Life" /usr/share/${PN}/secondlife_icon.png
+
+ prepgamesdirs
+}