diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-09-10 19:29:22 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-09-10 19:29:22 +0000 |
commit | 2d06451b949706e2e14d1e9cdbdedf30613ca779 (patch) | |
tree | e4defbc5a7848f65ff263eb968fe9f97f4e1a5f1 /games-arcade/njam | |
parent | action games ! (diff) | |
download | historical-2d06451b949706e2e14d1e9cdbdedf30613ca779.tar.gz historical-2d06451b949706e2e14d1e9cdbdedf30613ca779.tar.bz2 historical-2d06451b949706e2e14d1e9cdbdedf30613ca779.zip |
arcade games !
Diffstat (limited to 'games-arcade/njam')
-rw-r--r-- | games-arcade/njam/ChangeLog | 10 | ||||
-rw-r--r-- | games-arcade/njam/Manifest | 5 | ||||
-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/njam-0.96.ebuild | 46 |
6 files changed, 271 insertions, 0 deletions
diff --git a/games-arcade/njam/ChangeLog b/games-arcade/njam/ChangeLog new file mode 100644 index 000000000000..5f1f6b7e121c --- /dev/null +++ b/games-arcade/njam/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-games/njam +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-arcade/njam/ChangeLog,v 1.1 2003/09/10 19:29:21 vapier Exp $ + +*njam-0.96 (29 Jul 2003) + + 29 Jul 2003; Michael Sterrett <msterret@gentoo.org> njam-0.96.ebuild, + files/0.96/njam.diff, files/0.96/njamgame.diff: + Initial commit. ebuild and diffs supplied by Rob Cakebread (bug 24841) + diff --git a/games-arcade/njam/Manifest b/games-arcade/njam/Manifest new file mode 100644 index 000000000000..d9764c931f93 --- /dev/null +++ b/games-arcade/njam/Manifest @@ -0,0 +1,5 @@ +MD5 cd9bb343d66a3e25ae8edd50bef223de files/0.96/njam.diff 7257 +MD5 136cbe591908936157d78aa9858ea054 files/0.96/njamgame.diff 980 +MD5 959b0cda2752af90309b81d91e8984fb files/digest-njam-0.96 66 +MD5 979429df9fdfb066bfc621819d676f2c ChangeLog 434 +MD5 cbbc90e18fa80202e5aa2c0e8f0e3210 njam-0.96.ebuild 984 diff --git a/games-arcade/njam/files/0.96/njam.diff b/games-arcade/njam/files/0.96/njam.diff new file mode 100644 index 000000000000..e19752d4b053 --- /dev/null +++ b/games-arcade/njam/files/0.96/njam.diff @@ -0,0 +1,182 @@ +--- 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 new file mode 100644 index 000000000000..a6902ff13783 --- /dev/null +++ b/games-arcade/njam/files/0.96/njamgame.diff @@ -0,0 +1,27 @@ +--- 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 new file mode 100644 index 000000000000..1c1fa240d96d --- /dev/null +++ b/games-arcade/njam/files/digest-njam-0.96 @@ -0,0 +1 @@ +MD5 9a22423b997c1e087f6235b9bbd67a91 njam-0.96-src.tar.gz 1479787 diff --git a/games-arcade/njam/njam-0.96.ebuild b/games-arcade/njam/njam-0.96.ebuild new file mode 100644 index 000000000000..ace9f4816891 --- /dev/null +++ b/games-arcade/njam/njam-0.96.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# 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.1 2003/09/10 19:29:21 vapier Exp $ + +inherit games eutils + +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" + +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 +} |