diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /games-fps/wolfgl | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'games-fps/wolfgl')
-rw-r--r-- | games-fps/wolfgl/Manifest | 3 | ||||
-rw-r--r-- | games-fps/wolfgl/files/0.93-gcc.patch | 212 | ||||
-rw-r--r-- | games-fps/wolfgl/files/0.93-gcc4.patch | 80 | ||||
-rw-r--r-- | games-fps/wolfgl/files/0.93-sample-rate.patch | 11 | ||||
-rw-r--r-- | games-fps/wolfgl/files/0.93-sprite.patch | 82 | ||||
-rw-r--r-- | games-fps/wolfgl/files/wolfgl-0.93-as-needed.patch | 11 | ||||
-rw-r--r-- | games-fps/wolfgl/metadata.xml | 12 | ||||
-rw-r--r-- | games-fps/wolfgl/wolfgl-0.93-r1.ebuild | 58 |
8 files changed, 469 insertions, 0 deletions
diff --git a/games-fps/wolfgl/Manifest b/games-fps/wolfgl/Manifest new file mode 100644 index 000000000000..0b0ff074fd41 --- /dev/null +++ b/games-fps/wolfgl/Manifest @@ -0,0 +1,3 @@ +DIST sdmdata.zip 557147 SHA256 054590923cd35ce7c0bfae98c23be81ab70c28e11fd0e562b5253523fcd7b91f +DIST wolfdata.zip 564771 SHA256 a32ee97c515b6e182597a06f2326d15cc4c343ddc70558ce5fe76c870b7a0027 +DIST wolfgl-0.93.tbz2 146132 SHA256 137b311edabc7bdde462cfb51bcfd468e35398828d33f0d99fcc024ceece3739 diff --git a/games-fps/wolfgl/files/0.93-gcc.patch b/games-fps/wolfgl/files/0.93-gcc.patch new file mode 100644 index 000000000000..3789aa2e255d --- /dev/null +++ b/games-fps/wolfgl/files/0.93-gcc.patch @@ -0,0 +1,212 @@ +diff -abur common/console.c common/console.c +--- common/console.c 2000-09-27 16:19:44.000000000 +0200 ++++ common/console.c 2003-09-11 19:59:46.037562040 +0200 +@@ -3,6 +3,14 @@ + #include "id_us.h" + #include "console.h" + ++#ifdef _LINUX ++#include <string.h> ++#endif ++ ++#ifdef _LINUX ++#include <string.h> ++#endif ++ + static char con_lines[32][45]; // buffer + static int con_active; // console is visible + static int con_current; // current line +Only in common: console.c.orig +diff -abur common/id_in.h common/id_in.h +--- common/id_in.h 2000-09-27 16:04:26.000000000 +0200 ++++ common/id_in.h 2003-09-11 19:32:14.368653880 +0200 +@@ -178,6 +178,7 @@ + + void IN_Startup(); + void IN_Shutdown(); ++void IN_KeyEvent(unsigned char key); + void IN_Default(wbool gotit, ControlType in); + void IN_ClearKeysDown(); + void IN_ReadControl(int player, ControlInfo *info); +Only in common: id_in.h.rej +diff -abur common/id_vh.c common/id_vh.c +--- common/id_vh.c 2000-09-26 17:39:36.000000000 +0200 ++++ common/id_vh.c 2003-09-11 19:24:57.183116184 +0200 +@@ -230,3 +230,4 @@ + + } + */ +\ No newline at end of file ++ +Only in common: id_vh.c.rej +diff -abur common/opengl.c common/opengl.c +--- common/opengl.c 2000-09-27 16:04:26.000000000 +0200 ++++ common/opengl.c 2003-09-11 19:22:35.622636648 +0200 +@@ -1,5 +1,10 @@ + #include <stdio.h> + #include <stdlib.h> ++ ++#ifdef _LINUX ++#include <string.h> ++#endif ++ + #include "system.h" + #include "opengl.h" + #include "wl_def.h" +diff -abur common/wl_act2.c common/wl_act2.c +--- common/wl_act2.c 2000-09-27 16:04:26.000000000 +0200 ++++ common/wl_act2.c 2003-09-11 19:19:45.511497472 +0200 +@@ -1,5 +1,9 @@ + // WL_ACT2.C + ++#ifdef _LINUX ++#include <stdlib.h> ++#endif ++ + #include "wl_def.h" + + //============================================================================= +diff -abur common/wl_agent.c common/wl_agent.c +--- common/wl_agent.c 2003-09-11 20:04:40.738760648 +0200 ++++ common/wl_agent.c 2003-09-11 19:57:06.860760592 +0200 +@@ -3,6 +3,10 @@ + #include <string.h> + #include "wl_def.h" + ++#ifdef _LINUX ++#include <stdlib.h> ++#endif ++ + //============================================================================= + // LOCAL CONSTANTS + //============================================================================= +diff -abur common/wl_draw.c common/wl_draw.c +--- common/wl_draw.c 2003-09-11 20:04:40.739760496 +0200 ++++ common/wl_draw.c 2003-09-11 19:20:33.512200256 +0200 +@@ -2,6 +2,11 @@ + + #include <stdio.h> + #include <stdlib.h> ++ ++#ifdef _LINUX ++#include <string.h> ++#endif ++ + #include "system.h" + #include "opengl.h" + #include "wl_def.h" +diff -abur common/wl_menu.c common/wl_menu.c +--- common/wl_menu.c 2000-09-27 16:04:27.000000000 +0200 ++++ common/wl_menu.c 2003-09-11 20:07:38.892677136 +0200 +@@ -5,6 +5,10 @@ + // + //////////////////////////////////////////////////////////////////// + ++#ifdef _LINUX ++#include "../linux/input.h" ++#endif ++ + #include <string.h> + #include "opengl.h" + #include "wl_def.h" +diff -abur common/wl_menu.h common/wl_menu.h +--- common/wl_menu.h 2000-09-26 17:38:31.000000000 +0200 ++++ common/wl_menu.h 2003-09-11 18:31:41.593919584 +0200 +@@ -233,3 +233,4 @@ + void NonShareware(); + /*int GetYorN(int x,int y,int pic); + */ +\ No newline at end of file ++ +diff -abur common/wl_play.c common/wl_play.c +--- common/wl_play.c 2000-09-27 16:04:27.000000000 +0200 ++++ common/wl_play.c 2003-09-11 19:40:31.293109880 +0200 +@@ -1,6 +1,11 @@ + // WL_PLAY.C + + #include <memory.h> ++ ++#ifdef _LINUX ++#include "../linux/input.h" ++#endif ++ + #include "wl_def.h" + #include "system.h" + +diff -abur common/wl_state.c common/wl_state.c +--- common/wl_state.c 2000-09-27 16:04:27.000000000 +0200 ++++ common/wl_state.c 2003-09-11 19:23:26.895841936 +0200 +@@ -2,6 +2,10 @@ + + #include "wl_def.h" + ++#ifdef _LINUX ++#include <stdlib.h> ++#endif ++ + //============================================================================= + // GLOBAL VARIABLES + //============================================================================= +diff -abur common/wl_text.c common/wl_text.c +--- common/wl_text.c 2000-09-26 17:40:23.000000000 +0200 ++++ common/wl_text.c 2003-09-11 19:19:00.110399488 +0200 +@@ -4,6 +4,10 @@ + #include "wl_def.h" + #include "system.h" + ++#ifdef _LINUX ++#include <string.h> ++#endif ++ + #ifndef SPEAR + + void FreeMusic(); // WL_MENU.C +diff -abur linux/sound.c linux/sound.c +--- linux/sound.c 2000-09-26 17:57:48.000000000 +0200 ++++ linux/sound.c 2003-09-11 19:55:16.702507192 +0200 +@@ -9,6 +9,8 @@ + #include <stdlib.h> + + #include <sys/time.h> ++#include <string.h> ++#include <errno.h> + + #include <fcntl.h> + #include <unistd.h> +diff -abur linux/sound.h linux/sound.h +--- linux/sound.h 2000-09-26 17:57:48.000000000 +0200 ++++ linux/sound.h 2003-09-11 19:44:03.663824624 +0200 +@@ -1,5 +1,8 @@ + void S_LoadSound(int id, void* data, long length); + void S_PlaySound(int id, int pan); ++void S_UpdateSound(); ++void S_InitSound(); ++void S_ShutDownSound(); + + extern int DigitalDevice; + +diff -abur linux/system.c linux/system.c +--- linux/system.c 2000-09-26 17:57:48.000000000 +0200 ++++ linux/system.c 2003-09-11 19:42:14.955350824 +0200 +@@ -1,9 +1,12 @@ + #include <stdio.h> ++#include <string.h> ++#include <unistd.h> + #include <sys/time.h> + #include <X11/keysym.h> + #include <GL/gl.h> + #include <GL/glx.h> + #include "wl_def.h" ++#include "sound.h" + + int screen_width, screen_height; + Display *dpy; +@@ -117,7 +120,7 @@ + visinfo = glXChooseVisual( dpy, scrnum, attrib ); + if (!visinfo) { + printf("Error: couldn't get an RGB, Double-buffered visual\n"); +- exit(1); ++ _exit(1); + } + + /* window attributes */ diff --git a/games-fps/wolfgl/files/0.93-gcc4.patch b/games-fps/wolfgl/files/0.93-gcc4.patch new file mode 100644 index 000000000000..5dcccd76049b --- /dev/null +++ b/games-fps/wolfgl/files/0.93-gcc4.patch @@ -0,0 +1,80 @@ +diff -ur wolfgl-0.93-orig/common/id_ca.c wolfgl-0.93/common/id_ca.c +--- wolfgl-0.93-orig/common/id_ca.c 2006-01-28 16:59:10.000000000 -0500 ++++ wolfgl-0.93/common/id_ca.c 2006-01-28 17:04:26.000000000 -0500 +@@ -252,6 +252,7 @@ + { + unsigned short ch,chhigh,count,offset; + unsigned short *copyptr, *inptr, *outptr; ++ unsigned char *uc_inptr; + + length/=2; + +@@ -268,13 +269,17 @@ + if (!count) + { + // have to insert a word containing the tag byte +- ch |= *((unsigned char*)inptr)++; ++ uc_inptr = (unsigned char*)inptr; ++ ch |= *(uc_inptr)++; ++ inptr = (unsigned short *)uc_inptr; + *outptr++ = ch; + length--; + } + else + { +- offset = *((unsigned char*)inptr)++; ++ uc_inptr = (unsigned char*)inptr; ++ offset = *(uc_inptr)++; ++ inptr = (unsigned short *)uc_inptr; + copyptr = outptr - offset; + length -= count; + while (count--) +@@ -287,7 +292,9 @@ + if (!count) + { + // have to insert a word containing the tag byte +- ch |= *((unsigned char*)inptr)++; ++ uc_inptr = (unsigned char*)inptr; ++ ch |= *(uc_inptr)++; ++ inptr = (unsigned short *)uc_inptr; + *outptr++ = ch; + length --; + } +@@ -806,7 +813,7 @@ + + for (i=0;i<NUMCHUNKS;i++) + if (grsegs[i]) +- MM_SetPurge (&(memptr)grsegs[i],3); ++ MM_SetPurge ((memptr)&grsegs[i],3); + ca_levelbit<<=1; + ca_levelnum++; + } +@@ -862,7 +869,7 @@ + + for (i = 0; i < NUMCHUNKS; i++) + if (grsegs[i]) +- MM_SetPurge (&(memptr)grsegs[i],3); ++ MM_SetPurge ((memptr)&grsegs[i],3); + } + + //=========================================================================== +diff -ur wolfgl-0.93-orig/common/wl_game.c wolfgl-0.93/common/wl_game.c +--- wolfgl-0.93-orig/common/wl_game.c 2006-01-28 16:59:10.000000000 -0500 ++++ wolfgl-0.93/common/wl_game.c 2006-01-28 17:07:08.000000000 -0500 +@@ -545,13 +545,13 @@ + { + // solid wall + tilemap[x][y] = tile; +- (unsigned short)actorat[x][y] = tile; ++ actorat[x][y] = tile; + } + else + { + // area floor + tilemap[x][y] = 0; +- (unsigned short)actorat[x][y] = 0; ++ actorat[x][y] = 0; + } + } + + diff --git a/games-fps/wolfgl/files/0.93-sample-rate.patch b/games-fps/wolfgl/files/0.93-sample-rate.patch new file mode 100644 index 000000000000..4beb8886355d --- /dev/null +++ b/games-fps/wolfgl/files/0.93-sample-rate.patch @@ -0,0 +1,11 @@ +--- linux/sound.c.orig 2003-09-11 20:28:32.032170976 +0200 ++++ linux/sound.c 2003-09-11 20:28:45.111182664 +0200 +@@ -64,7 +64,7 @@ + #define BUFMUL 4 + #define MIXBUFFERSIZE (SAMPLECOUNT*BUFMUL) + +-#define SAMPLERATE 11025 // Hz ++#define SAMPLERATE 8000 // Hz + #define SAMPLESIZE 2 // 16bit + + // The actual output device. diff --git a/games-fps/wolfgl/files/0.93-sprite.patch b/games-fps/wolfgl/files/0.93-sprite.patch new file mode 100644 index 000000000000..0ba91fc76a24 --- /dev/null +++ b/games-fps/wolfgl/files/0.93-sprite.patch @@ -0,0 +1,82 @@ +--- common/wl_agent.c.orig 2003-09-11 20:39:02.674298800 +0200 ++++ common/wl_agent.c 2003-09-11 20:42:17.229721880 +0200 +@@ -919,32 +919,31 @@ + viewdist = 0x7fffffffl; + closest = NULL; + +-// while (1) ++ while (1) + { + oldclosest = closest; + + for (check=ob->next ; check ; check=check->next) + if ((check->flags & FL_SHOOTABLE) +- //&& ++ && + // (check->flags & FL_VISABLE) && +-// (abs(check->viewx - centerx) < shootdelta) ++ (abs(check->viewx - centerx) < shootdelta) + ) +-// { ++ { + if (CheckLine(check)) +-// if (check->transx < viewdist) ++ if (check->transx < viewdist) + { +-// viewdist = check->transx; ++ viewdist = check->transx; + closest = check; +- break; + } +-// } ++ } + + if (closest == oldclosest) + return; // no more targets, all missed + + // trace a line from player to enemey +-// if (CheckLine(closest)) +-// break; ++ if (CheckLine(closest)) ++ break; + } + + // hit something +--- common/wl_draw.c.orig 2003-09-11 20:43:26.473195272 +0200 ++++ common/wl_draw.c 2003-09-11 20:46:57.859059736 +0200 +@@ -877,7 +877,7 @@ + tilespot = &tilemap[0][0]+spotloc; + + // could be in any of the nine surrounding tiles +- if ((*visspot) || ++ if (1 || (*visspot) || + (*(visspot-1) && !*(tilespot-1)) || + (*(visspot+1) && !*(tilespot+1)) || + (*(visspot-65) && !*(tilespot-65)) || +@@ -980,6 +980,8 @@ + + for (obj = player->next; obj; obj = obj->next) + { ++ int sprite; ++ + if (!areabyplayer[obj->areanumber]) + continue; + if (!gamestates[obj->state].shapenum) +@@ -989,10 +991,14 @@ + glTranslated((float)obj->x/(1<<16), (float)obj->y/(1<<16), 0); + glRotated(-player->angle, 0,0,1); + +- if (texture_index[PMSpriteStart+gamestates[obj->state].shapenum] == 0) +- CreateSprite(PMSpriteStart+gamestates[obj->state].shapenum); ++ sprite = gamestates[obj->state].shapenum; ++ if (gamestates[obj->state].rotate) ++ sprite += CalcRotate(obj); ++ ++ if (texture_index[PMSpriteStart+sprite] == 0) ++ CreateSprite(PMSpriteStart+sprite); + else +- glBindTexture(GL_TEXTURE_2D, texture_index[PMSpriteStart+gamestates[obj->state].shapenum]); ++ glBindTexture(GL_TEXTURE_2D, texture_index[PMSpriteStart+sprite]); + + glBegin(GL_QUADS); + glTexCoord2f(0,0); diff --git a/games-fps/wolfgl/files/wolfgl-0.93-as-needed.patch b/games-fps/wolfgl/files/wolfgl-0.93-as-needed.patch new file mode 100644 index 000000000000..6916df70bcc4 --- /dev/null +++ b/games-fps/wolfgl/files/wolfgl-0.93-as-needed.patch @@ -0,0 +1,11 @@ +--- linux/Makefile.old 2009-02-06 14:27:11.000000000 +0100 ++++ linux/Makefile 2009-02-06 14:27:40.000000000 +0100 +@@ -19,7 +19,7 @@ + @echo 'Do not call this file directly' + + wolfgl: $(LINUX_OBJS) $(COMMON_OBJS) +- $(CC) $(LINK_FLAGS) $(COMMON_OBJS) $(LINUX_OBJS) -o $(OUTDIR)/wolfgl ++ $(CC) $(LDFLAGS) $(COMMON_OBJS) $(LINUX_OBJS) $(LINK_FLAGS) -o $(OUTDIR)/wolfgl + + # common directory + diff --git a/games-fps/wolfgl/metadata.xml b/games-fps/wolfgl/metadata.xml new file mode 100644 index 000000000000..d2cb0119470c --- /dev/null +++ b/games-fps/wolfgl/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <maintainer> + <email>chainsaw@gentoo.org</email> + <name>Tony Vroon</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">wolfgl</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-fps/wolfgl/wolfgl-0.93-r1.ebuild b/games-fps/wolfgl/wolfgl-0.93-r1.ebuild new file mode 100644 index 000000000000..d3b3a7c75435 --- /dev/null +++ b/games-fps/wolfgl/wolfgl-0.93-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 +#ECVS_SERVER="wolfgl.cvs.sourceforge.net:/cvsroot/wolfgl" +#ECVS_MODULE="wolfgl" +#inherit cvs +inherit eutils games + +DESCRIPTION="Wolfenstein and Spear of Destiny port using OpenGL" +HOMEPAGE="http://wolfgl.sourceforge.net/" +SRC_URI="mirror://gentoo/${P}.tbz2 + mirror://sourceforge/wolfgl/wolfdata.zip + mirror://sourceforge/wolfgl/sdmdata.zip" +# mirror://sourceforge/wolfgl/wolfglx-wl6-${PV}.zip +# mirror://sourceforge/wolfgl/wolfglx-sod-${PV}.zip + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~ppc x86" +IUSE="" + +RDEPEND="virtual/opengl" +DEPEND="${RDEPEND} + x11-proto/xproto + app-arch/unzip" + +src_prepare() { + epatch "${FILESDIR}"/${PV}-gcc.patch \ + "${FILESDIR}"/${PV}-sample-rate.patch \ + "${FILESDIR}"/${PV}-sprite.patch \ + "${FILESDIR}"/${P}-as-needed.patch \ + "${FILESDIR}"/${PV}-gcc4.patch +} + +src_compile() { + emake -j1 CFLAGS="${CFLAGS}" DATADIR="${GAMES_DATADIR}"/${PN} \ + || die "emake failed" +} + +src_install() { + newgamesbin linux/SDM/wolfgl wolfgl-sdm || die + newgamesbin linux/SOD/wolfgl wolfgl-sod || die + newgamesbin linux/WL1/wolfgl wolfgl-wl1 || die + newgamesbin linux/WL6/wolfgl wolfgl-wl6 || die + insinto "${GAMES_DATADIR}"/${PN} + doins "${WORKDIR}"/*.{sdm,wl1} || die + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + elog "This installed the shareware data files for" + elog "Wolfenstein 3D and Spear Of Destiny." + elog "If you wish to play the full versions just" + elog "copy the data files to ${GAMES_DATADIR}/${PN}/" +} |