summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatsuu Takuto <matsuu@gentoo.org>2007-03-24 23:51:11 +0000
committerMatsuu Takuto <matsuu@gentoo.org>2007-03-24 23:51:11 +0000
commit3d846dc7c9891e13f00debfda3c6de5d10b76024 (patch)
treea5545bdff5a2ec63677e18bd5ad035e7377da00c /games-simulation
downloadsecondlife-3d846dc7c9891e13f00debfda3c6de5d10b76024.tar.gz
secondlife-3d846dc7c9891e13f00debfda3c6de5d10b76024.tar.bz2
secondlife-3d846dc7c9891e13f00debfda3c6de5d10b76024.zip
Initial import.
svn path=/secondlife/; revision=1
Diffstat (limited to 'games-simulation')
-rw-r--r--games-simulation/secondlife-bin/Manifest16
-rw-r--r--games-simulation/secondlife-bin/files/digest-secondlife-bin-1.13.3.23
-rw-r--r--games-simulation/secondlife-bin/files/digest-secondlife-bin-1.13.4.595583
-rw-r--r--games-simulation/secondlife-bin/secondlife-bin-1.13.3.2.ebuild89
-rw-r--r--games-simulation/secondlife-bin/secondlife-bin-1.13.4.59558.ebuild91
-rw-r--r--games-simulation/secondlife/Manifest25
-rw-r--r--games-simulation/secondlife/files/digest-secondlife-1.13.3.595586
-rw-r--r--games-simulation/secondlife/files/opensecondlife-svn41.patch28
-rw-r--r--games-simulation/secondlife/files/secondlife-1.13.3.2-llimagej2coj_debug.patch121
-rw-r--r--games-simulation/secondlife/files/secondlife-1.13.3.59315-no_fmod.patch21
-rw-r--r--games-simulation/secondlife/files/secondlife-1.13.3.59558-gentoo.patch211
-rw-r--r--games-simulation/secondlife/secondlife-1.13.3.59558.ebuild131
12 files changed, 745 insertions, 0 deletions
diff --git a/games-simulation/secondlife-bin/Manifest b/games-simulation/secondlife-bin/Manifest
new file mode 100644
index 0000000..4ac9da9
--- /dev/null
+++ b/games-simulation/secondlife-bin/Manifest
@@ -0,0 +1,16 @@
+DIST SecondLife_i686_1_13_3_2.tar.bz2 40863936 RMD160 6b2ec9dcd94b2fafa923b606e46eec74bbab4538 SHA1 09629e3da7af9eb647538ee464379ccd384ff9b1 SHA256 db181dc52b31e91982bfed2e19678dfca21434a795fefd3dba06bdcf9fdc30a8
+DIST SecondLife_i686_1_13_4_59558_FIRSTLOOK.tar.bz2 50021132 RMD160 d9fd87bfcadef25a609a982653f2a8b491b7527f SHA1 875d3ccee60910036c0c30ac98d9b0b14154e68a SHA256 150e372b94356063fae135730dcd68969ebc975f3983eeb626b2bf4258b4cec5
+EBUILD secondlife-bin-1.13.3.2.ebuild 2023 RMD160 17a62e6e7e477b26381603046b4c50f76892224c SHA1 8f8f84eb3a46b95f35b262f8d0669e738d389af1 SHA256 5a4be413c4ff89c599be2e4aff1504c1fd191927b5b2b0651eacbb74b23891fb
+MD5 a6bc44c4fc3c0a4427e1a581ae9eca61 secondlife-bin-1.13.3.2.ebuild 2023
+RMD160 17a62e6e7e477b26381603046b4c50f76892224c secondlife-bin-1.13.3.2.ebuild 2023
+SHA256 5a4be413c4ff89c599be2e4aff1504c1fd191927b5b2b0651eacbb74b23891fb secondlife-bin-1.13.3.2.ebuild 2023
+EBUILD secondlife-bin-1.13.4.59558.ebuild 2144 RMD160 f343fb63c15a2a4ca49a43d5a181549b128bb072 SHA1 92d59c097ba22bc16623654065a0109f0b96cc4a SHA256 f4ddd6e4e89f8514ca9f9b6d62889d80475d68eb37bf20a4cb6f282a74da9d0f
+MD5 b6703cee5426acf4b9ecaaa253638c5b secondlife-bin-1.13.4.59558.ebuild 2144
+RMD160 f343fb63c15a2a4ca49a43d5a181549b128bb072 secondlife-bin-1.13.4.59558.ebuild 2144
+SHA256 f4ddd6e4e89f8514ca9f9b6d62889d80475d68eb37bf20a4cb6f282a74da9d0f secondlife-bin-1.13.4.59558.ebuild 2144
+MD5 119ac56f6e51bb5a576257d3cd08702e files/digest-secondlife-bin-1.13.3.2 283
+RMD160 78158b635c14929f51e6c57e997ce94048b46b5b files/digest-secondlife-bin-1.13.3.2 283
+SHA256 0aa603511191e63204fdf1d31c42cf84d8bc775435e86742734e27a81471ac5e files/digest-secondlife-bin-1.13.3.2 283
+MD5 22fbda7b5d3de28c0865c5dfa29239b5 files/digest-secondlife-bin-1.13.4.59558 325
+RMD160 b09993240ae564218f3d0f4e793d3fbae06708a3 files/digest-secondlife-bin-1.13.4.59558 325
+SHA256 76c67d7929431353f14b9924ce6e548f24f411ff57a96da7ae559aa6e45f2d21 files/digest-secondlife-bin-1.13.4.59558 325
diff --git a/games-simulation/secondlife-bin/files/digest-secondlife-bin-1.13.3.2 b/games-simulation/secondlife-bin/files/digest-secondlife-bin-1.13.3.2
new file mode 100644
index 0000000..f3da53b
--- /dev/null
+++ b/games-simulation/secondlife-bin/files/digest-secondlife-bin-1.13.3.2
@@ -0,0 +1,3 @@
+MD5 9800068b0a06ae5370633fafa57eae10 SecondLife_i686_1_13_3_2.tar.bz2 40863936
+RMD160 6b2ec9dcd94b2fafa923b606e46eec74bbab4538 SecondLife_i686_1_13_3_2.tar.bz2 40863936
+SHA256 db181dc52b31e91982bfed2e19678dfca21434a795fefd3dba06bdcf9fdc30a8 SecondLife_i686_1_13_3_2.tar.bz2 40863936
diff --git a/games-simulation/secondlife-bin/files/digest-secondlife-bin-1.13.4.59558 b/games-simulation/secondlife-bin/files/digest-secondlife-bin-1.13.4.59558
new file mode 100644
index 0000000..01dd0dd
--- /dev/null
+++ b/games-simulation/secondlife-bin/files/digest-secondlife-bin-1.13.4.59558
@@ -0,0 +1,3 @@
+MD5 22b16b32f9667b66d93221ef98de7392 SecondLife_i686_1_13_4_59558_FIRSTLOOK.tar.bz2 50021132
+RMD160 d9fd87bfcadef25a609a982653f2a8b491b7527f SecondLife_i686_1_13_4_59558_FIRSTLOOK.tar.bz2 50021132
+SHA256 150e372b94356063fae135730dcd68969ebc975f3983eeb626b2bf4258b4cec5 SecondLife_i686_1_13_4_59558_FIRSTLOOK.tar.bz2 50021132
diff --git a/games-simulation/secondlife-bin/secondlife-bin-1.13.3.2.ebuild b/games-simulation/secondlife-bin/secondlife-bin-1.13.3.2.ebuild
new file mode 100644
index 0000000..3bfd28f
--- /dev/null
+++ b/games-simulation/secondlife-bin/secondlife-bin-1.13.3.2.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit games
+
+MY_P="SecondLife_i686_${PV//./_}"
+
+DESCRIPTION="A 3D MMORPG virtual world entirely built and owned by its residents"
+HOMEPAGE="http://secondlife.com/"
+SRC_URI="http://secondlife.com/downloads/viewer/${MY_P}.tar.bz2"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="mirror strip"
+
+dir="${GAMES_PREFIX_OPT}/secondlife"
+QA_EXECSTACK="${dir:1}/bin/do-not-directly-run-secondlife-bin
+ ${dir:1}/lib/libGLU.so.1
+ ${dir:1}/lib/libkdu_v42R.so
+ ${dir:1}/lib/libcrypto.so.0.9.7
+ ${dir:1}/lib/libfmod-3.75.so"
+QA_TEXTRELS="${dir:1}/lib/libfreetype.so.6
+ ${dir:1}/lib/libcrypto.so.0.9.7
+ ${dir:1}/lib/libGLU.so.1
+ ${dir:1}/lib/libkdu_v42R.so
+ ${dir:1}/lib/libfmod-3.75.so
+ ${dir:1}/lib/libelfio.so"
+
+RDEPEND="sys-libs/glibc
+ media-fonts/kochi-substitute
+ x86? (
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ dev-libs/libgcrypt
+ dev-libs/libgpg-error
+ dev-libs/openssl
+ media-libs/freetype
+ media-libs/libogg
+ media-libs/libsdl
+ media-libs/libvorbis
+ net-libs/gnutls
+ net-misc/curl
+ sys-libs/zlib
+ virtual/glu
+ virtual/opengl
+ )
+ amd64? (
+ app-emulation/emul-linux-x86-sdl
+ app-emulation/emul-linux-x86-gtklibs
+ )"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ rm unicode.ttf
+}
+
+src_install() {
+ exeinto "${dir}"
+ doexe launch_url.sh linux-crash-logger.bin secondlife || die
+ rm -rf launch_url.sh linux-crash-logger.bin secondlife
+
+ exeinto "${dir}"/bin
+ doexe bin/do-not-directly-run-secondlife-bin || die
+ rm -rf bin
+
+ exeinto "${dir}"/lib
+ doexe lib/* || die
+ rm -rf lib
+
+ insinto "${dir}"
+ doins -r * || die "doins * failed"
+
+ dosym /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf "${dir}"/unicode.ttf
+
+ games_make_wrapper secondlife-bin ./secondlife "${dir}" "${dir}"/lib
+ newicon secondlife.ico secondlife-bin.ico
+ make_desktop_entry secondlife-bin "Second Life(bin)" secondlife-bin.ico
+
+ prepgamesdirs
+}
diff --git a/games-simulation/secondlife-bin/secondlife-bin-1.13.4.59558.ebuild b/games-simulation/secondlife-bin/secondlife-bin-1.13.4.59558.ebuild
new file mode 100644
index 0000000..0aa317e
--- /dev/null
+++ b/games-simulation/secondlife-bin/secondlife-bin-1.13.4.59558.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit games
+
+MY_P="SecondLife_i686_${PV//./_}_FIRSTLOOK"
+#MY_P="SecondLife_i686_${PV//./_}"
+
+DESCRIPTION="A 3D MMORPG virtual world entirely built and owned by its residents"
+HOMEPAGE="http://secondlife.com/"
+SRC_URI="http://s3.amazonaws.com/firstlook-secondlife-com/${MY_P}.tar.bz2"
+#SRC_URI="http://secondlife.com/downloads/viewer/${MY_P}.tar.bz2"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="mirror strip"
+
+dir="${GAMES_PREFIX_OPT}/secondlife"
+QA_EXECSTACK="${dir:1}/bin/do-not-directly-run-secondlife-bin
+ ${dir:1}/lib/libGLU.so.1
+ ${dir:1}/lib/libkdu_v42R.so
+ ${dir:1}/lib/libcrypto.so.0.9.7
+ ${dir:1}/lib/libfmod-3.75.so"
+QA_TEXTRELS="${dir:1}/lib/libfreetype.so.6
+ ${dir:1}/lib/libcrypto.so.0.9.7
+ ${dir:1}/lib/libGLU.so.1
+ ${dir:1}/lib/libkdu_v42R.so
+ ${dir:1}/lib/libfmod-3.75.so
+ ${dir:1}/lib/libelfio.so"
+
+RDEPEND="sys-libs/glibc
+ media-fonts/kochi-substitute
+ x86? (
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ dev-libs/libgcrypt
+ dev-libs/libgpg-error
+ dev-libs/openssl
+ media-libs/freetype
+ media-libs/libogg
+ media-libs/libsdl
+ media-libs/libvorbis
+ net-libs/gnutls
+ net-misc/curl
+ sys-libs/zlib
+ virtual/glu
+ virtual/opengl
+ )
+ amd64? (
+ app-emulation/emul-linux-x86-sdl
+ app-emulation/emul-linux-x86-gtklibs
+ )"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ rm unicode.ttf
+}
+
+src_install() {
+ exeinto "${dir}"
+ doexe launch_url.sh linux-crash-logger.bin secondlife || die
+ rm -rf launch_url.sh linux-crash-logger.bin secondlife
+
+ exeinto "${dir}"/bin
+ doexe bin/do-not-directly-run-secondlife-bin || die
+ rm -rf bin
+
+ exeinto "${dir}"/lib
+ doexe lib/* || die
+ rm -rf lib
+
+ insinto "${dir}"
+ doins -r * || die "doins * failed"
+
+ dosym /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf "${dir}"/unicode.ttf
+
+ games_make_wrapper secondlife-bin ./secondlife "${dir}" "${dir}"/lib
+ newicon secondlife.ico secondlife-bin.ico
+ make_desktop_entry secondlife-bin "Second Life(bin)" secondlife-bin.ico
+
+ prepgamesdirs
+}
diff --git a/games-simulation/secondlife/Manifest b/games-simulation/secondlife/Manifest
new file mode 100644
index 0000000..1c58797
--- /dev/null
+++ b/games-simulation/secondlife/Manifest
@@ -0,0 +1,25 @@
+AUX opensecondlife-svn41.patch 635 RMD160 4ff31d0a2e52c2ccfa6f5591e0e6e46471609690 SHA1 03998427597e06ede4d702ab4a91a7c8ae6bf824 SHA256 100a42a60f46bc6abd8b2d77ae81ee2d4ea56edcfabb1ab00b589ce0d9314bce
+MD5 23d4c1db16f9351dc2d190120d1962b4 files/opensecondlife-svn41.patch 635
+RMD160 4ff31d0a2e52c2ccfa6f5591e0e6e46471609690 files/opensecondlife-svn41.patch 635
+SHA256 100a42a60f46bc6abd8b2d77ae81ee2d4ea56edcfabb1ab00b589ce0d9314bce files/opensecondlife-svn41.patch 635
+AUX secondlife-1.13.3.2-llimagej2coj_debug.patch 3795 RMD160 4a0bd6cb16e1b35b445b2a61e7d7e372cdcd4450 SHA1 4ac6b96863d64c24f0708dc453cc2b48eb44883e SHA256 d1d16728aa2ebfac50b0563aa57a2f03d8e3dfd12f0fc10c2c2d3e99bcec28ca
+MD5 3b6706a0439c55c02e0d86acd4f495d1 files/secondlife-1.13.3.2-llimagej2coj_debug.patch 3795
+RMD160 4a0bd6cb16e1b35b445b2a61e7d7e372cdcd4450 files/secondlife-1.13.3.2-llimagej2coj_debug.patch 3795
+SHA256 d1d16728aa2ebfac50b0563aa57a2f03d8e3dfd12f0fc10c2c2d3e99bcec28ca files/secondlife-1.13.3.2-llimagej2coj_debug.patch 3795
+AUX secondlife-1.13.3.59315-no_fmod.patch 1146 RMD160 6c9a0f3f2c60fc9dcd7bf89e89c878caa4f730f7 SHA1 ed09cfb98608f530df3286e4d0e2b517821dcd6d SHA256 56a9cf153a2dc18c0527e6c2fed0645f57a542a7ab0990fad333542ebeee2a78
+MD5 29bf4466ac67b38cad15439d87d4f888 files/secondlife-1.13.3.59315-no_fmod.patch 1146
+RMD160 6c9a0f3f2c60fc9dcd7bf89e89c878caa4f730f7 files/secondlife-1.13.3.59315-no_fmod.patch 1146
+SHA256 56a9cf153a2dc18c0527e6c2fed0645f57a542a7ab0990fad333542ebeee2a78 files/secondlife-1.13.3.59315-no_fmod.patch 1146
+AUX secondlife-1.13.3.59558-gentoo.patch 8011 RMD160 aefb846e2d92e93fd9ee845f610ea2e39b44b08a SHA1 977415c6d60118d2a4366fac7ecdf7cd0d1f00f9 SHA256 dde90f2a3ecb9622bd2f366f82af91e0fe026afd593f1289a9be8095845971d1
+MD5 8d337cb0bb353e76a9e819257bc2619d files/secondlife-1.13.3.59558-gentoo.patch 8011
+RMD160 aefb846e2d92e93fd9ee845f610ea2e39b44b08a files/secondlife-1.13.3.59558-gentoo.patch 8011
+SHA256 dde90f2a3ecb9622bd2f366f82af91e0fe026afd593f1289a9be8095845971d1 files/secondlife-1.13.3.59558-gentoo.patch 8011
+DIST slviewer-artwork-FL-1.13.3.59558.zip 20005643 RMD160 bdc64269107054da2176d462f146140ea953e272 SHA1 da987b9201ce44ba72c530e50f0d270fda1c8921 SHA256 0bd2f8c2135184bcab756517c95bc5154e11666014439c56040332d4817b64a0
+DIST slviewer-src-FL-1.13.3.59558.tar.gz 9706079 RMD160 2ab28df4625813f629365c193c447915fb37dd1d SHA1 9ea1223291e304a36004ea3912b101228fd368ac SHA256 fc56a90120915d5b229458cf0d158e3cafac14338aa5e4f9f4c2a44c5b168f87
+EBUILD secondlife-1.13.3.59558.ebuild 3593 RMD160 21822f31a0137f1ee4b1c0eebbb338b53b2c7c4a SHA1 13d968252a0cc18448fb54811e5db6c498a5fd4d SHA256 6618a1691be9ca5e49f7b2c622f61871e9406a3840d54b884119e241a710ee10
+MD5 2513541c828dd4289f023c801a43156d secondlife-1.13.3.59558.ebuild 3593
+RMD160 21822f31a0137f1ee4b1c0eebbb338b53b2c7c4a secondlife-1.13.3.59558.ebuild 3593
+SHA256 6618a1691be9ca5e49f7b2c622f61871e9406a3840d54b884119e241a710ee10 secondlife-1.13.3.59558.ebuild 3593
+MD5 5c5223731df04a37b47f37a14572e7c1 files/digest-secondlife-1.13.3.59558 584
+RMD160 fa83237fb5a462f2ff8a49664b9a78371c322220 files/digest-secondlife-1.13.3.59558 584
+SHA256 2f7dffdd4cecc746870e0ac2a6905b555adc6914aa908f06dc66ba35f74e8878 files/digest-secondlife-1.13.3.59558 584
diff --git a/games-simulation/secondlife/files/digest-secondlife-1.13.3.59558 b/games-simulation/secondlife/files/digest-secondlife-1.13.3.59558
new file mode 100644
index 0000000..b537cb3
--- /dev/null
+++ b/games-simulation/secondlife/files/digest-secondlife-1.13.3.59558
@@ -0,0 +1,6 @@
+MD5 ed38c3e7e11467a3cd140e24453c3884 slviewer-artwork-FL-1.13.3.59558.zip 20005643
+RMD160 bdc64269107054da2176d462f146140ea953e272 slviewer-artwork-FL-1.13.3.59558.zip 20005643
+SHA256 0bd2f8c2135184bcab756517c95bc5154e11666014439c56040332d4817b64a0 slviewer-artwork-FL-1.13.3.59558.zip 20005643
+MD5 0b4ff4cf369f1414d257742ce2d7ab6b slviewer-src-FL-1.13.3.59558.tar.gz 9706079
+RMD160 2ab28df4625813f629365c193c447915fb37dd1d slviewer-src-FL-1.13.3.59558.tar.gz 9706079
+SHA256 fc56a90120915d5b229458cf0d158e3cafac14338aa5e4f9f4c2a44c5b168f87 slviewer-src-FL-1.13.3.59558.tar.gz 9706079
diff --git a/games-simulation/secondlife/files/opensecondlife-svn41.patch b/games-simulation/secondlife/files/opensecondlife-svn41.patch
new file mode 100644
index 0000000..f7f5606
--- /dev/null
+++ b/games-simulation/secondlife/files/opensecondlife-svn41.patch
@@ -0,0 +1,28 @@
+Index: linden/indra/llcommon/llfasttimer.cpp
+===================================================================
+--- linden/indra/llcommon/llfasttimer.cpp (revision 40)
++++ linden/indra/llcommon/llfasttimer.cpp (revision 41)
+@@ -90,21 +90,14 @@
+ #endif // LL_WINDOWS
+
+
+-#if LL_LINUX
++#if LL_LINUX && (defined(__i386__) || defined(__amd64__))
+ U64 get_cpu_clock_count()
+ {
+ U64 x;
+ __asm__ volatile (".byte 0x0f, 0x31" : "=A" (x));
+ return x;
+ }
+-#endif
+-
+-#if LL_DARWIN
+-//
+-// Mac implementation of CPU clock
+-//
+-// Just use gettimeofday implementation for now
+-
++#else
+ U64 get_cpu_clock_count()
+ {
+ return get_clock_count();
diff --git a/games-simulation/secondlife/files/secondlife-1.13.3.2-llimagej2coj_debug.patch b/games-simulation/secondlife/files/secondlife-1.13.3.2-llimagej2coj_debug.patch
new file mode 100644
index 0000000..e66a198
--- /dev/null
+++ b/games-simulation/secondlife/files/secondlife-1.13.3.2-llimagej2coj_debug.patch
@@ -0,0 +1,121 @@
+--- linden/indra/llimagej2coj/llimagej2coj.cpp.orig 2007-02-04 09:52:40.000000000 +0100
++++ linden/indra/llimagej2coj/llimagej2coj.cpp 2007-02-05 21:09:53.000000000 +0100
+@@ -66,7 +66,8 @@
+ sample debug callback expecting no client object
+ */
+ void info_callback(const char *msg, void *client_data) {
+- fprintf(stdout, "[INFO] %s", msg);
++ FILE *stream = (FILE*)client_data;
++ fprintf(stream, "[INFO] %s", msg);
+ }
+
+
+@@ -86,21 +87,23 @@
+ // FIXME: Get the comment field out of the texture
+ //
+
+- LLTimer decode_timer;
+-
+ opj_dparameters_t parameters; /* decompression parameters */
++#ifdef _DEBUG
+ opj_event_mgr_t event_mgr; /* event manager */
++#endif
+ opj_image_t *image = NULL;
+
+ opj_dinfo_t* dinfo = NULL; /* handle to a decompressor */
+ opj_cio_t *cio = NULL;
+
+
++#ifdef _DEBUG
+ /* configure the event callbacks (not required) */
+ memset(&event_mgr, 0, sizeof(opj_event_mgr_t));
+ event_mgr.error_handler = error_callback;
+ event_mgr.warning_handler = warning_callback;
+ event_mgr.info_handler = info_callback;
++#endif
+
+ /* set decoding parameters to default values */
+ opj_set_default_decoder_parameters(&parameters);
+@@ -116,7 +119,11 @@
+ dinfo = opj_create_decompress(CODEC_J2K);
+
+ /* catch events using our callbacks and give a local context */
+- opj_set_event_mgr((opj_common_ptr)dinfo, &event_mgr, stderr);
++#ifdef _DEBUG
++ opj_set_event_mgr((opj_common_ptr)dinfo, &event_mgr, stderr);
++#else
++ opj_set_event_mgr((opj_common_ptr)dinfo, NULL, stderr);
++#endif
+
+ /* setup the decoder decoding parameters using user parameters */
+ opj_setup_decoder(dinfo, &parameters);
+@@ -181,10 +188,10 @@
+ {
+ const S32 MAX_COMPS = 5;
+ opj_cparameters_t parameters; /* compression parameters */
++#ifdef _DEBUG
+ opj_event_mgr_t event_mgr; /* event manager */
+
+-
+- /*
++ /*
+ configure the event callbacks (not required)
+ setting of each callback is optional
+ */
+@@ -192,6 +199,7 @@
+ event_mgr.error_handler = error_callback;
+ event_mgr.warning_handler = warning_callback;
+ event_mgr.info_handler = info_callback;
++#endif
+
+ /* set encoding parameters to default values */
+ opj_set_default_encoder_parameters(&parameters);
+@@ -264,7 +272,11 @@
+ opj_cinfo_t* cinfo = opj_create_compress(CODEC_J2K);
+
+ /* catch events using our callbacks and give a local context */
+- opj_set_event_mgr((opj_common_ptr)cinfo, &event_mgr, stderr);
++#ifdef _DEBUG
++ opj_set_event_mgr((opj_common_ptr)cinfo, &event_mgr, stderr);
++#else
++ opj_set_event_mgr((opj_common_ptr)cinfo, NULL, stderr);
++#endif
+
+ /* setup the encoder parameters using the current image and using user parameters */
+ opj_setup_encoder(cinfo, &parameters, image);
+@@ -309,18 +321,22 @@
+ base.updateRawDiscardLevel();
+
+ opj_dparameters_t parameters; /* decompression parameters */
++#ifdef _DEBUG
+ opj_event_mgr_t event_mgr; /* event manager */
++#endif
+ opj_image_t *image = NULL;
+
+ opj_dinfo_t* dinfo = NULL; /* handle to a decompressor */
+ opj_cio_t *cio = NULL;
+
+
++#ifdef _DEBUG
+ /* configure the event callbacks (not required) */
+ memset(&event_mgr, 0, sizeof(opj_event_mgr_t));
+ event_mgr.error_handler = error_callback;
+ event_mgr.warning_handler = warning_callback;
+ event_mgr.info_handler = info_callback;
++#endif
+
+ /* set decoding parameters to default values */
+ opj_set_default_decoder_parameters(&parameters);
+@@ -336,7 +352,11 @@
+ dinfo = opj_create_decompress(CODEC_J2K);
+
+ /* catch events using our callbacks and give a local context */
+- opj_set_event_mgr((opj_common_ptr)dinfo, &event_mgr, stderr);
++#ifdef _DEBUG
++ opj_set_event_mgr((opj_common_ptr)dinfo, &event_mgr, stderr);
++#else
++ opj_set_event_mgr((opj_common_ptr)dinfo, NULL, stderr);
++#endif
+
+ /* setup the decoder decoding parameters using user parameters */
+ opj_setup_decoder(dinfo, &parameters);
diff --git a/games-simulation/secondlife/files/secondlife-1.13.3.59315-no_fmod.patch b/games-simulation/secondlife/files/secondlife-1.13.3.59315-no_fmod.patch
new file mode 100644
index 0000000..fdcb331
--- /dev/null
+++ b/games-simulation/secondlife/files/secondlife-1.13.3.59315-no_fmod.patch
@@ -0,0 +1,21 @@
+diff -Naur linden.orig/indra/SConstruct linden/indra/SConstruct
+--- linden.orig/indra/SConstruct 2007-02-09 15:20:12.000000000 +0900
++++ linden/indra/SConstruct 2007-02-10 17:06:14.000000000 +0900
+@@ -180,7 +180,7 @@
+ # Linux-only flags
+ flags += '-DLL_LINUX=1 '
+ if build_target == 'client':
+- flags += '-DAPPID=secondlife -DLL_SDL=1 -DLL_X11=1 '
++ flags += '-DAPPID=secondlife -DLL_SDL=1 -DLL_FMOD=0 -DLL_X11=1 '
+ flags += '-DLL_GTK=1 '
+ client_external_libs += [ 'gtk-x11-2.0', 'elfio' ]
+ include_dirs += [ '../libraries/' + system_str + '/include/gtk-2.0' ]
+@@ -393,7 +393,7 @@
+ ##################
+ output_bin = 'newview/secondlife-' + arch + '-bin'
+
+- external_libs = client_external_libs + common_external_libs + [ 'freetype', 'jpeg', 'SDL', 'GL', 'GLU', 'ogg', 'vorbisenc', 'vorbisfile', 'vorbis', 'fmod-3.75', 'db-4.2', 'openjpeg' ]
++ external_libs = client_external_libs + common_external_libs + [ 'freetype', 'jpeg', 'SDL', 'GL', 'GLU', 'ogg', 'vorbisenc', 'vorbisfile', 'vorbis', 'db-4.2', 'openjpeg' ]
+ external_libs.remove('cares')
+
+ internal_libs = [ 'lscript', 'llwindow', 'llrender', 'llprimitive',
diff --git a/games-simulation/secondlife/files/secondlife-1.13.3.59558-gentoo.patch b/games-simulation/secondlife/files/secondlife-1.13.3.59558-gentoo.patch
new file mode 100644
index 0000000..352fe1e
--- /dev/null
+++ b/games-simulation/secondlife/files/secondlife-1.13.3.59558-gentoo.patch
@@ -0,0 +1,211 @@
+diff -Naur linden.orig/indra/SConstruct linden/indra/SConstruct
+--- linden.orig/indra/SConstruct 2007-03-22 15:34:54.000000000 +0900
++++ linden/indra/SConstruct 2007-03-22 20:46:41.000000000 +0900
+@@ -192,6 +192,12 @@
+ include_dirs += [ '../libraries/' + system_str + '/include/atk-1.0' ]
+ include_dirs += [ '../libraries/' + system_str + '/include/ELFIO' ]
+ include_dirs += [ '../libraries/' + system_str + '/include/llfreetype2' ]
++ pipe = os.popen('pkg-config gtk+-2.0 --cflags')
++ flags += pipe.read().rstrip('\n') + ' '
++ pipe.close()
++ pipe = os.popen('freetype-config --cflags')
++ flags += pipe.read().rstrip('\n') + ' '
++ pipe.close()
+
+ # llmozlib stuff
+ if enable_mozlib == 'yes':
+@@ -207,7 +213,7 @@
+ ### Build type-specific flags ###
+
+ debug_opts = flags + '-fno-inline -O0 -D_DEBUG -DLL_DEBUG=1 '
+- release_opts = flags + '-O2 -DNDEBUG -DLL_RELEASE=1 '
++ release_opts = flags + '-DNDEBUG -DLL_RELEASE=1 '
+ releasenoopt_opts = flags + '-O0 -DNDEBUG -DLL_RELEASE=1 '
+ releasefordownload_opts = flags + '-O2 -DNDEBUG -DLL_RELEASE=1 -DLL_RELEASE_FOR_DOWNLOAD=1 '
+
+diff -Naur linden.orig/indra/llcommon/llsdserialize_xml.cpp linden/indra/llcommon/llsdserialize_xml.cpp
+--- linden.orig/indra/llcommon/llsdserialize_xml.cpp 2007-03-22 15:34:56.000000000 +0900
++++ linden/indra/llcommon/llsdserialize_xml.cpp 2007-03-22 19:13:51.000000000 +0900
+@@ -35,7 +35,7 @@
+
+ extern "C"
+ {
+-#include "expat/expat.h"
++#include "expat.h"
+ }
+
+ /**
+diff -Naur linden.orig/indra/llcommon/llsys.cpp linden/indra/llcommon/llsys.cpp
+--- linden.orig/indra/llcommon/llsys.cpp 2007-03-22 15:34:56.000000000 +0900
++++ linden/indra/llcommon/llsys.cpp 2007-03-22 19:13:51.000000000 +0900
+@@ -30,7 +30,7 @@
+ #include "llsys.h"
+
+ #include <iostream>
+-#include <zlib/zlib.h>
++#include <zlib.h>
+ #include "processor.h"
+
+ #if LL_WINDOWS
+diff -Naur linden.orig/indra/llimage/llimagejpeg.h linden/indra/llimage/llimagejpeg.h
+--- linden.orig/indra/llimage/llimagejpeg.h 2007-03-22 15:34:56.000000000 +0900
++++ linden/indra/llimage/llimagejpeg.h 2007-03-22 19:13:51.000000000 +0900
+@@ -33,9 +33,8 @@
+ #include "llimage.h"
+
+ extern "C" {
+-#include "jpeglib/jinclude.h"
+-#include "jpeglib/jpeglib.h"
+-#include "jpeglib/jerror.h"
++#include "jpeglib.h"
++#include "jerror.h"
+ }
+
+ class LLImageJPEG : public LLImageFormatted
+diff -Naur linden.orig/indra/llimagej2coj/llimagej2coj.cpp linden/indra/llimagej2coj/llimagej2coj.cpp
+--- linden.orig/indra/llimagej2coj/llimagej2coj.cpp 2007-03-22 15:34:56.000000000 +0900
++++ linden/indra/llimagej2coj/llimagej2coj.cpp 2007-03-22 19:13:51.000000000 +0900
+@@ -30,7 +30,7 @@
+
+ // this is defined so that we get static linking.
+ #define OPJ_STATIC
+-#include "openjpeg/openjpeg.h"
++#include "openjpeg.h"
+
+ #include "lltimer.h"
+ #include "llmemory.h"
+diff -Naur linden.orig/indra/llmessage/llfiltersd2xmlrpc.cpp linden/indra/llmessage/llfiltersd2xmlrpc.cpp
+--- linden.orig/indra/llmessage/llfiltersd2xmlrpc.cpp 2007-03-22 15:34:58.000000000 +0900
++++ linden/indra/llmessage/llfiltersd2xmlrpc.cpp 2007-03-22 19:13:51.000000000 +0900
+@@ -76,7 +76,7 @@
+
+ #include <sstream>
+ #include <iterator>
+-#include <xmlrpc-epi/xmlrpc.h>
++#include <xmlrpc.h>
+ #include "apr-1/apr_base64.h"
+
+ #include "llbuffer.h"
+diff -Naur linden.orig/indra/llmessage/llhttpassetstorage.cpp linden/indra/llmessage/llhttpassetstorage.cpp
+--- linden.orig/indra/llmessage/llhttpassetstorage.cpp 2007-03-22 15:34:58.000000000 +0900
++++ linden/indra/llmessage/llhttpassetstorage.cpp 2007-03-22 19:13:51.000000000 +0900
+@@ -36,7 +36,7 @@
+ #include "llvfile.h"
+ #include "llvfs.h"
+
+-#include "zlib/zlib.h"
++#include "zlib.h"
+
+ const U32 MAX_RUNNING_REQUESTS = 4;
+ const F32 MAX_PROCESSING_TIME = 0.005f;
+diff -Naur linden.orig/indra/llrender/llfont.cpp linden/indra/llrender/llfont.cpp
+--- linden.orig/indra/llrender/llfont.cpp 2007-03-22 15:34:58.000000000 +0900
++++ linden/indra/llrender/llfont.cpp 2007-03-22 19:13:51.000000000 +0900
+@@ -30,11 +30,11 @@
+ #include "llfont.h"
+
+ // Freetype stuff
+-#if LL_LINUX // I had to do some work to avoid the system-installed FreeType headers... --ryan.
+-#include "llfreetype2/freetype/ft2build.h"
+-#else
++// #if LL_LINUX // I had to do some work to avoid the system-installed FreeType headers... --ryan.
++// #include "llfreetype2/freetype/ft2build.h"
++// #else
+ #include <ft2build.h>
+-#endif
++// #endif
+
+ // For some reason, this won't work if it's not wrapped in the ifdef
+ #ifdef FT_FREETYPE_H
+diff -Naur linden.orig/indra/llxml/llxmlnode.h linden/indra/llxml/llxmlnode.h
+--- linden.orig/indra/llxml/llxmlnode.h 2007-03-22 15:35:00.000000000 +0900
++++ linden/indra/llxml/llxmlnode.h 2007-03-22 19:13:51.000000000 +0900
+@@ -29,7 +29,7 @@
+ #define LL_LLXMLNODE_H
+
+ #define XML_STATIC
+-#include "expat/expat.h"
++#include "expat.h"
+ #include <map>
+
+ #include "indra_constants.h"
+diff -Naur linden.orig/indra/llxml/llxmlparser.h linden/indra/llxml/llxmlparser.h
+--- linden.orig/indra/llxml/llxmlparser.h 2007-03-22 15:35:00.000000000 +0900
++++ linden/indra/llxml/llxmlparser.h 2007-03-22 19:13:51.000000000 +0900
+@@ -29,7 +29,7 @@
+ #define LL_LLXMLPARSER_H
+
+ #define XML_STATIC
+-#include "expat/expat.h"
++#include "expat.h"
+
+ class LLXmlParser
+ {
+diff -Naur linden.orig/indra/newview/llfloaterpostcard.cpp linden/indra/newview/llfloaterpostcard.cpp
+--- linden.orig/indra/newview/llfloaterpostcard.cpp 2007-03-22 15:35:12.000000000 +0900
++++ linden/indra/newview/llfloaterpostcard.cpp 2007-03-22 19:13:51.000000000 +0900
+@@ -237,7 +237,7 @@
+ {
+ }
+ // *TODO define custom uploadFailed here so it's not such a generic message
+- void LLSendPostcardResponder::uploadComplete(const LLSD& content)
++ void uploadComplete(const LLSD& content)
+ {
+ // we don't care about what the server returns from this post, just clean up the UI
+ LLUploadDialog::modalUploadFinished();
+diff -Naur linden.orig/indra/newview/lluserauth.cpp linden/indra/newview/lluserauth.cpp
+--- linden.orig/indra/newview/lluserauth.cpp 2007-03-22 15:35:09.000000000 +0900
++++ linden/indra/newview/lluserauth.cpp 2007-03-22 19:13:51.000000000 +0900
+@@ -40,7 +40,7 @@
+
+ // NOTE: MUST include these after otherincludes since queue gets redefined!?!!
+ #include <curl/curl.h>
+-#include <xmlrpc-epi/xmlrpc.h>
++#include <xmlrpc.h>
+
+
+
+diff -Naur linden.orig/indra/newview/llviewerobjectlist.cpp linden/indra/newview/llviewerobjectlist.cpp
+--- linden.orig/indra/newview/llviewerobjectlist.cpp 2007-03-22 15:35:11.000000000 +0900
++++ linden/indra/newview/llviewerobjectlist.cpp 2007-03-22 19:13:51.000000000 +0900
+@@ -60,7 +60,7 @@
+ #include "u64.h"
+ #include "llviewerimagelist.h"
+ #include "lldatapacker.h"
+-#include <zlib/zlib.h>
++#include <zlib.h>
+ #include "object_flags.h"
+
+ extern BOOL gVelocityInterpolate;
+diff -Naur linden.orig/indra/newview/llwebbrowserctrl.h linden/indra/newview/llwebbrowserctrl.h
+--- linden.orig/indra/newview/llwebbrowserctrl.h 2007-03-22 15:35:05.000000000 +0900
++++ linden/indra/newview/llwebbrowserctrl.h 2007-03-22 19:28:32.000000000 +0900
+@@ -91,6 +91,7 @@
+ #include "lldynamictexture.h"
+ #include "llmozlib.h"
+
++class LLUICtrlFactory;
+ class LLViewBorder;
+ class LLWebBrowserTexture;
+
+@@ -239,7 +240,7 @@
+ class LLWebBrowserTexture : public LLDynamicTexture
+ {
+ public:
+- LLWebBrowserTexture::LLWebBrowserTexture( S32 width, S32 height, LLWebBrowserCtrl* browserCtrl, int browserWindow );
++ LLWebBrowserTexture( S32 width, S32 height, LLWebBrowserCtrl* browserCtrl, int browserWindow );
+ virtual ~LLWebBrowserTexture();
+
+ virtual void preRender( BOOL clear_depth = TRUE ) {};
+diff -Naur linden.orig/indra/newview/llxmlrpctransaction.cpp linden/indra/newview/llxmlrpctransaction.cpp
+--- linden.orig/indra/newview/llxmlrpctransaction.cpp 2007-03-22 15:35:10.000000000 +0900
++++ linden/indra/newview/llxmlrpctransaction.cpp 2007-03-22 19:13:51.000000000 +0900
+@@ -33,7 +33,7 @@
+
+ // Have to include these last to avoid queue redefinition!
+ #include <curl/curl.h>
+-#include <xmlrpc-epi/xmlrpc.h>
++#include <xmlrpc.h>
+
+ #include "viewer.h"
+
diff --git a/games-simulation/secondlife/secondlife-1.13.3.59558.ebuild b/games-simulation/secondlife/secondlife-1.13.3.59558.ebuild
new file mode 100644
index 0000000..b04af45
--- /dev/null
+++ b/games-simulation/secondlife/secondlife-1.13.3.59558.ebuild
@@ -0,0 +1,131 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit games toolchain-funcs
+
+DESCRIPTION="A 3D MMORPG virtual world entirely built and owned by its residents"
+HOMEPAGE="http://secondlife.com/"
+#SRC_URI="http://secondlife.com/developers/opensource/downloads/2007/03/slviewer-src-${PV}.tar.gz
+# http://secondlife.com/developers/opensource/downloads/2007/03/slviewer-artwork-${PV}.zip"
+SRC_URI="http://secondlife.com/developers/opensource/downloads/2007/03/slviewer-src-FL-${PV}.tar.gz
+ http://secondlife.com/developers/opensource/downloads/2007/03/slviewer-artwork-FL-${PV}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+#IUSE="fmod xulrunner"
+IUSE="fmod"
+RESTRICT="mirror"
+
+RDEPEND=">=x11-libs/gtk+-2
+ =dev-libs/apr-1*
+ =dev-libs/apr-util-1*
+ dev-libs/boost
+ >=net-misc/curl-7.15.4
+ dev-libs/openssl
+ media-libs/freetype
+ media-libs/jpeg
+ media-libs/libsdl
+ media-libs/mesa
+ media-libs/libogg
+ media-libs/libvorbis
+ fmod? ( x86? ( =media-libs/fmod-3.75* ) )
+ =sys-libs/db-4.2*
+ dev-libs/expat
+ sys-libs/zlib
+ >=dev-libs/xmlrpc-epi-0.51
+ dev-libs/ELFIO
+ >=media-libs/openjpeg-1.1.1
+ media-fonts/kochi-substitute"
+# xulrunner? ( net-libs/xulrunner )
+
+DEPEND="${RDEPEND}
+ dev-util/scons
+ dev-util/pkgconfig
+ sys-devel/flex
+ sys-devel/bison"
+
+S="${WORKDIR}/linden"
+
+dir="${GAMES_DATADIR}/${PN}"
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"/indra
+
+ if ! use fmod || [ "${ARCH}" != "x86" ] ; then
+ epatch "${FILESDIR}"/${PN}-1.13.3.59315-no_fmod.patch
+ fi
+
+ # VWR-100
+ epatch "${FILESDIR}"/${PN}-1.13.3.2-llimagej2coj_debug.patch
+
+ epatch "${FILESDIR}"/opensecondlife-svn41.patch
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+
+ sed -i -e "s/gcc_bin = .*$/gcc_bin = '$(tc-getCXX)'/" SConstruct || die
+
+ # "${S}"/indra/newview/viewer_manifest.py
+ # touch newview/gridargs.dat
+ sed -i -e 's|\(http://secondlife\.com/app/login/\)|\1firstlook/|' \
+ newview/skins/xui/en-us/panel_login.xml || die
+ echo -n '-settings settings_firstlook.xml' > newview/gridargs.dat
+}
+
+src_compile() {
+ local mozlib
+
+ cd "${S}"/indra
+
+ # if use xulrunner; then
+ # mozlib="yes"
+ #else
+ mozlib="no"
+ #fi
+
+ CLIENT_CPPFLAGS="${CXXFLAGS}" TEMP_BUILD_DIR="/" \
+ scons BUILD=release BTARGET=client DISTCC=no GRID=firstlook MOZLIB=${mozlib} || die
+}
+
+src_install() {
+ cd "${S}"/indra/newview/
+
+ insinto "${dir}"
+ #doins featuretable.txt featuretable_mac.txt gpu_table.txt gridargs.dat || die
+ doins featuretable.txt gpu_table.txt .txt gridargs.dat || die
+ doins -r app_settings character fonts help skins res-sdl || die
+
+ doins lsl_guide.html releasenotes.txt || die
+ newins licenses-linux.txt licenses.txt || die
+ newins linux_tools/client-readme.txt README-linux.txt || die
+ newins res/ll_icon.ico secondlife.ico || die
+
+ insinto "${dir}"/app_settings/
+ doins "${S}"/scripts/messages/message_template.msg || die
+
+ exeinto "${dir}"
+ doexe linux_tools/launch_url.sh || die
+ newexe linux_tools/wrapper.sh secondlife || die
+ newexe ../linux_crash_logger/linux-crash-logger-*-bin* linux-crash-logger.bin || die
+
+ exeinto "${dir}"/bin/
+ newexe secondlife-*-bin do-not-directly-run-secondlife-bin || die
+
+ keepdir "${dir}"/lib
+
+ dosym /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf /usr/share/games/secondlife/unicode.ttf
+
+ games_make_wrapper secondlife ./secondlife "${dir}"
+ newicon res/ll_icon.ico secondlife.ico || die
+ make_desktop_entry secondlife "Second Life" secondlife.ico
+
+ dodoc releasenotes.txt
+ newdoc licenses-linux.txt licenses.txt
+ newdoc linux_tools/client-readme.txt README-linux.txt
+
+ dohtml lsl_guide.html
+
+ prepgamesdirs
+}