Import komi-1.04, The Space Frog!

Komi is a 2D arcade game written in C, which uses the SDL library for
graphics and sound.  The aim of the game is to collect the money (in the
forms of coins and diamonds) floating about the screen.
Move Komi (the Space Frog) with the arrow keys, or keypad 4 and 6, or Q
and W, and extend his tongue with the spacebar, or the return key.
This commit is contained in:
ajacoutot 2008-10-29 16:53:57 +00:00
parent 7b5d573e23
commit 5aafe867fd
5 changed files with 160 additions and 0 deletions

29
games/komi/Makefile Normal file
View File

@ -0,0 +1,29 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/10/29 16:53:57 ajacoutot Exp $
COMMENT= Komi the Space Frog
DISTNAME= komi-1.04
CATEGORIES= games
HOMEPAGE= http://komi.sourceforge.net/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=komi/}
WANTLIB= SDL c pthread
LIB_DEPENDS= SDL_mixer.>=3::devel/sdl-mixer
NO_REGRESS= Yes
pre-configure:
${SUBST_CMD} ${WRKSRC}/Makefile
.include <bsd.port.mk>

5
games/komi/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (komi-1.04.tar.gz) = 0asOVCn2qhYWnPmJ0UTjmg==
RMD160 (komi-1.04.tar.gz) = eNCGN+ymeqZ9+JGH4Qp5KiHvxxM=
SHA1 (komi-1.04.tar.gz) = cSi0VLm2q4dXRIaqtiY49sjdhqc=
SHA256 (komi-1.04.tar.gz) = mmhStEGX4EgyhhtoQ5CXHFqFwEBe3ApVX+b92aUyVyE=
SIZE (komi-1.04.tar.gz) = 954526

View File

@ -0,0 +1,53 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2008/10/29 16:53:57 ajacoutot Exp $
--- Makefile.orig Wed Jul 14 23:48:52 2004
+++ Makefile Wed Oct 29 17:40:54 2008
@@ -2,19 +2,20 @@
# Allan Crossman
# Where the graphics and sound files go...
-DATAPATH=/usr/local/share/komidata/
+DATAPATH=${PREFIX}/share/komidata/
# Where to put the binary...
-BINPATH=/usr/local/bin/
+BINPATH=${PREFIX}/bin/
# Where to put the manpage...
-MANPATH=/usr/local/man/man6/
+MANPATH=${PREFIX}/man/man6/
MIXER=-lSDL_mixer
-SDL_LIB=$(shell sdl-config --static-libs) $(MIXER)
+SDL_LIB=`sdl-config --libs` $(MIXER)
+SDL_FLAGS=`sdl-config --cflags`
-CFLAGS=-Wall -pedantic -std=c99 -O2 \
- $(shell sdl-config --cflags) \
+CFLAGS+=-Wall -pedantic -std=c99 \
+ $(SDL_FLAGS) \
-DDATAPATH=\"$(DATAPATH)\"
all: komi
@@ -24,15 +25,13 @@ clean:
-rm *.o
install:
- install -d $(DATAPATH)
- cp -R komidata/* $(DATAPATH)
- chmod -R 644 $(DATAPATH)
- chmod 755 $(DATAPATH)
- install -d $(BINPATH)
- cp komi $(BINPATH)
- chmod 755 $(BINPATH)komi
- install -d $(MANPATH)
- cp komi.6 $(MANPATH)komi.6
+ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}/$(DATAPATH)
+ cp -R komidata/* ${DESTDIR}/$(DATAPATH)
+ chmod -R 644 ${DESTDIR}/$(DATAPATH)
+ ${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}/$(BINPATH)
+ ${BSD_INSTALL_PROGRAM} komi ${DESTDIR}/$(BINPATH)
+ ${BSD_INSTALL_MAN_DIR} ${DESTDIR}/$(MANPATH)
+ ${BSD_INSTALL_MAN} komi.6 ${DESTDIR}/$(MANPATH)komi.6
komi: komi.o
$(CC) $(CFLAGS) komi.o -o komi $(SDL_LIB)

5
games/komi/pkg/DESCR Normal file
View File

@ -0,0 +1,5 @@
Komi is a 2D arcade game written in C, which uses the SDL library for
graphics and sound. The aim of the game is to collect the money (in the
forms of coins and diamonds) floating about the screen.
Move Komi (the Space Frog) with the arrow keys, or keypad 4 and 6, or Q
and W, and extend his tongue with the spacebar, or the return key.

68
games/komi/pkg/PLIST Normal file
View File

@ -0,0 +1,68 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/10/29 16:53:57 ajacoutot Exp $
@bin bin/komi
@man man/man6/komi.6
share/komidata/
share/komidata/sounds_contactdeath.wav
share/komidata/sounds_destructorkill.wav
share/komidata/sounds_eat.wav
share/komidata/sounds_electricdeath.wav
share/komidata/sounds_freeze.wav
share/komidata/sounds_gameover.wav
share/komidata/sounds_laser.wav
share/komidata/sounds_laserentry.wav
share/komidata/sounds_laserpowerup.wav
share/komidata/sounds_lastlife.wav
share/komidata/sounds_lightningwarning.wav
share/komidata/sounds_oneup.wav
share/komidata/sounds_pause.wav
share/komidata/sounds_powerup.wav
share/komidata/sounds_screenshot.wav
share/komidata/sounds_shoot.wav
share/komidata/sounds_stick.wav
share/komidata/sounds_unfreezewarning.wav
share/komidata/sprites_accelerator.bmp
share/komidata/sprites_bomber.bmp
share/komidata/sprites_bouncer.bmp
share/komidata/sprites_brownian.bmp
share/komidata/sprites_coin.bmp
share/komidata/sprites_destructor.bmp
share/komidata/sprites_diamond.bmp
share/komidata/sprites_diver.bmp
share/komidata/sprites_dropper.bmp
share/komidata/sprites_electra.bmp
share/komidata/sprites_electrickomi.bmp
share/komidata/sprites_enemyshot.bmp
share/komidata/sprites_eyeball.bmp
share/komidata/sprites_fasttip.bmp
share/komidata/sprites_friendlyshot.bmp
share/komidata/sprites_generator.bmp
share/komidata/sprites_gunner.bmp
share/komidata/sprites_komi.bmp
share/komidata/sprites_lasergun.bmp
share/komidata/sprites_life.bmp
share/komidata/sprites_pickupmask.bmp
share/komidata/sprites_powerup.bmp
share/komidata/sprites_roamer.bmp
share/komidata/sprites_scrollerleft.bmp
share/komidata/sprites_scrollerright.bmp
share/komidata/sprites_shooterkomi.bmp
share/komidata/sprites_shootpower.bmp
share/komidata/sprites_skull.bmp
share/komidata/sprites_skullpull.bmp
share/komidata/sprites_sniperleft.bmp
share/komidata/sprites_sniperright.bmp
share/komidata/sprites_tip.bmp
share/komidata/sprites_tonguemask.bmp
share/komidata/sprites_wrapball.bmp
share/komidata/titles_bolts.bmp
share/komidata/titles_gpl.bmp
share/komidata/titles_quit.bmp
share/komidata/titles_quit2.bmp
share/komidata/titles_shuffleoff.bmp
share/komidata/titles_shuffleoff2.bmp
share/komidata/titles_shuffleon.bmp
share/komidata/titles_shuffleon2.bmp
share/komidata/titles_speed.bmp
share/komidata/titles_start.bmp
share/komidata/titles_start2.bmp
share/komidata/titles_title.bmp