--- noiz2sa-0.51a.orig/src/Makefile +++ noiz2sa-0.51a/src/Makefile @@ -7,26 +7,27 @@ CC = gcc CXX = g++ -PROG = $(NAME).exe +PROG = $(NAME) DEFAULT_CFLAGS = `sdl-config --cflags` -LDFLAGS = `sdl-config --libs` -L. -lmingw32 -lmingwex -lSDL_mixer -lbulletml -mwindows -lstdc++ +LDFLAGS = `sdl-config --libs` -lSDL_mixer -Lbulletml \ + -lbulletml -lstdc++ -lm -MORE_CFLAGS = -O3 +MORE_CFLAGS ?= -O3 CFLAGS = $(DEFAULT_CFLAGS) $(MORE_CFLAGS) -CPPFLAGS = $(DEFAULT_CFLAGS) $(MORE_CFLAGS) -I./bulletml/ +CPPFLAGS = $(DEFAULT_CFLAGS) $(MORE_CFLAGS) -I/usr/include OBJS = $(NAME).$(O) ship.$(O) shot.$(O) frag.$(O) bonus.$(O) \ foe.$(O) foecommand.$(O) barragemanager.$(O) attractmanager.$(O) \ background.$(O) letterrender.$(O) \ screen.$(O) clrtbl.$(O) vector.$(O) degutil.$(O) rand.$(O) soundmanager.$(O) \ - $(NAME)_res.$(O) +# $(NAME)_res.$(O) $(PROG): $(OBJS) $(CC) $(CFLAGS) -o $(PROG) $(OBJS) $(LDFLAGS) -$(NAME)_res.o: $(NAME).rc - windres -i $(NAME).rc -o $(NAME)_res.o +#$(NAME)_res.o: $(NAME).rc +# windres -i $(NAME).rc -o $(NAME)_res.o clean: $(RM) $(PROG) *.$(O) --- noiz2sa-0.51a.orig/src/foecommand.h +++ noiz2sa-0.51a/src/foecommand.h @@ -36,10 +36,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; --- noiz2sa-0.51a.orig/src/bulletml/Makefile +++ noiz2sa-0.51a/src/bulletml/Makefile @@ -1,10 +1,10 @@ CC = g++ -INCLUDES = -I. +INCLUDES = -I/usr/include LIBS = tinyxml/tinyxml.o tinyxml/tinyxmlparser.o tinyxml/tinyxmlerror.o #CXXFLAGS = -g -W -Wall -ansi -pedantic #CXXFLAGS = -pg -g -W -Wall -ansi -pedantic -CXXFLAGS = -O2 -W -Wall -ansi -pedantic -CFLAGS = -O2 +CXXFLAGS ?= -O2 -g -Wall +CFLAGS ?= -O2 OBJS = bulletmlparser-tinyxml.o bulletmlparser.o bulletmltree.o calc.o formula-variables.o bulletmlrunner.o bulletmlrunnerimpl.o all: libbulletml.a --- noiz2sa-0.51a.orig/src/bulletml/bulletmlcommon.h +++ noiz2sa-0.51a/src/bulletml/bulletmlcommon.h @@ -1,11 +1,13 @@ #ifndef bulletmlcommon_h_ #define bulletmlcommon_h_ +#ifndef DECLSPEC #ifdef WIN32_DLL_EXPORT # define DECLSPEC __declspec(dllexport) #else # define DECLSPEC #endif +#endif #endif // ! bulletmlcommon_h_ --- noiz2sa-0.51a.orig/src/bulletml/calc.yy +++ noiz2sa-0.51a/src/bulletml/calc.yy @@ -11,12 +11,13 @@ #include #include +#include #include "calc.h" #include "formula.h" #include "formula-variables.h" -int yyerror(char* s); +int yyerror(const char* s); int yylex(); const char* yyinStr; @@ -148,7 +149,7 @@ return c; } -int yyerror(char* s) { +int yyerror(const char* s) { printf("yyerror: %s\n", s); return 0; } --- noiz2sa-0.51a.orig/src/bulletml/tinyxml/Makefile +++ noiz2sa-0.51a/src/bulletml/tinyxml/Makefile @@ -21,8 +21,8 @@ AR := ar rc RANLIB := ranlib -DEBUG_CFLAGS := -Wall -Wno-unknown-pragmas -Wno-format -g -DDEBUG -RELEASE_CFLAGS := -Wall -Wno-unknown-pragmas -Wno-format -O2 +DEBUG_CFLAGS ?= -Wall -Wno-unknown-pragmas -Wno-format -g -DDEBUG +RELEASE_CFLAGS ?= -Wall -Wno-unknown-pragmas -Wno-format -O2 LIBS := --- noiz2sa-0.51a.orig/src/bulletml/tinyxml/tinyxmlparser.cpp +++ noiz2sa-0.51a/src/bulletml/tinyxml/tinyxmlparser.cpp @@ -24,6 +24,7 @@ #include "tinyxml.h" #include +#include const char* TiXmlBase::SkipWhiteSpace( const char* p ) { --- noiz2sa-0.51a.orig/src/bulletml/tinyxml/tinyxml.h +++ noiz2sa-0.51a/src/bulletml/tinyxml/tinyxml.h @@ -25,6 +25,7 @@ #ifndef TINYXML_INCLUDED #define TINYXML_INCLUDED +#include #include #include #include --- noiz2sa-0.51a.orig/src/bulletml/tinyxml/tinyxml.cpp +++ noiz2sa-0.51a/src/bulletml/tinyxml/tinyxml.cpp @@ -22,6 +22,7 @@ */ #include "tinyxml.h" +#include TiXmlNode::TiXmlNode( NodeType _type ) --- noiz2sa-0.51a.orig/debian/watch +++ noiz2sa-0.51a/debian/watch @@ -0,0 +1,6 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# Site Directory Pattern Version Script +version=2 +http://sf.net/noiz2sa noiz2sa-([0-9].*)\.tar\.gz --- noiz2sa-0.51a.orig/debian/noiz2sa-data.docs +++ noiz2sa-0.51a/debian/noiz2sa-data.docs @@ -0,0 +1,3 @@ +readme.txt +readme_e.txt +readme_linux --- noiz2sa-0.51a.orig/debian/control +++ noiz2sa-0.51a/debian/control @@ -0,0 +1,20 @@ +Source: noiz2sa +Section: games +Priority: optional +Maintainer: Robert Lemmen +Build-Depends: debhelper (>= 4.0.0), libsdl1.2-dev, libsdl-mixer1.2-dev, libboost-dev, bison +Standards-Version: 3.9.2.0 + +Package: noiz2sa +Architecture: any +Depends: ${shlibs:Depends}, noiz2sa-data (= ${source:Version}) +Description: abstract arcade shooter + A classical vertical arcade shooter with an abstract theme and + matching electronic music + +Package: noiz2sa-data +Architecture: all +Depends: +Description: abstract arcade shooter, data files + This package contains sounds and other data files for noiz2sa, an abstract + arcade shooter. --- noiz2sa-0.51a.orig/debian/changelog +++ noiz2sa-0.51a/debian/changelog @@ -0,0 +1,65 @@ +noiz2sa (0.51a-9) unstable; urgency=low + + * Link with -lm (closes: #555774) + * Fixed some conversion errors (closes: #646453) + * Added a .desktop files (closes: #538036) + * Update to newer policy version + + -- Robert Lemmen Wed, 16 Nov 2011 17:58:48 +0000 + +noiz2sa (0.51a-8) unstable; urgency=low + + * More fixes for GCC 4.3 (closes: #455140) + * Fixed the uscan watch file (closes: #450021) + + -- Robert Lemmen Wed, 5 Mar 2008 17:50:27 +0000 + +noiz2sa (0.51a-7) unstable; urgency=low + + * Added a menu item + + -- Robert Lemmen Tue, 28 Aug 2007 18:27:01 +0200 + +noiz2sa (0.51a-6) unstable; urgency=low + + * Include additional headers to make noiz2sa build with GCC 4.3 + (closes: #417450) + * Made the package binNMU-friendly + + -- Robert Lemmen Mon, 16 Apr 2007 10:04:30 +0200 + +noiz2sa (0.51a-5) unstable; urgency=low + + * Fixed a problem that made the build fail with g++ 4.1, thanks tbm + (closes: #356424) + + -- Robert Lemmen Tue, 21 Mar 2006 09:49:26 +0100 + +noiz2sa (0.51a-4) unstable; urgency=low + + * Fixed the debian/rules file to properly pass compiler options to the + makefiles (also fixes FTBFS problems on m68k) + + -- Robert Lemmen Fri, 19 Aug 2005 10:29:18 +0200 + +noiz2sa (0.51a-3) unstable; urgency=low + + * Rebuild for g++ transition + * Updated to newer standards version + + -- Robert Lemmen Tue, 19 Jul 2005 10:56:44 +0200 + +noiz2sa (0.51a-2) unstable; urgency=low + + * Uses the libboost package now instead of it's own copy of the files + * Makefile cleanups + * Also clean tinyxml subdir + + -- Robert Lemmen Mon, 22 Nov 2004 19:26:48 +0100 + +noiz2sa (0.51a-1) unstable; urgency=low + + * Initial Release. (closes: #259066) + + -- Robert Lemmen Mon, 15 Nov 2004 11:37:18 +0100 + --- noiz2sa-0.51a.orig/debian/copyright +++ noiz2sa-0.51a/debian/copyright @@ -0,0 +1,33 @@ +This package was debianized by Robert Lemmen on +Mon, 15 Nov 2004 11:37:18 +0100. + +It was downloaded from http://noiz2sa.sourceforge.net/ + +Copyright: 2002 Kenta Cho. All rights reserved. + +Upstream Authors: "Evil Mr. Henry" + Kenta Cho + +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. --- noiz2sa-0.51a.orig/debian/menu +++ noiz2sa-0.51a/debian/menu @@ -0,0 +1,3 @@ +?package(noiz2sa):needs="X11" section="Games/Action"\ + title="noiz2sa" command="/usr/games/noiz2sa" \ + icon="/usr/share/pixmaps/noiz2sa.xpm" --- noiz2sa-0.51a.orig/debian/compat +++ noiz2sa-0.51a/debian/compat @@ -0,0 +1 @@ +4 --- noiz2sa-0.51a.orig/debian/noiz2sa.xpm +++ noiz2sa-0.51a/debian/noiz2sa.xpm @@ -0,0 +1,47 @@ +/* XPM */ +static char * noiz2sa_xpm[] = { +"32 32 12 1", +" c None", +". c #E3E3EF", +"+ c #ACACDF", +"@ c #9191DF", +"# c #D0D0F7", +"$ c #5C5CDF", +"% c #A0A0EF", +"& c #7777DF", +"* c #C7C7DF", +"= c #7E7EE7", +"- c #F1F1F7", +"; c #BABADF", +" ", +" ", +" ..... ", +" +@@@+ ", +" +@@@+ ", +" +@@@+ #$$# ", +" +@@@+ %&&% ", +" ..*****........ $&$ ", +" +@@@@@@@@@@@@@+ =$= ", +" +@@@@@@@@@@@@@+ ", +" +@@@@@@@@@@@@@+ ", +" +@@@@@@@@@@@@@+ ", +" +@@@@@@@@@@@@@+ ", +" +@@@@@@@@@@@@@+ #%# ", +" +@@@@@@@@@@@@@+....-$&$ ", +" +@@@@@@@@@@@@@+@@@@.$&$ ", +" +@@@@@@@@@@@@@+@@@@.=$= ", +" +@@@@@@@@@@@@@+@@@@. ", +" +@@@@@@@@@@@@@+@@@@. ", +" ..;++@@@@@@@@@@@+....- ", +" +@@@+@@@@@@@@@@@+ ", +" +@@@+@@@@@@@@@@@+ ", +" +@@@+............ #$$# ", +" +@@@+ %&&% ", +" ..... %&&% ", +" %&&% ", +" %% ", +" ", +" ", +" ", +" ", +" "}; --- noiz2sa-0.51a.orig/debian/noiz2sa.desktop +++ noiz2sa-0.51a/debian/noiz2sa.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Name=Noiz2sa +Comment=An Abstract Shooter by Kenta Cho +Icon=noiz2sa +Exec=/usr/games/noiz2sa +Terminal=false +Categories=Game;ArcadeGame; --- noiz2sa-0.51a.orig/debian/rules +++ noiz2sa-0.51a/debian/rules @@ -0,0 +1,74 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + RELEASE_CFLAGS="$(CFLAGS)" $(MAKE) -C src/bulletml/tinyxml + CXXFLAGS="$(CFLAGS)" $(MAKE) -C src/bulletml + MORE_CFLAGS="$(CFLAGS)" $(MAKE) -C src + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + -cd src/bulletml && $(MAKE) clean + -cd src/bulletml/tinyxml && $(MAKE) clean + -cd src && $(MAKE) clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + mkdir -p debian/noiz2sa/usr/games + mkdir -p debian/noiz2sa/usr/share/doc + mkdir -p debian/noiz2sa-data/usr/share/games/noiz2sa + cp src/noiz2sa debian/noiz2sa/usr/games + cp -r noiz2sa_share/* debian/noiz2sa-data/usr/share/games/noiz2sa + + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installmenu + dh_installchangelogs -p noiz2sa-data + dh_installdocs -p noiz2sa-data + ln -s noiz2sa-data debian/noiz2sa/usr/share/doc/noiz2sa + dh_install debian/noiz2sa.xpm /usr/share/pixmaps/ + dh_install debian/noiz2sa.desktop /usr/share/applications/ + dh_installman debian/noiz2sa.6 + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- noiz2sa-0.51a.orig/debian/noiz2sa.6 +++ noiz2sa-0.51a/debian/noiz2sa.6 @@ -0,0 +1,49 @@ +.TH NOIZ2SA 6 "15.11.2004" "abstract arcade shooter" + +.SH NAME +noiz2sa \- an abstract arcade shooter + +.SH SYNOPSIS +.B noiz2sa [\fI-nosound\fR] [\fI-window\fR] [\fI-reverse\fR] [\fI-brightness +n\fR] [\fI-nowait\fR] [\fI-accframe\fR] + +.SH DESCRIPTION +noiz2sa is an abstract arcade shooter, just fire it up and you'll find out +what that means. + +.SH USAGE +You can play the game with a keyboard or a joystick. On the keyboard the following keys are used: + + - Movement Arrow keys + - Fire [Z] + - Slowdown [X] + - Pause [P] + - Leave Game [Esc] + +Control your ship and avoid the barrage. +A ship is not destroyed even if it contacts an enemy main body. +A ship becomes slow while holding the slowdown key. + +A green star is the bonus item. +A score of the item(displayed at the left-up corner) increases +if you get items continuously. + +When all ships are destroyed, the game is over. +The ship extends 200,000 and every 500,000 points. + +Apart from that the game is really easy, no need for a manual! + +.SH OPTIONS + +These command line options are available: + \-nosound Stop the sound. + \-window Launch the game in the window, not use the full-screen. + \-reverse Reverse the fire key and the slowdown key. + \-brightness n Set the brightness of the sceen(n=0-256). + \-accframe Use the alternative framerate management algorithm. + (If you have a problem with framerate, try this option.) + + +.SH AUTHOR +This manual page was written for the Debian GNU/Linux system by Robert Lemmen + (but may be used by others, of course)