diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2005-11-01 04:50:41 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2005-11-01 04:50:41 +0000 |
commit | 119021a29b0ff8018db16babaeea60cd2b430f46 (patch) | |
tree | a3425f84913a5a9776a777fd11b53c39d759f29f /games-arcade/njam | |
parent | clean old files (diff) | |
download | gentoo-2-119021a29b0ff8018db16babaeea60cd2b430f46.tar.gz gentoo-2-119021a29b0ff8018db16babaeea60cd2b430f46.tar.bz2 gentoo-2-119021a29b0ff8018db16babaeea60cd2b430f46.zip |
old
(Portage version: 2.0.51.22-r3)
Diffstat (limited to 'games-arcade/njam')
-rw-r--r-- | games-arcade/njam/files/0.96/njam.diff | 182 | ||||
-rw-r--r-- | games-arcade/njam/files/0.96/njamgame.diff | 27 | ||||
-rw-r--r-- | games-arcade/njam/files/digest-njam-0.96 | 1 | ||||
-rw-r--r-- | games-arcade/njam/files/digest-njam-1.00 | 1 | ||||
-rw-r--r-- | games-arcade/njam/files/njam-1.00-conf.patch | 112 | ||||
-rw-r--r-- | games-arcade/njam/njam-0.96.ebuild | 48 | ||||
-rw-r--r-- | games-arcade/njam/njam-1.00.ebuild | 68 |
7 files changed, 0 insertions, 439 deletions
diff --git a/games-arcade/njam/files/0.96/njam.diff b/games-arcade/njam/files/0.96/njam.diff deleted file mode 100644 index e19752d4b053..000000000000 --- a/games-arcade/njam/files/0.96/njam.diff +++ /dev/null @@ -1,182 +0,0 @@ ---- njam-0.96-src/njam.cpp 2003-06-26 07:06:24.000000000 -0700 -+++ src/njam.cpp 2003-07-18 14:11:44.000000000 -0700 -@@ -202,7 +202,7 @@ - }
-
- if (script_file == NULL)
-- script_file = fopen("data/script.txt", "rb");
-+ script_file = fopen("/usr/share/games/njam/data/script.txt", "rb");
- if (script_file == NULL)
- return;
-
-@@ -287,7 +287,7 @@ - // load .bmp for main menu
- SDL_Surface *m_Icon;
- LogFile("Loading icon...");
-- m_Icon = SDL_LoadBMP("data/njamicon.bmp");
-+ m_Icon = SDL_LoadBMP("/usr/share/games/njam/data/njamicon.bmp");
- if (!m_Icon)
- {
- LogFile("FAILED.\n");
-@@ -338,7 +338,7 @@ - // load .bmp for main menu
- SDL_Surface *temp;
- LogFile("Loading Main Menu image...");
-- temp = IMG_Load("data/mainmenu.jpg");
-+ temp = IMG_Load("/usr/share/games/njam/data/mainmenu.jpg");
- if (!temp)
- {
- LogFile("FAILED.\n");
-@@ -358,7 +358,7 @@ -
- // load .bmp for options menu
- LogFile("Loading Options Menu image...");
-- temp = IMG_Load("data/options.jpg");
-+ temp = IMG_Load("/usr/share/games/njam/data/options.jpg");
- if (!temp)
- {
- LogFile("FAILED.\n");
-@@ -378,7 +378,7 @@ -
- // load .bmp for network-send screen
- LogFile("Loading Net-send image...");
-- m_NetSendImage = IMG_Load("data/netsend.jpg");
-+ m_NetSendImage = IMG_Load("/usr/share/games/njam/data/netsend.jpg");
- if (!m_NetSendImage)
- {
- LogFile("FAILED.\n");
-@@ -389,7 +389,7 @@ -
- // load .bmp for network-send screen
- LogFile("Loading Gameover image...");
-- m_GameOverImage = IMG_Load("data/gameover.jpg");
-+ m_GameOverImage = IMG_Load("/usr/share/games/njam/data/gameover.jpg");
- if (!m_GameOverImage)
- {
- LogFile("FAILED.\n");
-@@ -400,7 +400,7 @@ -
- // load .bmp for network-send screen
- LogFile("Loading Net-lobby image...");
-- m_NetLobbyImage = SDL_LoadBMP("data/network.bmp");
-+ m_NetLobbyImage = SDL_LoadBMP("/usr/share/games/njam/data/network.bmp");
- if (!m_NetLobbyImage)
- {
- LogFile("FAILED.\n");
-@@ -411,7 +411,7 @@ -
- // load .bmp for enter server IP screen
- LogFile("Loading enter server IP image...");
-- m_NetEnterImage = IMG_Load("data/enter-ip.jpg");
-+ m_NetEnterImage = IMG_Load("/usr/share/games/njam/data/enter-ip.jpg");
- if (!m_NetEnterImage)
- {
- LogFile("FAILED.\n");
-@@ -422,7 +422,7 @@ -
- // load .bmp for stats screen
- LogFile("Loading Stats screen image...");
-- temp = IMG_Load("data/stats.jpg");
-+ temp = IMG_Load("/usr/share/games/njam/data/stats.jpg");
- if (!temp)
- {
- LogFile("FAILED.\n");
-@@ -442,7 +442,7 @@ -
- // load .bmp for sprites and menu selector
- LogFile("Loading Sprites image...");
-- temp = SDL_LoadBMP("data/sprites.bmp");
-+ temp = SDL_LoadBMP("/usr/share/games/njam/data/sprites.bmp");
- if (!temp)
- {
- LogFile("FAILED.\n");
-@@ -469,7 +469,7 @@ - m_NumberOfSkins = 0;
- while (true)
- {
-- sprintf(Filename, "skins/Back%03d.bmp", m_NumberOfSkins);
-+ sprintf(Filename, "/usr/share/games/njam/skins/Back%03d.bmp", m_NumberOfSkins);
- FILE *fp = fopen(Filename, "r");
- if (!fp)
- break;
-@@ -484,7 +484,7 @@ -
- for (int i=0; i<m_NumberOfSkins; i++)
- {
-- sprintf(Filename, "skins/Back%03d.bmp", i);
-+ sprintf(Filename, "/usr/share/games/njam/skins/Back%03d.bmp", i);
- LogFile((const char*)Filename);
- temp = SDL_LoadBMP(Filename);
- if (!temp)
-@@ -506,8 +506,8 @@ - }
-
- LogFile("Loading Fonts:\n");
-- m_FontBlue = new NjamFont("data/font-blue.bmp", 6, 9);
-- m_FontYellow = new NjamFont("data/font-yellow.bmp", 10, 15);
-+ m_FontBlue = new NjamFont("/usr/share/games/njam/data/font-blue.bmp", 6, 9);
-+ m_FontYellow = new NjamFont("/usr/share/games/njam/data/font-yellow.bmp", 10, 15);
-
- // Load user settings from .conf file
- char filename[] = "njam.conf";
-@@ -561,38 +561,38 @@ - printf("2 channels were not reserved!\n");
- }
-
-- printf("Loading song: data/satisfy.s3m...\n");
-- m_MainMenuMusic = Mix_LoadMUS("data/satisfy.s3m");;
-+ printf("Loading song: /usr/share/games/njam/data/satisfy.s3m...\n");
-+ m_MainMenuMusic = Mix_LoadMUS("/usr/share/games/njam/data/satisfy.s3m");;
- if(!m_MainMenuMusic)
- printf("ERROR: Mix_LoadMUS(): %s\n", Mix_GetError());
-
-- printf("Loading song: data/ritam.s3m...\n");
-- m_GameMusic1 = Mix_LoadMUS("data/ritam.s3m");;
-+ printf("Loading song: /usr/share/games/njam/data/ritam.s3m...\n");
-+ m_GameMusic1 = Mix_LoadMUS("/usr/share/games/njam/data/ritam.s3m");;
- if(!m_GameMusic1)
- printf("ERROR: Mix_LoadMUS(): %s\n", Mix_GetError());
-
-- printf("Loading song: data/dali.mod...\n");
-- m_GameMusic2 = Mix_LoadMUS("data/dali.mod");;
-+ printf("Loading song: /usr/share/games/njam/data/dali.mod...\n");
-+ m_GameMusic2 = Mix_LoadMUS("/usr/share/games/njam/data/dali.mod");;
- if(!m_GameMusic2)
- printf("ERROR: Mix_LoadMUS(): %s\n", Mix_GetError());
-
- printf("Loading samples...");
-- m_Sounds[0] = Mix_LoadWAV("data/dead.wav");
-- m_Sounds[1] = Mix_LoadWAV("data/dead2.wav");
-- m_Sounds[2] = Mix_LoadWAV("data/dead3.wav");
-- m_Sounds[3] = Mix_LoadWAV("data/kill.wav");
-- m_Sounds[4] = Mix_LoadWAV("data/kill2.wav");
-- m_Sounds[5] = Mix_LoadWAV("data/kill3.wav");
-- m_Sounds[6] = Mix_LoadWAV("data/killply.wav");
-- m_Sounds[7] = Mix_LoadWAV("data/mapend.wav");
-- m_Sounds[8] = Mix_LoadWAV("data/mapend2.wav");
-- m_Sounds[9] = Mix_LoadWAV("data/juice.wav");
-- m_Sounds[10] = Mix_LoadWAV("data/teleport.wav");
-- m_Sounds[11] = Mix_LoadWAV("data/invisible.wav");
-- m_Sounds[12] = Mix_LoadWAV("data/trapdoor.wav");
-- m_Sounds[13] = Mix_LoadWAV("data/freeze.wav");
-- m_Sounds[14] = Mix_LoadWAV("data/tripleding.wav");
-- m_Sounds[15] = Mix_LoadWAV("data/bonus.wav");
-+ m_Sounds[0] = Mix_LoadWAV("/usr/share/games/njam/data/dead.wav");
-+ m_Sounds[1] = Mix_LoadWAV("/usr/share/games/njam/data/dead2.wav");
-+ m_Sounds[2] = Mix_LoadWAV("/usr/share/games/njam/data/dead3.wav");
-+ m_Sounds[3] = Mix_LoadWAV("/usr/share/games/njam/data/kill.wav");
-+ m_Sounds[4] = Mix_LoadWAV("/usr/share/games/njam/data/kill2.wav");
-+ m_Sounds[5] = Mix_LoadWAV("/usr/share/games/njam/data/kill3.wav");
-+ m_Sounds[6] = Mix_LoadWAV("/usr/share/games/njam/data/killply.wav");
-+ m_Sounds[7] = Mix_LoadWAV("/usr/share/games/njam/data/mapend.wav");
-+ m_Sounds[8] = Mix_LoadWAV("/usr/share/games/njam/data/mapend2.wav");
-+ m_Sounds[9] = Mix_LoadWAV("/usr/share/games/njam/data/juice.wav");
-+ m_Sounds[10] = Mix_LoadWAV("/usr/share/games/njam/data/teleport.wav");
-+ m_Sounds[11] = Mix_LoadWAV("/usr/share/games/njam/data/invisible.wav");
-+ m_Sounds[12] = Mix_LoadWAV("/usr/share/games/njam/data/trapdoor.wav");
-+ m_Sounds[13] = Mix_LoadWAV("/usr/share/games/njam/data/freeze.wav");
-+ m_Sounds[14] = Mix_LoadWAV("/usr/share/games/njam/data/tripleding.wav");
-+ m_Sounds[15] = Mix_LoadWAV("/usr/share/games/njam/data/bonus.wav");
- for (int i=0; i<16; i++)
- if (!m_Sounds[i])
- printf("ERROR loading sample nr. %d\n", i);
diff --git a/games-arcade/njam/files/0.96/njamgame.diff b/games-arcade/njam/files/0.96/njamgame.diff deleted file mode 100644 index a6902ff13783..000000000000 --- a/games-arcade/njam/files/0.96/njamgame.diff +++ /dev/null @@ -1,27 +0,0 @@ ---- njam-0.96-src/njamgame.cpp 2003-06-27 10:29:08.000000000 -0700 -+++ src/njamgame.cpp 2003-07-18 14:11:47.000000000 -0700 -@@ -59,13 +59,13 @@ - case gtOnePlayer:
- m_Player[0].Playing = true;
- m_Ghosts = 5;
-- levels = m_Maps.Load("data/maps.dat");
-+ levels = m_Maps.Load("/usr/share/games/njam/data/maps.dat");
- break;
- case gtDuel:
- m_Player[0].Playing = true;
- m_Player[1].Playing = true;
- case gtHostDuel:
-- levels = m_Maps.Load("data/duelmaps.dat");
-+ levels = m_Maps.Load("/usr/share/games/njam/data/duelmaps.dat");
- break;
- case gtJoinDuel: // don't load, the server will send map data
- levels = 1;
-@@ -188,7 +188,7 @@ - }
- else // duel over... we have a winner(0-3) in Winner variable
- {
-- char filename[] = "data/win?.jpg";
-+ char filename[] = "/usr/share/games/njam/data/win?.jpg";
- filename[8] = (char)('1'+Winner);
- SDL_Surface *temp = IMG_Load(filename);
- if (!temp)
diff --git a/games-arcade/njam/files/digest-njam-0.96 b/games-arcade/njam/files/digest-njam-0.96 deleted file mode 100644 index 1c1fa240d96d..000000000000 --- a/games-arcade/njam/files/digest-njam-0.96 +++ /dev/null @@ -1 +0,0 @@ -MD5 9a22423b997c1e087f6235b9bbd67a91 njam-0.96-src.tar.gz 1479787 diff --git a/games-arcade/njam/files/digest-njam-1.00 b/games-arcade/njam/files/digest-njam-1.00 deleted file mode 100644 index 89bc9b172246..000000000000 --- a/games-arcade/njam/files/digest-njam-1.00 +++ /dev/null @@ -1 +0,0 @@ -MD5 88b276a1334477295fc3ba3cc44e05fd njam-1.00-src.tar.gz 1342417 diff --git a/games-arcade/njam/files/njam-1.00-conf.patch b/games-arcade/njam/files/njam-1.00-conf.patch deleted file mode 100644 index d0acc9699367..000000000000 --- a/games-arcade/njam/files/njam-1.00-conf.patch +++ /dev/null @@ -1,112 +0,0 @@ ---- njam.cpp.orig 2003-11-06 23:59:22.000000000 -0800 -+++ njam.cpp 2003-11-06 23:59:50.000000000 -0800 -@@ -33,6 +33,8 @@ - // needed for chdir
- #ifdef __linux__
- #include <unistd.h>
-+#include <sys/stat.h>
-+#include <sys/types.h>
- #endif
-
- #include <stdio.h>
-@@ -213,16 +215,30 @@ - if (m_NetworkAvailable)
- SDLNet_Quit();
-
-+ FILE *fp;
- // write configuration options
-- char filename[] = "njam.conf";
-- FILE *fp = fopen(filename, "w+");
-- if (fp)
-+ if (getenv("HOME") && !chdir(getenv("HOME")))
- {
-- fprintf(fp, "M=%d\n", (m_GameOptions.PlayMusic ? 1 : 0));
-- fprintf(fp, "S=%d\n", (m_GameOptions.PlaySound ? 1 : 0));
-- fprintf(fp, "A=%d\n", (m_GameOptions.UseAllSkins ? 1 : 0));
-- fprintf(fp, "I=%s\n", m_GameOptions.ServerIP);
-- fclose(fp);
-+ mkdir(".njam", 0774);
-+ if (!chdir(".njam"))
-+ {
-+ char filename[] = "njam.conf";
-+ fp = fopen(filename, "w+");
-+
-+ if (fp)
-+ {
-+ fprintf(fp,
-+ "M=%d\n"
-+ "S=%d\n"
-+ "A=%d\n"
-+ "I=%s\n",
-+ (m_GameOptions.PlayMusic ? 1 : 0),
-+ (m_GameOptions.PlaySound ? 1 : 0),
-+ (m_GameOptions.UseAllSkins ? 1 : 0),
-+ m_GameOptions.ServerIP);
-+ fclose(fp);
-+ }
-+ }
- }
-
- // format: NAME#POINTS#LEVEL#
-@@ -597,35 +613,39 @@ - m_FontBlue = new NjamFont("data/font-blue.bmp", 6, 9);
- m_FontYellow = new NjamFont("data/font-yellow.bmp", 10, 15);
-
-+ FILE *fp;
- // Load user settings from .conf file
-- char filename[] = "njam.conf";
-- FILE *fp = fopen(filename, "r");
-- if (fp)
-+ if (getenv("HOME") && !chdir(getenv("HOME")) && !chdir(".njam"))
- {
-- LogFile("Reading njam.conf file.\n");
-- char buff[20];
-- while (!feof(fp))
-- {
-- fgets(buff, 20, fp);
-- if (buff[1] == '=')
-+ char filename[] = "njam.conf";
-+ fp = fopen(filename, "r");
-+ if (fp)
-+ {
-+ LogFile("Reading njam.conf file.\n");
-+ char buff[20];
-+ while (!feof(fp))
- {
-- int i;
-- switch (buff[0])
-+ fgets(buff, 20, fp);
-+ if (buff[1] == '=')
- {
-- case 'M': m_GameOptions.PlayMusic = (buff[2] == '1'); break;
-- case 'S': m_GameOptions.PlaySound = (buff[2] == '1'); break;
-- case 'A': m_GameOptions.UseAllSkins = (buff[2] == '1'); break;
-- case 'I': // serverIP
-- for (i=2; buff[i] != '\n' && buff[i] && i<17; i++)
-- m_GameOptions.ServerIP[i-2] = buff[i];
-- m_GameOptions.ServerIP[i] = '\0';
-- break;
-- default:
-- printf("Unknown configuration file option: %c\n", buff[0]);
-+ int i;
-+ switch (buff[0])
-+ {
-+ case 'M': m_GameOptions.PlayMusic = (buff[2] == '1'); break;
-+ case 'S': m_GameOptions.PlaySound = (buff[2] == '1'); break;
-+ case 'A': m_GameOptions.UseAllSkins = (buff[2] == '1'); break;
-+ case 'I': // serverIP
-+ for (i=2; buff[i] != '\n' && buff[i] && i<17; i++)
-+ m_GameOptions.ServerIP[i-2] = buff[i];
-+ m_GameOptions.ServerIP[i] = '\0';
-+ break;
-+ default:
-+ printf("Unknown configuration file option: %c\n", buff[0]);
-+ }
- }
- }
-+ fclose(fp);
- }
-- fclose(fp);
- }
-
- // create default hiscore
diff --git a/games-arcade/njam/njam-0.96.ebuild b/games-arcade/njam/njam-0.96.ebuild deleted file mode 100644 index 2526f8381d75..000000000000 --- a/games-arcade/njam/njam-0.96.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-arcade/njam/njam-0.96.ebuild,v 1.6 2005/09/26 17:35:42 wolf31o2 Exp $ - -inherit eutils games - -MY_P="${P}-src" -S="${WORKDIR}/${MY_P}" -DESCRIPTION="Multi or single-player network Pacman-like game in SDL" -HOMEPAGE="http://njam.sourceforge.net/" -SRC_URI="mirror://sourceforge/njam/${MY_P}.tar.gz" -RESTRICT="nomirror" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="x86" -IUSE="" - -DEPEND=">=media-libs/sdl-mixer-1.2.5 - >=media-libs/sdl-image-1.2.2 - >=media-libs/libsdl-1.2.5 - >=media-libs/sdl-net-1.2.4" - -src_unpack() { - unpack ${A} - epatch ${FILESDIR}/${PV}/njam.diff - epatch ${FILESDIR}/${PV}/njamgame.diff -} - -src_compile() { - emake PREFIX="/usr/share" || die "emake failed" -} - -src_install() { - dogamesbin njam - - dodoc CHANGES README TODO - - dohtml html/* - - insinto ${GAMES_DATADIR}/njam/data - doins data/* - - insinto ${GAMES_DATADIR}/njam/skins - doins skins/* - - prepgamesdirs -} diff --git a/games-arcade/njam/njam-1.00.ebuild b/games-arcade/njam/njam-1.00.ebuild deleted file mode 100644 index df3c352074ef..000000000000 --- a/games-arcade/njam/njam-1.00.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-arcade/njam/njam-1.00.ebuild,v 1.7 2004/06/24 22:09:24 agriffis Exp $ - -inherit eutils games - -MY_P="${P}-src" -S="${WORKDIR}/${MY_P}" -DESCRIPTION="Multi or single-player network Pacman-like game in SDL" -HOMEPAGE="http://njam.sourceforge.net/" -SRC_URI="mirror://sourceforge/njam/${MY_P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="x86 ppc ~amd64" -IUSE="" - -RDEPEND=">=media-libs/sdl-mixer-1.2.5 - >=media-libs/sdl-image-1.2.2 - >=media-libs/libsdl-1.2.5 - >=media-libs/sdl-net-1.2.4" -DEPEND="${RDEPEND} - >=sys-apps/sed-4" - -src_unpack() { - unpack ${A} - cd ${S} - - # store the conf file in the user's home directory. - epatch ${FILESDIR}/${P}-conf.patch - - sed -i \ - -e "s:\"data:\"${GAMES_DATADIR}/${PN}/data:" njam.cpp njamgame.cpp \ - || die "sed njam.cpp and njamgame.cpp failed" - sed -i \ - -e "s:\"hiscore.dat:\"${GAMES_STATEDIR}/${PN}/hiscore.dat:" \ - -e "s:\"skins:\"${GAMES_DATADIR}/${PN}/skins:" njam.cpp \ - || die "sed njam.cpp failed" - sed -i \ - -e "s:\"levels:\"${GAMES_DATADIR}/${PN}/levels:" njamedit.cpp \ - || die "sed njamedit.cpp failed" - sed -i \ - -e "s:\"log.txt:\"/dev/null:" njamutils.cpp \ - || die "sed njamutils.cpp failed" - sed -i \ - -e "s:-O3:${CFLAGS}:" Makefile \ - || die "sed Makefile failed" -} - -src_compile() { - emake PREFIX="/usr/share" || die "emake failed" -} - -src_install() { - dogamesbin njam || die "dogamesbin failed" - dodoc CHANGES README TODO - dohtml html/* - insinto ${GAMES_DATADIR}/njam/data - doins data/* || die "doins failed (data)" - insinto ${GAMES_DATADIR}/njam/skins - doins skins/* || die "doins failed (skins)" - insinto ${GAMES_DATADIR}/njam/levels - doins levels/* || die "doins failed (levels)" - dodir ${GAMES_STATEDIR}/${PN} - touch ${D}/${GAMES_STATEDIR}/${PN}/hiscore.dat - fperms 664 ${GAMES_STATEDIR}/${PN}/hiscore.dat - prepgamesdirs -} |