diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-12-29 03:48:15 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-12-29 03:48:15 +0000 |
commit | 6dea4ad6b071fedf358922bb597bfba91fba38b2 (patch) | |
tree | 2fd5d0c61b190ae7316370f0d787a40767d496f2 /games-rpg | |
parent | Move to mips stable (~mips -> mips) (diff) | |
download | gentoo-2-6dea4ad6b071fedf358922bb597bfba91fba38b2.tar.gz gentoo-2-6dea4ad6b071fedf358922bb597bfba91fba38b2.tar.bz2 gentoo-2-6dea4ad6b071fedf358922bb597bfba91fba38b2.zip |
initial ebuild #33198
Diffstat (limited to 'games-rpg')
-rw-r--r-- | games-rpg/alteria/ChangeLog | 8 | ||||
-rw-r--r-- | games-rpg/alteria/alteria-1.0.ebuild | 52 | ||||
-rw-r--r-- | games-rpg/alteria/files/1.0-makefile-cflags.patch | 12 | ||||
-rw-r--r-- | games-rpg/alteria/files/1.0-systemdir.patch | 10 | ||||
-rw-r--r-- | games-rpg/alteria/files/digest-alteria-1.0 | 2 |
5 files changed, 84 insertions, 0 deletions
diff --git a/games-rpg/alteria/ChangeLog b/games-rpg/alteria/ChangeLog new file mode 100644 index 000000000000..fa1805eb9c20 --- /dev/null +++ b/games-rpg/alteria/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for games-rpg/alteria +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-rpg/alteria/ChangeLog,v 1.1 2003/12/29 03:48:15 vapier Exp $ + +*alteria-1.0 (28 Dec 2003) + + 28 Dec 2003; Mike Frysinger <vapier@gentoo.org> : + Initial import. Ebuild submitted by me for #33198. diff --git a/games-rpg/alteria/alteria-1.0.ebuild b/games-rpg/alteria/alteria-1.0.ebuild new file mode 100644 index 000000000000..7be347e0f1ee --- /dev/null +++ b/games-rpg/alteria/alteria-1.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-rpg/alteria/alteria-1.0.ebuild,v 1.1 2003/12/29 03:48:15 vapier Exp $ + +inherit games eutils flag-o-matic + +DESCRIPTION="a world that is ruled by a constant struggle between human and orc" +HOMEPAGE="http://www.planetquake.com/cor/omen/" +SRC_URI="alteria-${PV}-x86.run + ${P}.src.tar.gz" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~x86" +RESTRICT="fetch" + +DEPEND="" +#RDEPEND="" + +S=${WORKDIR}/alteria/WinQuake + +pkg_nofetch() { + einfo "Please download ${A} here:" + einfo "http://dl.fileplanet.com/dl/dl.asp?cor/alteria-1.0-x86.run" + einfo "http://icculus.org/~ravage/alteria/alteria-1.0.src.tar.gz" + einfo "Then put the file in ${DISTDIR}" +} + +src_unpack() { + unpack ${P}.src.tar.gz + mkdir data + cd data + unpack_makeself alteria-${PV}-x86.run + tar -jxf data.tar.bz2 -C .. + rm -rf ../data + cd ${S} + epatch ${FILESDIR}/${PV}-makefile-cflags.patch + sed -i "s:GENTOO_CFLAGS:${CFLAGS}:" Makefile + epatch ${FILESDIR}/${PV}-systemdir.patch + sed -i "s:GENTOO_DATADIR:\"${GAMES_DATADIR}/${PN}\":" common.c +} + +src_compile() { + emake build_release || die "compile failed" +} + +src_install() { + newgamesbin release*/bin/alteria.glx alteria + dodir ${GAMES_DATADIR}/${PN}/data1/ + cp ${WORKDIR}/data1/* ${D}/${GAMES_DATADIR}/${PN}/data1/ + prepgamesdirs +} diff --git a/games-rpg/alteria/files/1.0-makefile-cflags.patch b/games-rpg/alteria/files/1.0-makefile-cflags.patch new file mode 100644 index 000000000000..0ca07d369085 --- /dev/null +++ b/games-rpg/alteria/files/1.0-makefile-cflags.patch @@ -0,0 +1,12 @@ +--- Makefile.orig 2003-12-28 22:13:37.572261608 -0500 ++++ Makefile 2003-12-28 22:14:34.557598520 -0500 +@@ -37,8 +37,7 @@ + CC=$(EGCS) + + BASE_CFLAGS=-Dstricmp=strcasecmp +-RELEASE_CFLAGS=$(BASE_CFLAGS) -g -mpentiumpro -O6 -ffast-math -funroll-loops \ +- -fomit-frame-pointer -fexpensive-optimizations ++RELEASE_CFLAGS=$(BASE_CFLAGS) GENTOO_CFLAGS + DEBUG_CFLAGS=$(BASE_CFLAGS) -g + LDFLAGS=-lm + SVGALDFLAGS=-lvga diff --git a/games-rpg/alteria/files/1.0-systemdir.patch b/games-rpg/alteria/files/1.0-systemdir.patch new file mode 100644 index 000000000000..40a3435fe7ef --- /dev/null +++ b/games-rpg/alteria/files/1.0-systemdir.patch @@ -0,0 +1,10 @@ +--- common.c.orig 2003-12-28 22:28:35.908693712 -0500 ++++ common.c 2003-12-28 22:28:24.635407512 -0500 +@@ -1814,6 +1814,7 @@ + } + COM_AddGameFS (userdir); + #endif ++ COM_AddGameFS (GENTOO_DATADIR); + // + // -path <dir or packfile> [<dir or packfile>] ... + // Fully specifies the exact serach path, overriding the generated one diff --git a/games-rpg/alteria/files/digest-alteria-1.0 b/games-rpg/alteria/files/digest-alteria-1.0 new file mode 100644 index 000000000000..c7951dcd5e2e --- /dev/null +++ b/games-rpg/alteria/files/digest-alteria-1.0 @@ -0,0 +1,2 @@ +MD5 c2b233fcf77f0c97ad70203e151f8146 alteria-1.0-x86.run 45355522 +MD5 6d8d8db54900fb9fcd9bcd72577d34c8 alteria-1.0.src.tar.gz 2554026 |