--- komi-1.04.orig/debian/copyright +++ komi-1.04/debian/copyright @@ -0,0 +1,25 @@ +This package was debianized by Steve Kemp on +Sat, 9 Aug 2003 19:35:43 +0100. + +It was downloaded from http://komi.sourceforge.net/ + +Upstream Author: The upstream author for Komi is Allan Crossman + +Copyright (C) 2004 Allan Crossman + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +The complete text of the GNU General Public License can be found +in /usr/share/common-licenses/GPL file. --- komi-1.04.orig/debian/docs +++ komi-1.04/debian/docs @@ -0,0 +1,2 @@ +TROUBLESHOOTING.txt +README.txt --- komi-1.04.orig/debian/changelog +++ komi-1.04/debian/changelog @@ -0,0 +1,158 @@ +komi (1.04-3) unstable; urgency=low + + * New maintainer (Closes: #390824) + * Mouse no longer required to play game from menu (that was silly). + * Now, you get a "last life" warning even when playing in windowed mode. + + -- Brandon Barnes Thu, 15 Feb 2007 23:46:00 -0800 + +komi (1.04-2) unstable; urgency=low + + * QA Upload. + * Set maintainer to Debian QA Group. + * Removed list of uploaders. + * Set Standards-Version to 3.7.2. + + -- Anibal Monsalve Salazar Mon, 23 Oct 2006 18:56:15 +1000 + +komi (1.04-1) unstable; urgency=low + + [ Gonéri Le Bouder ] + * new upstream release + * new watch file + * home site url in description + * compat 5 + + [ Alexander Schmehl ] + * removed WINDOWS.txt from docs + + -- Alexander Schmehl Wed, 29 Mar 2006 22:59:58 +0200 + +komi (1.03-5) unstable; urgency=medium + + * Fix Makefile so the game links to SDL dynamically, rather than + statically. Thanks to Thierry Reding for the diagnosis + patch. + (Closes: #349555) + + -- Steve Kemp Thurs, 22 Jan 2006 14:22:11 +0000 + +komi (1.03-4) unstable; urgency=low + + * Moved the project to the Alioth 'pkg-games' SVN repository. + http://wiki.debian.org/Games/SVN + * Updated the maintainer to the games-devel mailing list. + http://lists.alioth.debian.org/mailman/listinfo/pkg-games-devel + + -- Steve Kemp Sunday, 22 January 2006 10:48:06 +0000 + +komi (1.03-3) unstable; urgency=low + + * Build against libaa1-dev/libaa1 instead of aalib1. + (Closes: #320884) + + -- Steve Kemp Thu, 04 Aug 2005 15:48:55 +0000 + +komi (1.03-2) unstable; urgency=low + + * Updated standards version to 3.6.2 (no changes). + * Removed commented out debhelper lines from debian/rules + * Changed menu entry: + * Install to /usr/share/menu + * Moved to section 'Games/Arcade' + * Capitalise 'komi' + (Closes: #316280) + + -- Steve Kemp Fri, 01 Jul 2005 02:04:57 +0000 + +komi (1.03-1) unstable; urgency=low + + * New upstream release. + + -- Steve Kemp Mon, 12 Jul 2004 15:37:21 +0000 + +komi (1.01-1) unstable; urgency=low + + * Uploaded to the Debian archives. + (Closes: #257166) + * Changed maintainer address to my @debian.org email. + * Changed the saving of the preferences to the users home directory, + this will be folded in upstream for the next release :) + + -- Steve Kemp Fri, 2 Jul 2004 18:47:15 +0000 + +komi (0.8b-2) unstable; urgency=low + + * Move manpage into section 6. + * Updated manpage. + + -- Steve Kemp Fri, 11 Jun 2004 15:23:02 +0000 + +komi (0.8b-1) unstable; urgency=low + + * Initial package. + * Moved binary to /usr/games/komi + * Moved data to /usr/share/games/komi + * Added manpage. + + -- Steve Kemp Thurs, 10 Jun 2004 21:40:11 +0000 + + +komi (1.03-4) unstable; urgency=low + + * Moved the project to the Alioth 'pkg-games' SVN repository. + http://wiki.debian.org/Games/SVN + * Updated the maintainer to the games-devel mailing list. + http://lists.alioth.debian.org/mailman/listinfo/pkg-games-devel + + -- Steve Kemp Sunday, 22 January 2006 10:48:06 +0000 + +komi (1.03-3) unstable; urgency=low + + * Build against libaa1-dev/libaa1 instead of aalib1. + (Closes: #320884) + + -- Steve Kemp Thu, 04 Aug 2005 15:48:55 +0000 + +komi (1.03-2) unstable; urgency=low + + * Updated standards version to 3.6.2 (no changes). + * Removed commented out debhelper lines from debian/rules + * Changed menu entry: + * Install to /usr/share/menu + * Moved to section 'Games/Arcade' + * Capitalise 'komi' + (Closes: #316280) + + -- Steve Kemp Fri, 01 Jul 2005 02:04:57 +0000 + +komi (1.03-1) unstable; urgency=low + + * New upstream release. + + -- Steve Kemp Mon, 12 Jul 2004 15:37:21 +0000 + +komi (1.01-1) unstable; urgency=low + + * Uploaded to the Debian archives. + (Closes: #257166) + * Changed maintainer address to my @debian.org email. + * Changed the saving of the preferences to the users home directory, + this will be folded in upstream for the next release :) + + -- Steve Kemp Fri, 2 Jul 2004 18:47:15 +0000 + +komi (0.8b-2) unstable; urgency=low + + * Move manpage into section 6. + * Updated manpage. + + -- Steve Kemp Fri, 11 Jun 2004 15:23:02 +0000 + +komi (0.8b-1) unstable; urgency=low + + * Initial package. + * Moved binary to /usr/games/komi + * Moved data to /usr/share/games/komi + * Added manpage. + + -- Steve Kemp Thurs, 10 Jun 2004 21:40:11 +0000 --- komi-1.04.orig/debian/dirs +++ komi-1.04/debian/dirs @@ -0,0 +1,4 @@ +usr/games +var/games +usr/share/games/komi +usr/share/menu --- komi-1.04.orig/debian/rules +++ komi-1.04/debian/rules @@ -0,0 +1,84 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +# +# We should be using CXXFLAGS here not CFLAGS. +# +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +# +# Export the flags to configura, etc. +# +export CXXFLAGS = $(CFLAGS) + +build: build-stamp + +build-stamp: + dh_testdir + + # Add here commands to compile the package. + $(MAKE) DATAPATH=/usr/share/games/komi/ + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + mkdir -p $(CURDIR)/debian/komi + # Add here commands to install the package into debian/late. + $(MAKE) install BINPATH=$(CURDIR)/debian/komi/usr/games/ DATAPATH=$(CURDIR)/debian/komi/usr/share/games/komi/ MANPATH=$(CURDIR)/debian/komi/usr/share/man/man6/ + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs CHANGELOG.txt + dh_installdocs + dh_installmenu + dh_installman debian/komi.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 --- komi-1.04.orig/debian/menu +++ komi-1.04/debian/menu @@ -0,0 +1,2 @@ +?package(komi):needs="X11" section="Games/Arcade"\ + title="Komi" command="/usr/games/komi" --- komi-1.04.orig/debian/compat +++ komi-1.04/debian/compat @@ -0,0 +1 @@ +5 --- komi-1.04.orig/debian/watch +++ komi-1.04/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://qa.debian.org/watch/sf.php?project=komi komi-([\d.]*)\.tar\.gz --- komi-1.04.orig/debian/control +++ komi-1.04/debian/control @@ -0,0 +1,18 @@ +Source: komi +Section: games +Maintainer: Brandon Barnes +Priority: optional +Build-Depends: debhelper (>= 5), libsdl-mixer1.2-dev, libsdl1.2-dev +Standards-Version: 3.7.2 + +Package: komi +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: A single player arcade game with Komi the Space Frog! + Komi is a space frog, and your aim in this single player arcade + game is to feed him by capturing food with your giant tongue. + . + Avoid hitting the energy barriers and other nasties as you + try to eat all the food. + . + Homepage: http://komi.sf.net --- komi-1.04.orig/debian/komi.6 +++ komi-1.04/debian/komi.6 @@ -0,0 +1,83 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH KOMI 6 "June 11, 2004" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +komi \- A simple game for one player. +.SH SYNOPSIS +.B komi +.RI [ options ] +.br +.SH DESCRIPTION +This manual page documents briefly the +.B komi +game. + +.SH "Playing" +Using the left and right arrow keys you may guide Komi the space from from left to right across the bottom of the screen. +Use the space bar to extend his longue tongue and capture the floating orange prizes, whilst avoiding the predators. + +.SH "OPTIONS" +The following command line options are supported: + +.TP +\fB\-\-delay \fR +Wait for x milliseconds between frames, so lower is faster. + +.TP +\fB\-\-fullscreen\fR +Run the game in fullscreen mode, rather than in a window of its own + +.TP +\fB\-\-hog\fR +Allow +.B komi +to hog CPU which may reduce jerkiness. + +.TP +\fB\-\-nosound\fR +.Sp +Disable all sound effects + +.TP +\fB\-\-nostars\fR +Disable the starfield simulation in the background of the game. + +.TP +\fB\-\-copying\fR +Show the terms under which +.B komi +may be copied. + +.TP +\fB\-\-help\fR +Display the command line options. + +.TP +\fB\-\-version\fR +Show the version number of +.B komi + + +.SH WEBSITE +.BR +The game has a website where you can find updates and source code. See the following URL for details: +.TP + http://komi.sourceforge.net/ + +.SH AUTHOR +This manual page was written by Steve Kemp , +for the Debian project (but may be used by others). --- komi-1.04.orig/komi.c +++ komi-1.04/komi.c @@ -242,6 +242,8 @@ { keymap.escape = 0; // So we don't respond to escape pressed in game. mousemap.button = 0; // Likewise for the mouse. + keymap.fire1 = 0; // Neither fire keys are likely to be down from game, + keymap.fire2 = 0; // but could be. manageevents(); @@ -297,6 +299,17 @@ { cleanexit(0); } + + if (keymap.fire1 || keymap.fire2) + { + keymap.fire1 = keymap.fire2 = 0; + SDL_ShowCursor(SDL_DISABLE); + game(); + SDL_ShowCursor(SDL_ENABLE); + setmaintitlebar(); + drawmenu(highlight_start, highlight_quit, highlight_shuffle); + } + if (mousemap.button) { if (abs(mousemap.clickx - STARTBUTTON_X) < start_title.pixelmap->w / 2 && abs(mousemap.clicky - STARTBUTTON_Y) < start_title.pixelmap->h / 2) @@ -420,7 +433,7 @@ SDL_UpdateRect(virtue, 0, 0, 0, 0); updatetitlebar(); - if (lives == 1 && givelastlifewarning && fullscreen) + if (lives == 1 && givelastlifewarning) { playsound(lastlife_sound); givelastlifewarning = 0;