From: Tristan Heaven Date: Sun, 25 Feb 2007 10:15:30 +0000 (+0000) Subject: Initial commit, based on Paul Bredbury's ebuild from bug #110972 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=96e2ea98b5f356eebe70ed50b412e0bb36e9cf74;p=gentoo.git Initial commit, based on Paul Bredbury's ebuild from bug #110972 Package-Manager: portage-2.1.2-r11 --- diff --git a/games-fps/alienarena/ChangeLog b/games-fps/alienarena/ChangeLog new file mode 100644 index 000000000000..3a6fa0fad3ed --- /dev/null +++ b/games-fps/alienarena/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for games-fps/alienarena +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/alienarena/ChangeLog,v 1.1 2007/02/25 10:15:30 nyhm Exp $ + +*alienarena-20070224 (25 Feb 2007) + + 25 Feb 2007; Tristan Heaven + +files/alienarena-20070224-build.patch, + +files/alienarena-20070224-exec-stack.patch, + +files/alienarena-20070224-paths.patch, +metadata.xml, + +alienarena-20070224.ebuild: + Initial commit, based on Paul Bredbury's ebuild from bug #110972 + diff --git a/games-fps/alienarena/Manifest b/games-fps/alienarena/Manifest new file mode 100644 index 000000000000..185fe12aeb41 --- /dev/null +++ b/games-fps/alienarena/Manifest @@ -0,0 +1,38 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX alienarena-20070224-build.patch 5240 RMD160 a5afb9454badb5ca01cbafcd3f34731de665bc77 SHA1 377f8a71e23f6ce201aa3a7ea142dbcf1d2863c5 SHA256 75de5ffe658da13893ba6d0a2987fb044b08518398584a11f31071ce6d2e9cc6 +MD5 1d4f8e12e2dde1e6667f7dcd8ce6ffae files/alienarena-20070224-build.patch 5240 +RMD160 a5afb9454badb5ca01cbafcd3f34731de665bc77 files/alienarena-20070224-build.patch 5240 +SHA256 75de5ffe658da13893ba6d0a2987fb044b08518398584a11f31071ce6d2e9cc6 files/alienarena-20070224-build.patch 5240 +AUX alienarena-20070224-exec-stack.patch 166 RMD160 0aba3db758691cb0e9f455a325576f25b88f367f SHA1 3898dc498731a3f6e56bb64aec61b76da9187e1f SHA256 7c94467bc8f0fca8db4390437f412331e31312d03f37bdb557329d2c095cce79 +MD5 c338665887152675dbe483bf0fa87966 files/alienarena-20070224-exec-stack.patch 166 +RMD160 0aba3db758691cb0e9f455a325576f25b88f367f files/alienarena-20070224-exec-stack.patch 166 +SHA256 7c94467bc8f0fca8db4390437f412331e31312d03f37bdb557329d2c095cce79 files/alienarena-20070224-exec-stack.patch 166 +AUX alienarena-20070224-paths.patch 1038 RMD160 f3714e668947ad175983507d4a352562b0cf203f SHA1 4c8282ff2bdc8dbe371780219208b69d6a1f0d8e SHA256 46a32ed8780530e7c3345207e014f799b5e8331e8d98a56806db392a3218d137 +MD5 3051a6536b7d190d895e1628c4364415 files/alienarena-20070224-paths.patch 1038 +RMD160 f3714e668947ad175983507d4a352562b0cf203f files/alienarena-20070224-paths.patch 1038 +SHA256 46a32ed8780530e7c3345207e014f799b5e8331e8d98a56806db392a3218d137 files/alienarena-20070224-paths.patch 1038 +DIST alienarena2007-linux20070224-x86.zip 195661108 RMD160 8ca8ac8f652d6b75d353ca9af7fff80d4e3fdd66 SHA1 7e9bb1069828091e077b6986e999d41765632847 SHA256 62f4a33b2b3975174d7893fcc95cfde4fadad02ab67da90b74827e5b854918d4 +EBUILD alienarena-20070224.ebuild 2588 RMD160 0091d63e47dedb60f1653d079662cb9499ea8ff2 SHA1 395d879b3deb55b872a6f380908332ecef513e74 SHA256 ad476fa548a84e9bc82bb47166f3172cca756cc716108122171eefa85c8ccc91 +MD5 ab48a366451b8a120f0252686308e2b6 alienarena-20070224.ebuild 2588 +RMD160 0091d63e47dedb60f1653d079662cb9499ea8ff2 alienarena-20070224.ebuild 2588 +SHA256 ad476fa548a84e9bc82bb47166f3172cca756cc716108122171eefa85c8ccc91 alienarena-20070224.ebuild 2588 +MISC ChangeLog 540 RMD160 693e8a99ada7791b9ad8684dd2609a4831cab939 SHA1 f629474d4d3ec68e6f6dd299d10470c8f84ceef7 SHA256 dfa746c3def8ddbe208c7c272a902a6e4458a61d55a594ebac5165b116bdd657 +MD5 ad95116ed496fd220b13a410f1407eb6 ChangeLog 540 +RMD160 693e8a99ada7791b9ad8684dd2609a4831cab939 ChangeLog 540 +SHA256 dfa746c3def8ddbe208c7c272a902a6e4458a61d55a594ebac5165b116bdd657 ChangeLog 540 +MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 +MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158 +RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea metadata.xml 158 +SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 metadata.xml 158 +MD5 bbbb88d8d843d358e0164ba74ad0e37a files/digest-alienarena-20070224 298 +RMD160 abf0835b2842366fa468974ec26eb3abc00b4f74 files/digest-alienarena-20070224 298 +SHA256 c3bfc994214b80376544c9265619bde383a537af3e6727fa635a1c5b8327c73a files/digest-alienarena-20070224 298 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.2 (GNU/Linux) + +iD8DBQFF4WHcdz7hIScOURERAsGJAJ9fZFqKTfe0LnATFKitp6yy76UnCwCgrkY1 +XYpfHERvrE4nfUsX5G9IpZs= +=3+wh +-----END PGP SIGNATURE----- diff --git a/games-fps/alienarena/alienarena-20070224.ebuild b/games-fps/alienarena/alienarena-20070224.ebuild new file mode 100644 index 000000000000..21d9eee92931 --- /dev/null +++ b/games-fps/alienarena/alienarena-20070224.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/alienarena/alienarena-20070224.ebuild,v 1.1 2007/02/25 10:15:30 nyhm Exp $ + +inherit eutils toolchain-funcs games + +MY_PN=${PN}${PV:0:4} +DESCRIPTION="Fast paced multiplayer deathmatch game" +HOMEPAGE="http://red.planetarena.org/" +SRC_URI="http://cor.planetquake.gamespy.com/codered/files/${MY_PN}-linux${PV}-x86.zip + ftp://ftp.planetmirror.com/pub/gamershell/demo/${MY_PN}-linux${PV}-x86.zip + ftp://ftp.planetmirror.com/pub/worthplaying/${MY_PN}-linux${PV}-x86.zip" + +LICENSE="GPL-2 free-noncomm" +SLOT="0" +KEYWORDS="~x86" +IUSE="dedicated opengl sdl" + +UIRDEPEND="media-libs/jpeg + virtual/glu + virtual/opengl + x11-libs/libXxf86dga + x11-libs/libXxf86vm" +UIDEPEND="x11-proto/xf86dgaproto + x11-proto/xf86vidmodeproto + x11-proto/xproto" +RDEPEND="opengl? ( ${UIRDEPEND} ) + sdl? ( >=media-libs/libsdl-1.2.8-r1 ${UIRDEPEND} ) + !opengl? ( !dedicated? ( !sdl? ( ${UIRDEPEND} ) ) )" +DEPEND="${RDEPEND} + app-arch/unzip + opengl? ( ${UIDEPEND} ) + sdl? ( >=media-libs/libsdl-1.2.8-r1 ${UIDEPEND} ) + !opengl? ( !dedicated? ( !sdl? ( ${UIDEPEND} ) ) )" + +S=${WORKDIR}/${MY_PN}/source/linux + +src_unpack() { + unpack ${A} + cd ${MY_PN} + rm -f */*.so + epatch \ + "${FILESDIR}"/${P}-build.patch \ + "${FILESDIR}"/${P}-paths.patch \ + "${FILESDIR}"/${P}-exec-stack.patch +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + GENTOO_LIBDIR="${GAMES_LIBDIR}"/${PN} \ + GENTOO_DATADIR="${GAMES_DATADIR}"/${PN} \ + $(use sdl && echo SDLSOUND=1) \ + $(use opengl || use sdl && echo BUILD_ARENA=1) \ + $(use opengl || use sdl || use dedicated || echo BUILD_ARENA=1) \ + $(use dedicated && echo BUILD_DED=1) \ + || die "emake failed" +} + +src_install() { + cd build + exeinto "${GAMES_LIBDIR}"/${PN} + doexe arena/game.so || die "doexe failed" + + if (use opengl || use sdl) || use opengl || use sdl || ! use dedicated ; then + newgamesbin crx ${PN}-oss || die "newgamesbin crx failed" + make_desktop_entry ${PN}-oss "Alien Arena (OSS audio)" ${PN}.xpm + use sdl || dosym ${PN}-oss "${GAMES_BINDIR}"/${PN} + fi + + if use sdl ; then + newgamesbin crx.sdl ${PN}-sdl || die "newgamesbin crx.sdl failed" + make_desktop_entry ${PN}-sdl "Alien Arena (SDL audio)" ${PN}.xpm + dosym ${PN}-sdl "${GAMES_BINDIR}"/${PN} + fi + + if use dedicated ; then + newgamesbin crded ${PN}-ded || die "newgamesbin crded failed" + fi + + cd "${WORKDIR}"/${MY_PN} + insinto "${GAMES_DATADIR}"/${PN} + doins -r arena botinfo data1 || die "doins failed" + doicon ${PN}.xpm + dodoc README.txt version.txt + prepgamesdirs +} diff --git a/games-fps/alienarena/files/alienarena-20070224-build.patch b/games-fps/alienarena/files/alienarena-20070224-build.patch new file mode 100644 index 000000000000..6f42ab9028b2 --- /dev/null +++ b/games-fps/alienarena/files/alienarena-20070224-build.patch @@ -0,0 +1,193 @@ +--- source/linux/Makefile ++++ source/linux/Makefile +@@ -28,7 +28,8 @@ + + MOUNT_DIR=.. + +-BUILD_DEBUG_DIR=debug$(ARCH) ++BUILDDIR=build ++BUILD_DEBUG_DIR=$(BUILDDIR) + BUILD_RELEASE_DIR=release$(ARCH) + CLIENT_DIR=$(MOUNT_DIR)/client + SERVER_DIR=$(MOUNT_DIR)/server +@@ -50,7 +51,7 @@ + _LIB := lib + endif + +-BASE_CFLAGS=-Dstricmp=strcasecmp -D_stricmp=strcasecmp -D__linux__ ++CFLAGS+=-Dstricmp=strcasecmp -D_stricmp=strcasecmp -D__linux__ + + ifeq ($(ARCH),axp) + RELEASE_CFLAGS=$(BASE_CFLAGS) -ffast-math -funroll-loops \ +@@ -79,8 +80,7 @@ + + ARENA_CFLAGS=-DARENA + +-DEBUG_CFLAGS=$(BASE_CFLAGS) -g +-LDFLAGS=-ldl -lm ++LDFLAGS+=-ldl -lm + SVGALDFLAGS=-lvga -lm + XLDFLAGS=-L/usr/X11R6/$(_LIB) -lX11 -lXext -lXxf86dga + XCFLAGS= +@@ -120,24 +120,27 @@ + $(BUILDDIR)/game$(ARCH).$(SHLIBEXT) \ + $(BUILDDIR)/arena/game$(ARCH).$(SHLIBEXT) + else +-TARGETS=$(BUILDDIR)/crded.$(ARCH) \ +- $(BUILDDIR)/crx.$(ARCH) \ +- $(BUILDDIR)/game$(ARCH).$(SHLIBEXT) \ +- $(BUILDDIR)/arena/game$(ARCH).$(SHLIBEXT) ++TARGETS=$(BUILDDIR)/arena/game.so ++ifeq ($(BUILD_ARENA),1) ++TARGETS+=$(BUILDDIR)/crx ++endif ++ifeq ($(BUILD_DED),1) ++TARGETS+=$(BUILDDIR)/crded ++endif + endif + + ifeq ($(strip $(SDLSOUND)),1) +- TARGETS+=$(BUILDDIR)/crx.sdl.$(ARCH) ++ TARGETS+=$(BUILDDIR)/crx.sdl + endif + +-build_debug: ++targets: mkdirs $(TARGETS) ++mkdirs: + @-mkdir $(BUILD_DEBUG_DIR) \ + $(BUILD_DEBUG_DIR)/client \ + $(BUILD_DEBUG_DIR)/ded \ + $(BUILD_DEBUG_DIR)/ref_gl \ + $(BUILD_DEBUG_DIR)/game \ + $(BUILD_DEBUG_DIR)/arena +- $(MAKE) targets BUILDDIR=$(BUILD_DEBUG_DIR) CFLAGS="$(DEBUG_CFLAGS)" + + build_release: + @-mkdir $(BUILD_RELEASE_DIR) \ +@@ -150,7 +153,6 @@ + + all: build_debug build_release + +-targets: $(TARGETS) + + ############################################################################# + # CLIENT/SERVER +@@ -242,14 +244,14 @@ + endif + + +-$(BUILDDIR)/crx.$(ARCH) : $(CODERED_OBJS) $(SOUND_OSS_OBJS) $(CODERED_AS_OBJS) $(REF_GL_OBJS) $(REF_GL_GLX_OBJS) ++$(BUILDDIR)/crx : $(CODERED_OBJS) $(SOUND_OSS_OBJS) $(CODERED_AS_OBJS) $(REF_GL_OBJS) $(REF_GL_GLX_OBJS) + $(CC) $(CFLAGS) -o $@ $(CODERED_OBJS) $(SOUND_OSS_OBJS) $(CODERED_AS_OBJS) $(LDFLAGS) $(REF_GL_OBJS) $(REF_GL_GLX_OBJS) $(GLXLDFLAGS) + +-$(BUILDDIR)/crx.sdl.$(ARCH) : $(CODERED_OBJS) $(SOUND_SDL_OBJS) $(CODERED_AS_OBJS) $(REF_GL_OBJS) $(REF_GL_GLX_OBJS) ++$(BUILDDIR)/crx.sdl : $(CODERED_OBJS) $(SOUND_SDL_OBJS) $(CODERED_AS_OBJS) $(REF_GL_OBJS) $(REF_GL_GLX_OBJS) + $(CC) $(CFLAGS) -o $@ $(CODERED_OBJS) $(SOUND_SDL_OBJS) $(CODERED_AS_OBJS) $(LDFLAGS) $(REF_GL_OBJS) $(REF_GL_GLX_OBJS) $(GLXLDFLAGS) $(SDLLDFLAGS) + + $(BUILDDIR)/client/cl_cin.o : $(CLIENT_DIR)/cl_cin.c +- $(DO_CC) ++ $(DO_CC) -fno-strict-aliasing + + $(BUILDDIR)/client/cl_ents.o : $(CLIENT_DIR)/cl_ents.c + $(DO_CC) +@@ -291,13 +293,13 @@ + $(DO_CC) + + $(BUILDDIR)/client/menu.o : $(CLIENT_DIR)/menu.c +- $(DO_CC) ++ $(DO_CC) -fno-strict-aliasing + + $(BUILDDIR)/client/snd_dma.o : $(CLIENT_DIR)/snd_dma.c + $(DO_CC) + + $(BUILDDIR)/client/snd_mem.o : $(CLIENT_DIR)/snd_mem.c +- $(DO_CC) ++ $(DO_CC) -fno-strict-aliasing + + $(BUILDDIR)/client/snd_mix.o : $(CLIENT_DIR)/snd_mix.c + $(DO_CC) +@@ -306,10 +308,10 @@ + $(DO_CC) + + $(BUILDDIR)/client/cmd.o : $(COMMON_DIR)/cmd.c +- $(DO_CC) ++ $(DO_CC) -fno-strict-aliasing + + $(BUILDDIR)/client/cmodel.o : $(COMMON_DIR)/cmodel.c +- $(DO_CC) ++ $(DO_CC) -fno-strict-aliasing + + $(BUILDDIR)/client/common.o : $(COMMON_DIR)/common.c + $(DO_CC) +@@ -354,7 +356,7 @@ + $(DO_CC) + + $(BUILDDIR)/client/sv_user.o : $(SERVER_DIR)/sv_user.c +- $(DO_CC) ++ $(DO_CC) -fno-strict-aliasing + + $(BUILDDIR)/client/sv_world.o : $(SERVER_DIR)/sv_world.c + $(DO_CC) +@@ -405,7 +407,7 @@ + $(DO_GL_SHLIB_CC) + + $(BUILDDIR)/ref_gl/r_script.o : $(REF_GL_DIR)/r_script.c +- $(DO_GL_SHLIB_CC) ++ $(DO_GL_SHLIB_CC) -fno-strict-aliasing + + $(BUILDDIR)/ref_gl/r_surf.o : $(REF_GL_DIR)/r_surf.c + $(DO_GL_SHLIB_CC) +@@ -414,7 +416,7 @@ + $(DO_GL_SHLIB_CC) + + $(BUILDDIR)/ref_gl/r_image.o : $(REF_GL_DIR)/r_image.c +- $(DO_GL_SHLIB_CC) ++ $(DO_GL_SHLIB_CC) -fno-strict-aliasing + + $(BUILDDIR)/ref_gl/r_mesh.o : $(REF_GL_DIR)/r_mesh.c + $(DO_GL_SHLIB_CC) +@@ -478,14 +480,14 @@ + $(BUILDDIR)/ded/cl_null.o \ + $(BUILDDIR)/ded/cd_null.o + +-$(BUILDDIR)/crded.$(ARCH) : $(CRDED_OBJS) ++$(BUILDDIR)/crded : $(CRDED_OBJS) + $(CC) $(CFLAGS) -o $@ $(CRDED_OBJS) $(LDFLAGS) + + $(BUILDDIR)/ded/cmd.o : $(COMMON_DIR)/cmd.c +- $(DO_DED_CC) ++ $(DO_DED_CC) -fno-strict-aliasing + + $(BUILDDIR)/ded/cmodel.o : $(COMMON_DIR)/cmodel.c +- $(DO_DED_CC) ++ $(DO_DED_CC) -fno-strict-aliasing + + $(BUILDDIR)/ded/common.o : $(COMMON_DIR)/common.c + $(DO_DED_CC) +@@ -530,7 +532,7 @@ + $(DO_DED_CC) + + $(BUILDDIR)/ded/sv_user.o : $(SERVER_DIR)/sv_user.c +- $(DO_DED_CC) ++ $(DO_DED_CC) -fno-strict-aliasing + + $(BUILDDIR)/ded/sv_world.o : $(SERVER_DIR)/sv_world.c + $(DO_DED_CC) +@@ -597,7 +599,7 @@ + + + +-$(BUILDDIR)/game$(ARCH).$(SHLIBEXT) : $(GAME_OBJS) ++$(BUILDDIR)/game.so : $(GAME_OBJS) + $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(GAME_OBJS) + + +@@ -753,7 +755,7 @@ + $(BUILDDIR)/arena/p_weapon.o \ + $(BUILDDIR)/arena/vehicles.o + +-$(BUILDDIR)/arena/game$(ARCH).$(SHLIBEXT) : $(ARENA_OBJS) ++$(BUILDDIR)/arena/game.so : $(ARENA_OBJS) + $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(ARENA_OBJS) + + diff --git a/games-fps/alienarena/files/alienarena-20070224-exec-stack.patch b/games-fps/alienarena/files/alienarena-20070224-exec-stack.patch new file mode 100644 index 000000000000..2bd10445e2f8 --- /dev/null +++ b/games-fps/alienarena/files/alienarena-20070224-exec-stack.patch @@ -0,0 +1,9 @@ +--- source/linux/snd_mixa.s ++++ source/linux/snd_mixa.s +@@ -191,3 +191,6 @@ + + #endif // id386 + ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif diff --git a/games-fps/alienarena/files/alienarena-20070224-paths.patch b/games-fps/alienarena/files/alienarena-20070224-paths.patch new file mode 100644 index 000000000000..2acbb2dd5ef2 --- /dev/null +++ b/games-fps/alienarena/files/alienarena-20070224-paths.patch @@ -0,0 +1,43 @@ +--- source/linux/Makefile ++++ source/linux/Makefile +@@ -1,3 +1,4 @@ ++CFLAGS+=-DGENTOO_DATADIR=\"$(GENTOO_DATADIR)\" -DGENTOO_LIBDIR=\"$(GENTOO_LIBDIR)\" + # + # CodeRED Makefile + # +--- source/linux/sys_linux.c ++++ source/linux/sys_linux.c +@@ -217,6 +217,8 @@ + char name[MAX_OSPATH]; + char *path; + char *str_p; ++ const char *gamename = "game.so"; ++/* + #if defined __i386__ + const char *gamename = "gamei386.so"; + #elif defined __x86_64__ +@@ -230,6 +232,7 @@ + #else + #error Unknown arch + #endif ++*/ + + setreuid(getuid(), getuid()); + setegid(getgid()); +@@ -246,7 +249,7 @@ + path = FS_NextPath (path); + if (!path) + return NULL; // couldn't find one anywhere +- snprintf (name, MAX_OSPATH, "%s/%s", path, gamename); ++ snprintf (name, MAX_OSPATH, "%s/%s", GENTOO_LIBDIR, gamename); + + /* skip it if it just doesn't exist */ + fp = fopen(name, "rb"); +@@ -320,6 +323,7 @@ + saved_euid = geteuid(); + seteuid(getuid()); + ++ chdir(GENTOO_DATADIR); + Qcommon_Init(argc, argv); + + fcntl(0, F_SETFL, fcntl (0, F_GETFL, 0) | FNDELAY); diff --git a/games-fps/alienarena/files/digest-alienarena-20070224 b/games-fps/alienarena/files/digest-alienarena-20070224 new file mode 100644 index 000000000000..0c122c10025d --- /dev/null +++ b/games-fps/alienarena/files/digest-alienarena-20070224 @@ -0,0 +1,3 @@ +MD5 1348513890c6ba959e681e721add1fd4 alienarena2007-linux20070224-x86.zip 195661108 +RMD160 8ca8ac8f652d6b75d353ca9af7fff80d4e3fdd66 alienarena2007-linux20070224-x86.zip 195661108 +SHA256 62f4a33b2b3975174d7893fcc95cfde4fadad02ab67da90b74827e5b854918d4 alienarena2007-linux20070224-x86.zip 195661108 diff --git a/games-fps/alienarena/metadata.xml b/games-fps/alienarena/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-fps/alienarena/metadata.xml @@ -0,0 +1,5 @@ + + + +games +