summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <uberlord@gentoo.org>2007-05-13 20:32:16 +0000
committerRoy Marples <uberlord@gentoo.org>2007-05-13 20:32:16 +0000
commit4076239ea94dba04719de6d31562e65fb1e46aed (patch)
tree727e1fd3489577486736169dcfea1e2334244247 /games-rpg
parentWe only work if cal3d isn't built with 16bit-indicies, #177858 thanks to (diff)
downloadhistorical-4076239ea94dba04719de6d31562e65fb1e46aed.tar.gz
historical-4076239ea94dba04719de6d31562e65fb1e46aed.tar.bz2
historical-4076239ea94dba04719de6d31562e65fb1e46aed.zip
Punt old version
Package-Manager: portage-2.1.2.6
Diffstat (limited to 'games-rpg')
-rw-r--r--games-rpg/eternal-lands-data/eternal-lands-data-1.3.2.ebuild64
-rw-r--r--games-rpg/eternal-lands-data/files/digest-eternal-lands-data-1.3.26
-rw-r--r--games-rpg/eternal-lands/eternal-lands-1.3.2-r1.ebuild145
-rw-r--r--games-rpg/eternal-lands/files/digest-eternal-lands-1.3.2-r16
-rw-r--r--games-rpg/eternal-lands/files/eternal-lands-1.3.0-openal.patch197
5 files changed, 0 insertions, 418 deletions
diff --git a/games-rpg/eternal-lands-data/eternal-lands-data-1.3.2.ebuild b/games-rpg/eternal-lands-data/eternal-lands-data-1.3.2.ebuild
deleted file mode 100644
index a52883d89b5e..000000000000
--- a/games-rpg/eternal-lands-data/eternal-lands-data-1.3.2.ebuild
+++ /dev/null
@@ -1,64 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/eternal-lands-data/eternal-lands-data-1.3.2.ebuild,v 1.4 2007/02/08 09:14:34 nyhm Exp $
-
-inherit games
-
-MUSIC_DATE="20060803"
-
-MY_PV="${PV//_/}"
-MY_PV="${MY_PV//./}"
-MY_PN="${PN%*-data}"
-DESCRIPTION="An online MMORPG written in C and SDL"
-HOMEPAGE="http://www.eternal-lands.com"
-SRC_URI="http://www.other-life.com/el/el_${MY_PV}_linux_full.zip
- music? ( mirror://gentoo/el_music_full-${MUSIC_DATE}.zip )"
-# WARNING: The music file is held at
-# http://www.eternal-lands.com/page/music.php
-# We only mirror it so that it is versioned by the date we mirrored it
-# AND prefixed with el_ so as not cause any conflicts. Maybe oneday they will
-# version their music, maybe not.
-
-LICENSE="eternal_lands"
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~x86-fbsd"
-IUSE="music"
-
-DEPEND="app-arch/unzip"
-
-src_unpack() {
- cd "${WORKDIR}"
- unpack ${A}
-
- # Remove CVS entries
- find . -type d -name CVS -exec rm -rf {} \; 2>/dev/null
-
- # Move our music files to the correct directory
- use music && mv *.ogg *.pll music
-}
-
-src_install() {
- cd "${WORKDIR}"
-
- # These are provided by eternal-lands ebuild
- rm license.txt
-
- insopts -m 0660
- insinto "${GAMES_DATADIR}/${MY_PN}"
- doins -r 2dobjects 3dobjects actor_defs animations maps meshes music \
- particles skeletons sound textures tiles languages \
- *.lst 3dobjects.txt *.xml \
- || die "doins failed"
-
- prepgamesdirs
-}
-
-pkg_postinst() {
- games_pkg_postinst
- # Ensure that the files are writable by the game group for auto
- # updating.
- chmod -R g+rw "${ROOT}/${GAMES_DATADIR}/${MY_PN}"
-
- # Make sure new files stay in games group
- find "${ROOT}/${GAMES_DATADIR}/${MY_PN}" -type d -exec chmod g+sx {} \;
-}
diff --git a/games-rpg/eternal-lands-data/files/digest-eternal-lands-data-1.3.2 b/games-rpg/eternal-lands-data/files/digest-eternal-lands-data-1.3.2
deleted file mode 100644
index e37fb9480403..000000000000
--- a/games-rpg/eternal-lands-data/files/digest-eternal-lands-data-1.3.2
+++ /dev/null
@@ -1,6 +0,0 @@
-MD5 b51cc823c6ad68c061892712ff032116 el_132_linux_full.zip 41850856
-RMD160 939a4df7b9a1afcb32ebfd28da374eaa64318372 el_132_linux_full.zip 41850856
-SHA256 06eea5d27b0bc47243de4e760f6a5dcdbc3f991cc84f6452f8709065ddf53d36 el_132_linux_full.zip 41850856
-MD5 95220e0df0be0eb4f2b9646cc5d6b7e5 el_music_full-20060803.zip 65511882
-RMD160 63955f223a8472c9956a5b6912dec7db924f32ee el_music_full-20060803.zip 65511882
-SHA256 1ea4de25081034ac684aaebf127ab6ca8524ba5367532863d84d63837dd631ec el_music_full-20060803.zip 65511882
diff --git a/games-rpg/eternal-lands/eternal-lands-1.3.2-r1.ebuild b/games-rpg/eternal-lands/eternal-lands-1.3.2-r1.ebuild
deleted file mode 100644
index 08a367cd1b96..000000000000
--- a/games-rpg/eternal-lands/eternal-lands-1.3.2-r1.ebuild
+++ /dev/null
@@ -1,145 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/eternal-lands/eternal-lands-1.3.2-r1.ebuild,v 1.8 2007/03/12 17:24:32 genone Exp $
-
-inherit eutils flag-o-matic games
-
-MY_PV="${PV//_/}"
-MY_PV="${MY_PV//./}"
-S="${WORKDIR}/elc"
-DESCRIPTION="An online MMORPG written in C and SDL"
-HOMEPAGE="http://www.eternal-lands.com"
-SRC_URI="mirror://gentoo/elc_${MY_PV}.tar.bz2
- mirror://gentoo/eternal-lands.png"
-
-# NOTE: Sometimes you'll have to roll your own elc tarball from their CVS
-# tree as they don't always release one.
-# If they do then use this in SRC_URI instead
-# ftp://ftp.berlios.de/pub/elc/elc_${MY_PV}.tgz
-
-LICENSE="eternal_lands"
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~x86-fbsd"
-IUSE="debug doc kernel_linux"
-
-RDEPEND="x11-libs/libX11
- x11-libs/libXau
- x11-libs/libXdmcp
- x11-libs/libXext
- virtual/opengl
- >=media-libs/libsdl-1.2.5
- >=media-libs/sdl-net-1.2.5
- media-libs/openal
- media-libs/freealut
- media-libs/libvorbis
- >=dev-libs/libxml2-2.6.7
- media-libs/cal3d
- !=media-libs/cal3d-0.11.0_pre20050823
- >=media-libs/libpng-1.2.8
- ~games-rpg/${PN}-data-${PV}"
-
-DEPEND="${RDEPEND}
- app-arch/unzip
- doc? ( >=app-doc/doxygen-1.3.8
- >=media-gfx/graphviz-1.10 )"
-
-src_unpack() {
- OPTIONS="OPTIONS=-DDATA_DIR="\\\\\"${GAMES_DATADIR}/${PN}/\\\\\"""
- S_CLIENT="${WORKDIR}/elc"
- BROWSER="konqueror"
-
- unpack ${A}
- cd "${S}"
-
- # Remove CVS entries
- find . -type d -name CVS -exec rm -rf {} \; 2>/dev/null
-
- # Create updated files with correct perms and allow dir creation
- epatch "${FILESDIR}/${PN}-1.3.0-update-createdir.patch"
-
- # Clean compile with all OpenAL versions
- epatch "${FILESDIR}/${PN}-1.3.0-openal.patch"
-
- # Allow shaders to actually work
- epatch "${FILESDIR}/${P}-shader.patch"
-
- # Build for amd64
- use amd64 && OPTIONS="${OPTIONS} -DX86_64"
-
- # Use these experimental options - I like them :)
- OPTIONS="${OPTIONS} -DCUSTOM_LOOK"
-
- # Requires a patch to use correct dir
- OPTIONS="${OPTIONS} -DUSE_SHADER"
-
- # Add debugging options
- if use debug ; then
- OPTIONS="${OPTIONS} -DMEMORY_DEBUG"
- append-flags -ggdb
- fi
-
- sed \
- -e "s@CFLAGS=\$(PLATFORM) \$(CWARN) -O -ggdb -pipe@CFLAGS=${CFLAGS} @g"\
- -e "s@CXXFLAGS=\$(PLATFORM) \$(CXXWARN) -O -ggdb -pipe@CXXFLAGS=${CXXFLAGS} @g"\
- -e "s@OPTIONS=@${OPTIONS} @g" \
- -e 's/lopenal/lopenal -l alut/' \
- Makefile.linux > Makefile \
- || die "sed failed"
- sed -i \
- -e 's/#browser/browser/g' \
- -e "s/browser = mozilla/#browser = ${BROWSER}/g" \
- -e "s@#data_dir = /usr/local/games/el/@#data_dir = ${GAMES_DATADIR}/${PN}/@g" \
- el.ini || die "sed failed"
-
- # Framebuffer support is way buggy - remove it
- sed -i -e '/OPTIONS=/ s/-DUSE_FRAMEBUFFER//' Makefile || die "sed failed"
-
- # Support BSD in the Linux makefile - it's easier
- use kernel_linux || sed -i -e 's/^CFLAGS=.*/& -DBSD/' Makefile || die "sed failed"
-
- # Gah
- sed -i -e 's/CXX=g++/CXX=gcc/' Makefile || die "sed failed"
-
- # Finally, update the server
- sed -i -e '/#server_address =/ s/.*/#server_address = game.eternal-lands.com/' \
- el.ini || die "sed failed"
-}
-
-src_compile() {
- emake || die "make failed"
- if use doc; then
- emake docs || die "Failed to create documentation, try with USE=-doc"
- mv ./docs/html/ ../client || die "Failed to move documentation directory"
- fi
-}
-
-src_install() {
- newgamesbin el.x86.linux.bin el || die "newgamesbin failed"
- doicon "${DISTDIR}/eternal-lands.png"
- make_desktop_entry el "Eternal Lands"
-
- insopts -m 0660
- insinto "${GAMES_DATADIR}/${PN}"
- doins -r *.ini *.txt commands.lst shader || die "doins failed"
-
- if use doc ; then
- dohtml -r client/*
- fi
-
- prepgamesdirs
-}
-
-pkg_postinst() {
- games_pkg_postinst
- elog "Auto Update is now enabled in Eternal Lands"
- elog "If an update occurs then the client will suddenly exit"
- elog "Updates only happen when the game first loads"
- elog "Please don't report this behaviour as a bug"
-
- # Ensure that the files are writable by the game group for auto
- # updating.
- chmod -R g+rw "${ROOT}/${GAMES_DATADIR}/${PN}"
-
- # Make sure new files stay in games group
- find "${ROOT}/${GAMES_DATADIR}/${PN}" -type d -exec chmod g+sx {} \;
-}
diff --git a/games-rpg/eternal-lands/files/digest-eternal-lands-1.3.2-r1 b/games-rpg/eternal-lands/files/digest-eternal-lands-1.3.2-r1
deleted file mode 100644
index de4826610abb..000000000000
--- a/games-rpg/eternal-lands/files/digest-eternal-lands-1.3.2-r1
+++ /dev/null
@@ -1,6 +0,0 @@
-MD5 39f027d682186b11382c8b6e5acfd2a0 elc_132.tar.bz2 837127
-RMD160 07ddc2c87054ec80139b76b16502b8308b286c4b elc_132.tar.bz2 837127
-SHA256 10f65992de9fe938ef93e2056dfd8dea9d351b48410fdda1f2bf2913af829982 elc_132.tar.bz2 837127
-MD5 059df8128b11b19a76b54e9907072f00 eternal-lands.png 9955
-RMD160 2f9c8acd96214577cf8b8027f0d20fb1fe7574ff eternal-lands.png 9955
-SHA256 dd7d45cd9948fe7875ebd0bfcd1925d9b34e7606a223faf61d37a6dd2cd433fb eternal-lands.png 9955
diff --git a/games-rpg/eternal-lands/files/eternal-lands-1.3.0-openal.patch b/games-rpg/eternal-lands/files/eternal-lands-1.3.0-openal.patch
deleted file mode 100644
index f23d12b17b83..000000000000
--- a/games-rpg/eternal-lands/files/eternal-lands-1.3.0-openal.patch
+++ /dev/null
@@ -1,197 +0,0 @@
-diff -u -b -B -r1.83 sound.c
---- sound.c 20 Jun 2006 15:05:46 -0000 1.83
-+++ sound.c 24 Jun 2006 14:42:29 -0000
-@@ -308,6 +309,66 @@
- #endif //NO_MUSIC
- }
-
-+int loadWAVfile(char *filename, ALenum *al_format, ALvoid **al_data, ALsizei *al_size, ALuint *al_frequency) {
-+ FILE *fp;
-+
-+ fp = fopen(filename,"rb");
-+ if (fp) {
-+ char id[4];
-+ Uint32 size;
-+ Uint16 format_tag, channels, block_align, bits_per_sample;
-+ Uint32 format_length, sample_rate, avg_bytes_sec, data_size;
-+ fread(id, 1, 4, fp);
-+ if (!strncmp(id, "RIFF",4)) {
-+ fread(&size, 4, 1, fp);
-+ fread(id, 1, 4, fp);
-+ if (!strncmp(id,"WAVE",4)) {
-+ fread(id, 1, 4, fp);
-+ fread(&format_length, 4,1,fp);
-+ fread(&format_tag, 2, 1, fp);
-+ fread(&channels, 2, 1,fp); //1 mono, 2 stereo
-+ channels=SDL_SwapLE16(channels);
-+ fread(&sample_rate, 4, 1, fp); //like 44100, 22050, etc...
-+ sample_rate=SDL_SwapLE32(sample_rate);
-+ fread(&avg_bytes_sec, 4, 1, fp); //unused
-+ fread(&block_align, 2, 1, fp); //unused
-+ fread(&bits_per_sample, 2, 1, fp); //8 bit or 16 bit
-+ bits_per_sample=SDL_SwapLE16(bits_per_sample);
-+ fread(id, 1, 4, fp);
-+ fread(&data_size, 4, 1, fp);
-+ data_size=SDL_SwapLE32(data_size);
-+ *al_data = (ALvoid *) malloc (data_size);
-+ fread(*al_data, 1, data_size, fp);
-+ *al_size = data_size;
-+ *al_frequency = sample_rate;
-+ if(channels == 1) {
-+ if(bits_per_sample == 8)
-+ *al_format = AL_FORMAT_MONO8;
-+ else
-+ *al_format = AL_FORMAT_MONO16;
-+ } else {
-+ if(bits_per_sample == 8)
-+ *al_format = AL_FORMAT_STEREO8;
-+ else
-+ *al_format = AL_FORMAT_STEREO16;
-+ }
-+ return 1;
-+ }
-+ else {
-+ LOG_ERROR("LoadWAVFile(%s): RIFF file but not a wave file\n",filename);
-+ return 0;
-+ }
-+ }
-+ else {
-+ LOG_ERROR("LoadWAVFile(%s): not a RIFF file\n",filename);
-+ return 0;
-+ }
-+ } else {
-+ LOG_ERROR("LoadWAVFile(%s): can't open file\n",filename);
-+ return 0;
-+ }
-+}
-+
- #ifndef NEW_SOUND
- ALuint get_loaded_buffer(int i)
- {
-@@ -315,26 +376,9 @@
- ALsizei size,freq;
- ALenum format;
- ALvoid *data;
-- ALboolean loop;
-- FILE *fin;
-
- if(!alIsBuffer(sound_buffer[i]))
- {
-- // XXX FIXME (Grum): You have got to be kidding me...
-- // alutLoadWAVFile doesn't provide any way to check if loading
-- // a file succeeded. Well, at least, let's check if the file
-- // actually exists...
-- // Maybe use alutLoadWAV? But that doesn't seem to exist on
-- // OS/X...
-- fin = fopen (sound_files[i], "r");
-- if (fin == NULL)
-- {
-- LOG_ERROR(snd_wav_load_error, sound_files[i]);
-- return 0;
-- }
-- // okay, the file exists and is readable, close it
-- fclose (fin);
--
- alGenBuffers(1, sound_buffer+i);
-
- if((error=alGetError()) != AL_NO_ERROR)
-@@ -344,14 +388,13 @@
- have_music=0;
- }
-
--#ifdef OSX
-- // OS X alutLoadWAVFile doesn't have a loop option... Oh well :-)
-- alutLoadWAVFile (sound_files[i], &format, &data, &size, &freq);
--#else
-- alutLoadWAVFile (sound_files[i], &format, &data, &size, &freq, &loop);
--#endif
-+ if(loadWAVfile(sound_files[i], &format, &data, &size, &freq)) {
- alBufferData(sound_buffer[i],format,data,size,freq);
-- alutUnloadWAV(format,data,size,freq);
-+ free(data);
-+ } else {
-+ alDeleteBuffers(1,sound_buffer+i);
-+ return 0;
-+ }
- }
- return sound_buffer[i];
- }
-@@ -372,27 +415,10 @@
- if (!pSample->loaded_status)
- {//this file is not currently loaded
-
-- //try to open the file
--#ifndef OSX
-- alutLoadWAVFile(szPath,&pSample->format,&data,&pSample->size,&pSample->freq,&loop);
--#else
-- alutLoadWAVFile(szPath,&pSample->format,&data,&pSample->size,&pSample->freq);
--#endif
-- if(!data)
-- {//couldn't load the file
-- #ifdef ELC
-- LOG_ERROR("%s: %s",snd_buff_error, "NO SOUND DATA");
-- #else
-- printf("ensure_sample_loaded : alutLoadWAVFile(%s) = %s\n",
-- szPath, "NO SOUND DATA");
-- #endif
-- return 1;
-- }
--
-- //create a buffer
- alGenBuffers(1, pBuffer);
-+
- if((error=alGetError()) != AL_NO_ERROR)
-- {//couldn't generate a buffer
-+ {
- #ifdef ELC
- LOG_ERROR("%s: %s",snd_buff_error, alGetString(error));
- #else
-@@ -401,15 +427,16 @@
- *pBuffer=0;
- return 2;
- }
-- //send this data to the buffer
-+
-+ if(loadWAVFile(szPath,&pSample->format,&data,&pSample->size,&pSample->freq)) {
- alBufferData(*pBuffer,pSample->format,data,pSample->size,pSample->freq);
-- if((error=alGetError()) != AL_NO_ERROR)
-- {
-- #ifdef ELC
-+ //send this data to the buffer
-+ if((error=alGetError()) != AL_NO_ERROR) {
-+#ifdef ELC
- LOG_ERROR("%s: %s",snd_buff_error, alGetString(error));
-- #else
-+#else
- printf("ensure_sample_loaded ['%s',#d]: alBufferData(%s) = %s\n",szPath, index, alGetString(error));
-- #endif
-+#endif
- alDeleteBuffers(1, pBuffer);
- return 3;
- }
-@@ -417,13 +444,21 @@
- alGetBufferi(*pBuffer,AL_BITS,&pSample->bits);
- alGetBufferi(*pBuffer,AL_CHANNELS,&pSample->channels);
- pSample->length = (pSample->size*1000) / ((pSample->bits >> 3)*pSample->channels*pSample->freq);
--
-- //get rid of the temporary data
-- alutUnloadWAV(pSample->format,data,pSample->size,pSample->freq);
-- }
-+ free(data);
-
- pSample->loaded_status = 1;
- return 0;
-+ } else {//couldn't load the file
-+#ifdef ELC
-+ LOG_ERROR("%s: %s",snd_buff_error, "NO SOUND DATA");
-+#else
-+ printf("ensure_sample_loaded : loadWAVFile(%s) = %s\n",
-+ szPath, "NO SOUND DATA");
-+#endif
-+ return 1;
-+ }
-+
-+ }
- }
- #endif //NEW_SOUND
-