--- rrootage-0.23a.orig/debian/watch +++ rrootage-0.23a/debian/watch @@ -0,0 +1,7 @@ +# Watch control file for uscan +# See uscan(1) for format + +# Compulsory line, this is a version 3 file +version=3 + +http://sf.net/rrootage/rRootage-(.*)\.tar\.gz --- rrootage-0.23a.orig/debian/rrootage.6 +++ rrootage-0.23a/debian/rrootage.6 @@ -0,0 +1,125 @@ +.\" .ig +.\" rRootage manual page. +.\" +.\" Miriam Ruiz , 2005. +.\" Dafydd Harries , 2005. +.\" +.\" This next line loads the www macro package so that the .URL macro can be used. +.\" .. +.\" .mso www.tmac +.TH "rRootage" "6" "22 January 2005" "rRootage" "Games" +.SH "NAME" +. +rRootage \- an abstract arcade shooter +. +.SH "SYNOPSIS" +. +.B rrootage +[\\-lowres|\\-mediumres|\\-highres] +[\-nosound] +[\-window] +[\-reverse] +[\-nowait] +[\-accframe] +. +.SH "DESCRIPTION" +. +rRootage is an arcade style shooting game. Avoid the barrage of bullets while +using your laser to destroy the enemy's battle ship. +. +.SH "USAGE" +. +You can play the game with a keyboard or a joystick. On the keyboard the +following keys are used: +.P + \- Movement Arrow keys + \- Fire Z + \- Special X + \- Pause P + \- Leave Game Escape +.P +In the initial screen, use X to choose the mode, and Z to select a level. +.P +The game has the following modes: +. +.SS Normal Mode +. +This is the standard game mode. Your ship slows down while your laser is being +fired. The special key releases a bomb, which destroys enemy bullets. The +number of bombs you have is displayed in the bottom\-right corner. +. +.SS PSY Mode +. +When bullets graze your ship the graze meter, which is displayed in the +bottom\-right corner, increases. When the meter becomes full, your ship is +temporarily invincible. The special key increases the range within which +bullets graze your ship, but also slows your ship down. +. +.SS IKA Mode +. +Your ship has two modes, white and black, and the enemy bullets come in white +and black varieties. You can absorb bullets with the same colour as the mode +of your ship, and they will be converted into lasers. The special key switches +between white and black mode. +. +.SS GW Mode +. +Your ship has a bullet reflector, which you activate using the special key. +However, you can only use it while the reflector meter, shown in the bottom +right corner, displays "OK". +. +.SH "OPTIONS" +. +These command line options are available: +.TP +.B \-lowres +Low resolution mode. +.TP +.B \-mediumres +Medium resolution mode (default). +.TP +.B \-highres +High resolution mode. +.TP +.B \-nosound +Disable sound. +.TP +.B \-window +Launch the game in a window, rather than fullscreen. +.TP +.B \-fullscreen +Launch the game in fullscreen mode. +.TP +.B \-reverse +Reverse the fire key and the special key. +.TP +.B \-nowait +When there are a large number of bullets on the screen, the game is slowed +down. This option prevents this slowdown so that the game speed is constant. +.TP +.B \-accframe +Use the alternative frame rate management algorithm. (If you have a problem +with the frame rate, try this option.) +. +.SH "FILES" +. +.TP +.I ~/.rr.prf +This is where rRootage records which levels you have completed in which modes. +.SH "AUTHOR" +rRootage was written by Kenta Cho, and ported to Linux by Evil Mr Henry. +.P +This manual page was written for Debian by Miriam Ruiz +and Dafydd Harries . +. +.SH "SEE ALSO" +. +.ig +This is rather hacky \-\- the turn off line adjustment temporarily using .na/.ad +since lines with very long words (like URLs) look ugly. +.. +.na +.URL "http://www.asahi\-net.or.jp/~cs8k\-cyu/windows/rr_e.html" "The rRootage homepage" "" +.P +.URL "http://rrootage.sourceforge.net" "The homepage of the Linux port" "" +.ad --- rrootage-0.23a.orig/debian/compat +++ rrootage-0.23a/debian/compat @@ -0,0 +1 @@ +4 --- rrootage-0.23a.orig/debian/rrootage.xpm +++ rrootage-0.23a/debian/rrootage.xpm @@ -0,0 +1,34 @@ +/* XPM */ +static char *rrootage[]={ +"16 16 15 1", +". c #000000", +"m c #111111", +"f c #222222", +"l c #333333", +"e c #444444", +"k c #555555", +"a c #666666", +"d c #777777", +"g c #888888", +"i c #999999", +"# c #bbbbbb", +"c c #cccccc", +"j c #dddddd", +"h c #eeeeee", +"b c #ffffff", +"................", +"................", +"................", +"................", +"................", +"................", +".......#####a...", +".......bbc#bbd..", +".edafd.bbe.gb#..", +".dbhhb.bbe.ibi..", +".dbjke.bbccbhl..", +".db#...bbchba...", +".db#...bbeabhf..", +".db#...bbe.ibcm.", +".db#...bbe.mcbi.", +"................"}; --- rrootage-0.23a.orig/debian/rules +++ rrootage-0.23a/debian/rules @@ -0,0 +1,83 @@ +#!/usr/bin/make -f + +#export DH_VERBOSE=1 + +CFLAGS = -DLINUX -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +build: build-stamp + +build-stamp: + dh_testdir + + $(MAKE) -f /usr/share/quilt/quilt.make patch + + #test -e src/bulletml && $(MAKE) -C src/bulletml MORE_CFLAGS="$(CFLAGS)" + $(MAKE) -C src -f makefile.lin MORE_CFLAGS="$(CFLAGS)" + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f *-stamp + + #test -e src/bulletml && $(MAKE) -C src/bulletml clean + #test -e src/bulletml/tinyxml && $(MAKE) -C src/bulletml/tinyxml clean + $(MAKE) -C src -f makefile.lin clean + + $(MAKE) -f /usr/share/quilt/quilt.make unpatch + + dh_clean + +install-indep: + dh_installdirs -i usr/share/games/rrootage + cp -r rr_share/* debian/rrootage-data/usr/share/games/rrootage + +install-arch: build + dh_testdir + dh_testroot + dh_install -a src/rrootage usr/games + dh_install -a debian/rrootage.xpm usr/share/pixmaps + dh_install -a debian/rrootage.desktop usr/share/applications + +install: install-arch install-indep + +binary-indep: install-indep + dh_testdir + dh_testroot + dh_installchangelogs -i + dh_installdocs -i + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +binary-arch: install-arch + dh_testdir + dh_testroot + dh_installmenu -a + dh_installman -a debian/rrootage.6 + dh_link -a usr/share/doc/rrootage-data usr/share/doc/rrootage + dh_desktop -prrootage + dh_strip -a + dh_compress -a + dh_fixperms -a + dh_installdeb -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-indep binary-arch + +.PHONY: build clean install-indep install-arch install binary-indep \ + binary-arch binary + --- rrootage-0.23a.orig/debian/patches/03_texture_filename.patch +++ rrootage-0.23a/debian/patches/03_texture_filename.patch @@ -0,0 +1,27 @@ +# Copyright (C) 2005 Miriam Ruiz +# Copyright (C) 2005 Dafydd Harries +# Distributed under the same license as the game. See debian/copyright. + +Index: rrootage-0.23a/src/screen.c +=================================================================== +--- rrootage-0.23a.orig/src/screen.c 2007-08-29 19:50:13.000000000 +0000 ++++ rrootage-0.23a/src/screen.c 2007-08-29 19:55:06.000000000 +0000 +@@ -73,10 +73,14 @@ + void loadGLTexture(char *fileName, GLuint *texture) { + SDL_Surface *surface; + +- char name[32]; +- strcpy(name, SHARE_LOC); +- strcat(name, "images/"); +- strcat(name, fileName); ++ char name[256]; ++ ++ if (snprintf(name, 256, "%s%s%s", SHARE_LOC, "images/", fileName) >= 256) { ++ fprintf(stderr, "Texture filename too long: %s\n", fileName); ++ SDL_Quit(); ++ exit(1); ++ } ++ + surface = SDL_LoadBMP(name); + if ( !surface ) { + fprintf(stderr, "Unable to load texture: %s\n", SDL_GetError()); --- rrootage-0.23a.orig/debian/patches/01_makefile.patch +++ rrootage-0.23a/debian/patches/01_makefile.patch @@ -0,0 +1,22 @@ +# Copyright (C) 2005 Miriam Ruiz +# Copyright (C) 2005 Dafydd Harries +# Distributed under the same license as the game. See debian/copyright. + +Index: rrootage-0.23a/src/makefile.lin +=================================================================== +--- rrootage-0.23a.orig/src/makefile.lin 2007-08-29 19:48:32.000000000 +0000 ++++ rrootage-0.23a/src/makefile.lin 2007-08-29 19:55:02.000000000 +0000 +@@ -7,10 +7,11 @@ + CC = gcc + CXX = g++ + +-PROG = $(NAME) ++PROG = rrootage + + DEFAULT_CFLAGS = `sdl-config --cflags` +-LDFLAGS = `sdl-config --libs` -L. -lglut -lbulletml -lSDL_mixer -mwindows -lstdc++ ++#LDFLAGS = `sdl-config --libs` -L. -lglut -lbulletml -lSDL_mixer -mwindows -lstdc++ ++LDFLAGS = `sdl-config --libs` -L. -lglut bulletml/libbulletml.a -lSDL_mixer -lstdc++ + #-lglu32 -lopengl32 -lmingw32 -lmingwex + MORE_CFLAGS = -DLINUX -O3 -Wall + --- rrootage-0.23a.orig/debian/patches/09_rrootage_make_highres_default.patch +++ rrootage-0.23a/debian/patches/09_rrootage_make_highres_default.patch @@ -0,0 +1,13 @@ +Index: rrootage-0.23a/src/screen.c +=================================================================== +--- rrootage-0.23a.orig/src/screen.c 2007-08-29 19:50:14.000000000 +0000 ++++ rrootage-0.23a/src/screen.c 2007-08-29 19:50:14.000000000 +0000 +@@ -128,7 +128,7 @@ + static GLuint titleTexture; + #define TITLE_BMP "title.bmp" + +-int resolution = MEDIUM_RESOLUTION; ++int resolution = HIGH_RESOLUTION; + int windowMode = 0; + int brightness = DEFAULT_BRIGHTNESS; + Uint8 *keys; --- rrootage-0.23a.orig/debian/patches/series +++ rrootage-0.23a/debian/patches/series @@ -0,0 +1,9 @@ +01_makefile.patch +02_data_dir.patch +03_texture_filename.patch +04_home.patch +05_gcc.patch +06_rrootage_highres.patch +07_use_system_bulletml.patch +08_windowed_mode.patch +#09_rrootage_make_highres_default.patch --- rrootage-0.23a.orig/debian/patches/04_home.patch +++ rrootage-0.23a/debian/patches/04_home.patch @@ -0,0 +1,39 @@ +# Copyright (C) 2005 Miriam Ruiz +# Copyright (C) 2005 Dafydd Harries +# Distributed under the same license as the game. See debian/copyright. + +Index: rrootage-0.23a/src/attractmanager.c +=================================================================== +--- rrootage-0.23a.orig/src/attractmanager.c 2007-08-29 19:48:31.000000000 +0000 ++++ rrootage-0.23a/src/attractmanager.c 2007-08-29 19:50:13.000000000 +0000 +@@ -64,9 +64,14 @@ + int i, j; + int version; + char *tmpname; +- char name[128]; ++ char name[256]; + + tmpname = getenv("HOME"); ++ if (strlen(tmpname) + strlen(PREF_FILE) >= 255) { ++ fprintf(stderr,"Preferences filename is too long.\n"); ++ initHiScore(); ++ return; ++ } + strcpy(name, tmpname); + strcat(name, PREF_FILE); + +@@ -95,9 +100,13 @@ + FILE *fp; + int i, j; + char *tmpname; +- char name[128]; ++ char name[256]; + + tmpname = getenv("HOME"); ++ if (strlen(tmpname) + strlen(PREF_FILE) >= 255) { ++ fprintf(stderr,"Preferences filename is too long.\n"); ++ return; ++ } + strcpy(name, tmpname); + strcat(name, PREF_FILE); + --- rrootage-0.23a.orig/debian/patches/05_gcc.patch +++ rrootage-0.23a/debian/patches/05_gcc.patch @@ -0,0 +1,22 @@ +# Patch to make the program properly compile against gcc 4.1 +# See http://bugs.debian.org/357404 + +Index: rrootage-0.23a/src/foecommand.h +=================================================================== +--- rrootage-0.23a.orig/src/foecommand.h 2007-08-29 19:48:31.000000000 +0000 ++++ rrootage-0.23a/src/foecommand.h 2007-08-29 19:50:14.000000000 +0000 +@@ -39,10 +39,10 @@ + + virtual void doChangeDirection(double d); + virtual void doChangeSpeed(double s); +- virtual void FoeCommand::doAccelX(double ax); +- virtual void FoeCommand::doAccelY(double ay); +- virtual double FoeCommand::getBulletSpeedX(); +- virtual double FoeCommand::getBulletSpeedY(); ++ virtual void doAccelX(double ax); ++ virtual void doAccelY(double ay); ++ virtual double getBulletSpeedX(); ++ virtual double getBulletSpeedY(); + + private: + struct foe *foe; --- rrootage-0.23a.orig/debian/patches/08_windowed_mode.patch +++ rrootage-0.23a/debian/patches/08_windowed_mode.patch @@ -0,0 +1,35 @@ +Index: rrootage-0.23a/src/rr.c +=================================================================== +--- rrootage-0.23a.orig/src/rr.c 2007-08-29 21:01:36.000000000 +0000 ++++ rrootage-0.23a/src/rr.c 2007-08-29 21:02:30.000000000 +0000 +@@ -195,7 +195,7 @@ + static int accframe = 0; + + static void usage(char *argv0) { +- fprintf(stderr, "Usage: %s [-lowres|-mediumres|-highres] [-nosound] [-window] [-reverse] [-nowait] [-accframe]\n", argv0); ++ fprintf(stderr, "Usage: %s [-lowres|-mediumres|-highres] [-nosound] [-window] [-fullscreen] [-reverse] [-nowait] [-accframe]\n", argv0); + } + + static void parseArgs(int argc, char *argv[]) { +@@ -211,6 +211,8 @@ + noSound = 1; + } else if ( strcmp(argv[i], "-window") == 0 ) { + windowMode = 1; ++ } else if ( strcmp(argv[i], "-fullscreen") == 0 ) { ++ windowMode = 0; + } else if ( strcmp(argv[i], "-reverse") == 0 ) { + buttonReversed = 1; + } +Index: rrootage-0.23a/src/screen.c +=================================================================== +--- rrootage-0.23a.orig/src/screen.c 2007-08-29 21:01:43.000000000 +0000 ++++ rrootage-0.23a/src/screen.c 2007-08-29 21:02:41.000000000 +0000 +@@ -129,7 +129,7 @@ + #define TITLE_BMP "title.bmp" + + int resolution = MEDIUM_RESOLUTION; +-int windowMode = 0; ++int windowMode = 1; + int brightness = DEFAULT_BRIGHTNESS; + Uint8 *keys; + SDL_Joystick *stick = NULL; --- rrootage-0.23a.orig/debian/patches/07_use_system_bulletml.patch +++ rrootage-0.23a/debian/patches/07_use_system_bulletml.patch @@ -0,0 +1,99 @@ +# Copyright (C) 2007 Miriam Ruiz +# Distributed under the same license as the game. See debian/copyright. + +Index: rrootage-0.23a/src/makefile.lin +=================================================================== +--- rrootage-0.23a.orig/src/makefile.lin 2007-08-29 20:13:42.000000000 +0000 ++++ rrootage-0.23a/src/makefile.lin 2007-08-29 20:16:12.000000000 +0000 +@@ -11,12 +11,12 @@ + + DEFAULT_CFLAGS = `sdl-config --cflags` + #LDFLAGS = `sdl-config --libs` -L. -lglut -lbulletml -lSDL_mixer -mwindows -lstdc++ +-LDFLAGS = `sdl-config --libs` -L. -lglut bulletml/libbulletml.a -lSDL_mixer -lstdc++ ++LDFLAGS = `sdl-config --libs` -L. -lglut -lbulletml -lSDL_mixer -lstdc++ + #-lglu32 -lopengl32 -lmingw32 -lmingwex +-MORE_CFLAGS = -DLINUX -O3 -Wall ++MORE_CFLAGS = -O2 -Wall + +-CFLAGS = $(DEFAULT_CFLAGS) $(MORE_CFLAGS) +-CPPFLAGS = $(DEFAULT_CFLAGS) $(MORE_CFLAGS) -I./bulletml/ ++CFLAGS = $(DEFAULT_CFLAGS) $(MORE_CFLAGS) -DLINUX ++CPPFLAGS = $(DEFAULT_CFLAGS) $(MORE_CFLAGS) -DLINUX + + OBJS = $(NAME).$(O) \ + foe.$(O) foecommand.$(O) barragemanager.$(O) boss.$(O) ship.$(O) laser.$(O) \ +@@ -31,5 +31,6 @@ + + #$(NAME)_res.o: $(NAME).rc + # windres -i $(NAME).rc -o $(NAME)_res.o ++ + clean: + $(RM) $(PROG) *.$(O) +Index: rrootage-0.23a/src/barragemanager.h +=================================================================== +--- rrootage-0.23a.orig/src/barragemanager.h 2007-08-29 20:14:22.000000000 +0000 ++++ rrootage-0.23a/src/barragemanager.h 2007-08-29 20:15:35.000000000 +0000 +@@ -12,9 +12,9 @@ + #ifndef BARRAGEMANAGER_H_ + #define BARRAGEMANAGER_H_ + +-#include "bulletml/bulletmlparser.h" +-#include "bulletml/bulletmlparser-tinyxml.h" +-#include "bulletml/bulletmlrunner.h" ++#include ++#include ++#include + + typedef struct { + BulletMLParser *bulletml; +Index: rrootage-0.23a/src/foe.h +=================================================================== +--- rrootage-0.23a.orig/src/foe.h 2007-08-29 20:14:53.000000000 +0000 ++++ rrootage-0.23a/src/foe.h 2007-08-29 20:16:05.000000000 +0000 +@@ -17,9 +17,9 @@ + #include "foe_mtd.h" + } + +-#include "bulletml/bulletmlparser.h" +-#include "bulletml/bulletmlparser-tinyxml.h" +-#include "bulletml/bulletmlrunner.h" ++#include ++#include ++#include + #include "foecommand.h" + #include "barragemanager.h" + #include "boss.h" +Index: rrootage-0.23a/src/foecommand.cc +=================================================================== +--- rrootage-0.23a.orig/src/foecommand.cc 2007-08-29 20:14:28.000000000 +0000 ++++ rrootage-0.23a/src/foecommand.cc 2007-08-29 20:15:44.000000000 +0000 +@@ -9,9 +9,9 @@ + * + * @version $Revision: 1.2 $ + */ +-#include "bulletml/bulletmlparser.h" +-#include "bulletml/bulletmlparser-tinyxml.h" +-#include "bulletml/bulletmlrunner.h" ++#include ++#include ++#include + #include "foe.h" + + extern "C" { +Index: rrootage-0.23a/src/foecommand.h +=================================================================== +--- rrootage-0.23a.orig/src/foecommand.h 2007-08-29 20:14:34.000000000 +0000 ++++ rrootage-0.23a/src/foecommand.h 2007-08-29 20:15:54.000000000 +0000 +@@ -12,9 +12,9 @@ + #ifndef FOECOMMAND_H_ + #define FOECOMMAND_H_ + +-#include "bulletml/bulletmlparser.h" +-#include "bulletml/bulletmlparser-tinyxml.h" +-#include "bulletml/bulletmlrunner.h" ++#include ++#include ++#include + #include "foe.h" + + #define COMMAND_SCREEN_SPD_RATE 512 --- rrootage-0.23a.orig/debian/patches/06_rrootage_highres.patch +++ rrootage-0.23a/debian/patches/06_rrootage_highres.patch @@ -0,0 +1,145 @@ +Index: rrootage-0.23a/src/rr.c +=================================================================== +--- rrootage-0.23a.orig/src/rr.c 2007-08-29 19:48:31.000000000 +0000 ++++ rrootage-0.23a/src/rr.c 2007-08-29 19:50:14.000000000 +0000 +@@ -195,14 +195,18 @@ + static int accframe = 0; + + static void usage(char *argv0) { +- fprintf(stderr, "Usage: %s [-lowres] [-nosound] [-window] [-reverse] [-nowait] [-accframe]\n", argv0); ++ fprintf(stderr, "Usage: %s [-lowres|-mediumres|-highres] [-nosound] [-window] [-reverse] [-nowait] [-accframe]\n", argv0); + } + + static void parseArgs(int argc, char *argv[]) { + int i; + for ( i=1 ; i screenHeight * SCREEN_WIDTH ) { ++ viewWidth = screenHeight * SCREEN_WIDTH / SCREEN_HEIGHT; ++ viewHeight = screenHeight; ++ } else if ( screenWidth * SCREEN_HEIGHT < screenHeight * SCREEN_WIDTH ) { ++ viewWidth = screenWidth; ++ viewHeight = screenWidth * SCREEN_HEIGHT / SCREEN_WIDTH; ++ } else { ++ viewWidth = screenWidth; ++ viewHeight = screenHeight; ++ } ++ ++ glViewport((screenWidth - viewWidth) / 2, screenHeight - viewHeight, viewWidth, viewHeight); + glMatrixMode(GL_PROJECTION); + glLoadIdentity(); +- gluPerspective(45.0f, (GLfloat)screenWidth/(GLfloat)screenHeight, 0.1f, FAR_PLANE); ++ gluPerspective(45.0f, (GLfloat)viewWidth/(GLfloat)viewHeight, 0.1f, FAR_PLANE); + glMatrixMode(GL_MODELVIEW); + } + + void resized(int width, int height) { + screenWidth = width; screenHeight = height; ++ if ( SDL_SetVideoMode(width, height, 0, videoFlags) == NULL ) { ++ fprintf(stderr, "Unable to create OpenGL screen: %s\n", SDL_GetError()); ++ SDL_Quit(); ++ exit(2); ++ } + screenResized(); + } + +@@ -110,7 +128,7 @@ + static GLuint titleTexture; + #define TITLE_BMP "title.bmp" + +-int lowres = 0; ++int resolution = MEDIUM_RESOLUTION; + int windowMode = 0; + int brightness = DEFAULT_BRIGHTNESS; + Uint8 *keys; +@@ -118,11 +136,13 @@ + int joystickMode = 1; + + void initSDL() { +- Uint32 videoFlags; +- +- if ( lowres ) { ++ if ( resolution == LOW_RESOLUTION ) { + screenWidth = LOWRES_SCREEN_WIDTH; + screenHeight = LOWRES_SCREEN_HEIGHT; ++ } else if ( resolution == HIGH_RESOLUTION ) { ++ /* SDL will pick the desktop resolution, which should be the highest possible */ ++ screenWidth = 0; ++ screenHeight = 0; + } else { + screenWidth = SCREEN_WIDTH; + screenHeight = SCREEN_HEIGHT; +@@ -144,11 +164,14 @@ + } else { + videoFlags = SDL_OPENGL | SDL_FULLSCREEN; + } +- if ( SDL_SetVideoMode(screenWidth, screenHeight, 0, videoFlags) == NULL ) { ++ SDL_Surface * screen = SDL_SetVideoMode(screenWidth, screenHeight, 0, videoFlags); ++ if ( screen == NULL ) { + fprintf(stderr, "Unable to create OpenGL screen: %s\n", SDL_GetError()); + SDL_Quit(); + exit(2); + } ++ screenWidth = screen->w; ++ screenHeight = screen->h; + + if (joystickMode == 1) { + stick = SDL_JoystickOpen(0); +Index: rrootage-0.23a/src/screen.h +=================================================================== +--- rrootage-0.23a.orig/src/screen.h 2007-08-29 19:48:31.000000000 +0000 ++++ rrootage-0.23a/src/screen.h 2007-08-29 19:50:14.000000000 +0000 +@@ -23,13 +23,17 @@ + + #define DEFAULT_BRIGHTNESS 224 + ++#define MEDIUM_RESOLUTION 0 ++#define LOW_RESOLUTION 1 ++#define HIGH_RESOLUTION 2 ++ + extern float eyeX, eyeY, eyeZ; + extern float pitch, roll; + extern float zoom; + extern Uint8 *keys; + extern SDL_Joystick *stick; + extern int buttonReversed; +-extern int lowres; ++extern int resolution; + extern int windowMode; + extern int brightness; + --- rrootage-0.23a.orig/debian/patches/02_data_dir.patch +++ rrootage-0.23a/debian/patches/02_data_dir.patch @@ -0,0 +1,43 @@ +# Copyright (C) 2005 Miriam Ruiz +# Copyright (C) 2005 Dafydd Harries +# Distributed under the same license as the game. See debian/copyright. + +Index: rrootage-0.23a/src/barragemanager.cc +=================================================================== +--- rrootage-0.23a.orig/src/barragemanager.cc 2007-08-29 19:48:32.000000000 +0000 ++++ rrootage-0.23a/src/barragemanager.cc 2007-08-29 19:50:13.000000000 +0000 +@@ -22,7 +22,7 @@ + Barrage barragePattern[BARRAGE_TYPE_NUM][BARRAGE_PATTERN_MAX]; + int barragePatternNum[BARRAGE_TYPE_NUM]; + +-#define SHARE_LOC "/usr/share/games/rRootage/" ++#define SHARE_LOC "/usr/share/games/rrootage/" + //static const char *BARRAGE_DIR_NAME[BARRAGE_TYPE_NUM] = { + // "normal", "/usr/share/rRootage/reversible", "/usr/share/rRootage/morph", //"/usr/share/rRootage/simple", "/usr/share/rRootage/morph_heavy", //"/usr/share/rRootage/psy", + //}; +Index: rrootage-0.23a/src/screen.c +=================================================================== +--- rrootage-0.23a.orig/src/screen.c 2007-08-29 19:48:32.000000000 +0000 ++++ rrootage-0.23a/src/screen.c 2007-08-29 19:55:11.000000000 +0000 +@@ -31,7 +31,7 @@ + #define SCREEN_HEIGHT 480 + #define LOWRES_SCREEN_WIDTH 320 + #define LOWRES_SCREEN_HEIGHT 240 +-#define SHARE_LOC "/usr/share/games/rRootage/" ++#define SHARE_LOC "/usr/share/games/rrootage/" + + static int screenWidth, screenHeight; + +Index: rrootage-0.23a/src/soundmanager.c +=================================================================== +--- rrootage-0.23a.orig/src/soundmanager.c 2007-08-29 19:48:32.000000000 +0000 ++++ rrootage-0.23a/src/soundmanager.c 2007-08-29 19:50:13.000000000 +0000 +@@ -21,7 +21,7 @@ + static int useAudio = 0; + + #define MUSIC_NUM 3 +-#define SHARE_LOC "/usr/share/games/rRootage/" ++#define SHARE_LOC "/usr/share/games/rrootage/" + + static char *musicFileName[MUSIC_NUM] = { + "stg_a.ogg", "stg_b.ogg", "stg_c.ogg", --- rrootage-0.23a.orig/debian/changelog +++ rrootage-0.23a/debian/changelog @@ -0,0 +1,56 @@ +rrootage (0.23a-6) unstable; urgency=low + + [Miriam Ruiz] + * Handle patches with quilt. + * Updated menu. + * Added patches for high resolution. + * Use external libbulletml library. Added build dependency: libbulletml-dev + * Start in windowed mode. + + -- Miriam Ruiz Wed, 29 Aug 2007 21:37:59 +0200 + +rrootage (0.23a-5) unstable; urgency=low + + * Build-depend on freglut3-dev rather than libglut2-dev. Closes: #394502. + * Bump standards version. + * Use ${source:Version} rather than ${Source-Version} in dependency on -data + package for binNMUability. + + -- Dafydd Harries Sat, 28 Oct 2006 16:26:08 +0100 + +rrootage (0.23a-4) unstable; urgency=low + + * Add patch from Martin Michlmayr to allow compilatoin with G++ 4.1. + Closes: #357404. + * Update my email address. + + -- Dafydd Harries Sun, 26 Mar 2006 20:04:38 +0100 + +rrootage (0.23a-3) unstable; urgency=low + + * Removed circular dependency between rrootage and rrootage-data. + Closes: #339887. + * Upgraded standards version to 3.6.2 + * Modified watch file. + * Added .desktop file (thanks to Stephan Hermann ). + Closes: #348026. + * Changed Maintainer field to Debian Games Team. + + -- Miriam Ruiz Sat, 17 Dec 2005 13:00:33 +0100 + +rrootage (0.23a-2) unstable; urgency=low + + * Execute debhelper on arch-specific packages only in the binary-arch + target. Closes: #303205. + + -- Miriam Ruiz Wed, 7 Apr 2005 02:21:00 +0100 + +rrootage (0.23a-1) unstable; urgency=low + + * Initial package. + * This resolves the ITP bug. Closes: #259062. + * Modified src/screen.c to prevent a buffer overflow when loading textures. + * Modified src/attractmanager.c to prevent a buffer overflow when handling + the preferences file. + + -- Dafydd Harries Tue, 25 Jan 2005 05:05:31 +0000 --- rrootage-0.23a.orig/debian/control +++ rrootage-0.23a/debian/control @@ -0,0 +1,26 @@ +Source: rrootage +Section: games +Priority: optional +Maintainer: Debian Games Team +Uploaders: Miriam Ruiz , Dafydd Harries +Build-Depends: debhelper (>= 4.0.0), quilt, libsdl1.2-dev, libsdl-mixer1.2-dev, + freeglut3-dev, libbulletml-dev +Standards-Version: 3.7.2 + +Package: rrootage +Architecture: any +Depends: ${shlibs:Depends}, rrootage-data (= ${source:Version}) +Description: arcade-style space shooting game + rRootage is an arcade-style vertical shooting game, with music to match. + Avoid the barrage of bullets and destroy the enemy's battle ship with your + laser. rRootage has 40 levels, each playable in four different modes. + . + rRootage was created by Kenta Cho. + . + Homepage: http://www.asahi-net.or.jp/~cs8k-cyu/windows/rr_e.html + Port homepage: http://rrootage.sourceforge.net/ + +Package: rrootage-data +Architecture: all +Description: space shooting game - data files + This package contains data files for the rRootage game. --- rrootage-0.23a.orig/debian/rrootage.desktop +++ rrootage-0.23a/debian/rrootage.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Encoding=UTF-8 +Name=rrootage +GenericName= +Comment= +Icon=rrootage.xpm +Exec=/usr/games/rrootage +Terminal=false +Categories=Game;ArcadeGame; --- rrootage-0.23a.orig/debian/copyright +++ rrootage-0.23a/debian/copyright @@ -0,0 +1,33 @@ +This package was debianized by Miriam Ruiz on +Sat, 22 Jan 2005 21:30:00 +0100. + +It was downloaded from http://rrootage.sourceforge.net/. + +Copyright: Kenta Cho, 2003. + +Authors: Kenta Cho + "Evil Mr. Henry" + +License: + +Redistribution and use in source and binary forms, +with or without modification, are permitted provided that +the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, +INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --- rrootage-0.23a.orig/debian/menu +++ rrootage-0.23a/debian/menu @@ -0,0 +1,3 @@ +?package(rrootage):needs="X11" section="Games/Action"\ + title="rrootage" command="/usr/games/rrootage" \ + icon="/usr/share/pixmaps/rrootage.xpm" --- rrootage-0.23a.orig/debian/rrootage-data.docs +++ rrootage-0.23a/debian/rrootage-data.docs @@ -0,0 +1,3 @@ +readme.txt +readme_e.txt +readme_linux