diff --git a/games/kobodeluxe/Makefile b/games/kobodeluxe/Makefile new file mode 100644 index 00000000000..416723c59fe --- /dev/null +++ b/games/kobodeluxe/Makefile @@ -0,0 +1,31 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2003/04/12 15:22:10 espie Exp $ + +COMMENT= "sdl port of xkobo" +DISTNAME= KoboDeluxe-0.4pre8 +PKGNAME= ${DISTNAME:L} +CATEGORIES= games x11 +MASTER_SITES= ${HOMEPAGE}download/ + +HOMEPAGE= http://olofson.net/skobo/ +FLAVORS= harder +FLAVOR?= + +.if ${FLAVOR:L:Mharder} +PATCH_LIST=patch-* extra-hard +.endif + +MAINTAINER= Jolan Luff + +# GPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +LIB_DEPENDS= SDL_image::devel/sdl-image + +USE_X11= Yes + +CONFIGURE_STYLE=gnu + +.include diff --git a/games/kobodeluxe/distinfo b/games/kobodeluxe/distinfo new file mode 100644 index 00000000000..19419775692 --- /dev/null +++ b/games/kobodeluxe/distinfo @@ -0,0 +1,3 @@ +MD5 (KoboDeluxe-0.4pre8.tar.gz) = 215fba14e30755940833dc1abb322bd6 +RMD160 (KoboDeluxe-0.4pre8.tar.gz) = b163210e2eb2e5af4a965a76b46e402ea968f002 +SHA1 (KoboDeluxe-0.4pre8.tar.gz) = 4f32cb42de0e1229fd74aeaa7956dcb23d0000ab diff --git a/games/kobodeluxe/patches/extra-hard b/games/kobodeluxe/patches/extra-hard new file mode 100644 index 00000000000..432718c10b3 --- /dev/null +++ b/games/kobodeluxe/patches/extra-hard @@ -0,0 +1,10 @@ +--- manage.cpp.orig Sat Apr 12 16:33:29 2003 ++++ manage.cpp Sat Apr 12 16:33:35 2003 +@@ -455,7 +455,6 @@ void _manage::add_score(int sc) + if(score >= bonus_next) + { + bonus_next += BONUS_EVERY; +- ships++; + ships_changed = 1; + flush_ships_count = 50; + diff --git a/games/kobodeluxe/patches/patch-Makefile_in b/games/kobodeluxe/patches/patch-Makefile_in new file mode 100644 index 00000000000..cd0cba2a27d --- /dev/null +++ b/games/kobodeluxe/patches/patch-Makefile_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-Makefile_in,v 1.1.1.1 2003/04/12 15:22:10 espie Exp $ +--- Makefile.in.orig Fri Jun 21 21:00:55 2002 ++++ Makefile.in Thu Apr 10 03:34:35 2003 +@@ -486,7 +486,7 @@ install-data: install-data-recursive + uninstall: uninstall-recursive + + install-am: all-am +- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am ++ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am + + installcheck: installcheck-recursive + install-strip: diff --git a/games/kobodeluxe/patches/patch-configure b/games/kobodeluxe/patches/patch-configure new file mode 100644 index 00000000000..c289343203c --- /dev/null +++ b/games/kobodeluxe/patches/patch-configure @@ -0,0 +1,14 @@ +$OpenBSD: patch-configure,v 1.1.1.1 2003/04/12 15:22:10 espie Exp $ +--- configure.orig Fri Jun 14 19:17:58 2002 ++++ configure Thu Apr 10 03:17:41 2003 +@@ -3478,8 +3478,8 @@ echo $ECHO_N "checking target platform a + build_macosx_bundle=no + build_simple_bundle=no + unix_scoredir=yes +-DATADIR='$(datadir)/games/kobo-deluxe' +-SCOREDIR='$(prefix)/games/kobo-deluxe/scores' ++DATADIR='$(datadir)/kobodeluxe' ++SCOREDIR='$(datadir)/kobodeluxe/scores' + CONFIGDIR='HOME>>' + CONFIGFILE='.kobodlrc' + EXEFILE=kobodl diff --git a/games/kobodeluxe/patches/patch-data_Makefile_in b/games/kobodeluxe/patches/patch-data_Makefile_in new file mode 100644 index 00000000000..fc2dc04a013 --- /dev/null +++ b/games/kobodeluxe/patches/patch-data_Makefile_in @@ -0,0 +1,35 @@ +$OpenBSD: patch-data_Makefile_in,v 1.1.1.1 2003/04/12 15:22:10 espie Exp $ +--- data/Makefile.in.orig Fri Jun 14 19:18:20 2002 ++++ data/Makefile.in Thu Apr 10 03:30:34 2003 +@@ -124,10 +124,10 @@ KOBOSFX_OBJECTS = *.raw *.agw *.mid *.h + # *.h + @BUILD_MACOSX_BUNDLE_TRUE@kobogfxdir = $(srcdir)/../@PACKAGE@.app/Contents/Resources/gfx + @BUILD_MACOSX_BUNDLE_FALSE@@BUILD_SIMPLE_BUNDLE_TRUE@kobogfxdir = $(srcdir)/../@PACKAGE@/gfx +-@BUILD_MACOSX_BUNDLE_FALSE@@BUILD_SIMPLE_BUNDLE_FALSE@kobogfxdir = $(datadir)/games/kobo-deluxe/gfx ++@BUILD_MACOSX_BUNDLE_FALSE@@BUILD_SIMPLE_BUNDLE_FALSE@kobogfxdir = $(datadir)/kobodeluxe/gfx + @BUILD_MACOSX_BUNDLE_TRUE@kobosfxdir = $(srcdir)/../@PACKAGE@.app/Contents/Resources/sfx + @BUILD_MACOSX_BUNDLE_FALSE@@BUILD_SIMPLE_BUNDLE_TRUE@kobosfxdir = $(srcdir)/../@PACKAGE@/sfx +-@BUILD_MACOSX_BUNDLE_FALSE@@BUILD_SIMPLE_BUNDLE_FALSE@kobosfxdir = $(datadir)/games/kobo-deluxe/sfx ++@BUILD_MACOSX_BUNDLE_FALSE@@BUILD_SIMPLE_BUNDLE_FALSE@kobosfxdir = $(datadir)/kobodeluxe/sfx + + kobogfx_DATA = $(KOBOGFX_OBJECTS) + kobosfx_DATA = $(KOBOSFX_OBJECTS) +@@ -176,7 +176,7 @@ uninstall-kobogfxDATA: + done + install-koboscoreDATA: $(koboscore_DATA) + @$(NORMAL_INSTALL) +- $(mkinstalldirs) $(DESTDIR)$(koboscoredir) ++ $(mkinstalldirs) $(DESTDIR)$(kboscoredir) + @list='$(koboscore_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ +@@ -279,8 +279,7 @@ info: info-am + + info-am: + +-install-data-am: install-kobogfxDATA install-koboscoreDATA \ +- install-kobosfxDATA ++install-data-am: install-kobogfxDATA install-kobosfxDATA + + install-exec-am: + diff --git a/games/kobodeluxe/patches/patch-gamectl_cpp b/games/kobodeluxe/patches/patch-gamectl_cpp new file mode 100644 index 00000000000..2c8927d205d --- /dev/null +++ b/games/kobodeluxe/patches/patch-gamectl_cpp @@ -0,0 +1,38 @@ +$OpenBSD: patch-gamectl_cpp,v 1.1.1.1 2003/04/12 15:22:10 espie Exp $ +--- gamectl.cpp.orig Sun May 5 04:50:02 2002 ++++ gamectl.cpp Sat Apr 12 17:02:10 2003 +@@ -39,7 +39,7 @@ int gamecontrol_t::dl; + int gamecontrol_t::dr; + int gamecontrol_t::ul; + int gamecontrol_t::ur; +-int gamecontrol_t::shot; ++int gamecontrol_t::shot = 1; + int gamecontrol_t::direction = 1; + int gamecontrol_t::new_direction = 0; + int gamecontrol_t::latch_timer = 0; +@@ -52,7 +52,7 @@ void gamecontrol_t::init() + right = 0; + up = 0; + down = 0; +- shot = 0; ++ shot = 1; + movekey_pressed = 0; + SDL_EnableKeyRepeat(r_delay, r_interval); + } +@@ -207,7 +207,7 @@ void gamecontrol_t::press(int k) + dr = 1; + break; + case BTN_FIRE: +- shot = 1; ++ shot = !shot; + break; + } + gamecontrol_t::change(); +@@ -242,7 +242,6 @@ void gamecontrol_t::release(int k) + dr = 0; + break; + case BTN_FIRE: +- shot = 0; + break; + } + gamecontrol_t::change(); diff --git a/games/kobodeluxe/pkg/DESCR b/games/kobodeluxe/pkg/DESCR new file mode 100644 index 00000000000..26966d9a450 --- /dev/null +++ b/games/kobodeluxe/pkg/DESCR @@ -0,0 +1,25 @@ +Kobo Deluxe (formerly SKobo) is an SDL port of Akira Higuchi's game +XKobo. It adds such features such as sound, smoother animation, and +filtered, high resolution support. + +KEY CONFIGURATION +----------------- + +Introduction screen: + +Enter - Displays the main menu +Escape - Exit Kobo Deluxe + +During the game: + +Arrow/numpad - Turn the ship into the corresponding direction +Ctrl - Fires the weapon +Spacebar - Pauses/unpauses the game +Escape - Quit current game + +Available flavor: +harder + makes the game slightly harder by not giving you bonus lives + +WWW: ${HOMEPAGE} + diff --git a/games/kobodeluxe/pkg/PLIST b/games/kobodeluxe/pkg/PLIST new file mode 100644 index 00000000000..4ab0cd543e3 --- /dev/null +++ b/games/kobodeluxe/pkg/PLIST @@ -0,0 +1,127 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2003/04/12 15:22:10 espie Exp $ +@group games +@mode 2555 +bin/kobodl +@group +@mode +share/kobodeluxe/gfx/bigship.pcx +share/kobodeluxe/gfx/brushes.png +share/kobodeluxe/gfx/bullets.pcx +share/kobodeluxe/gfx/counter.png +share/kobodeluxe/gfx/font2b.png +share/kobodeluxe/gfx/font3b.png +share/kobodeluxe/gfx/font4b.png +share/kobodeluxe/gfx/loading.png +share/kobodeluxe/gfx/logo3.png +share/kobodeluxe/gfx/screen.png +share/kobodeluxe/gfx/sprites.pcx +share/kobodeluxe/gfx/tiles.pcx +share/kobodeluxe/gfx/tube1.png +share/kobodeluxe/gfx/tube2.png +share/kobodeluxe/sfx/aguitar1.agw +share/kobodeluxe/sfx/aguitar2.agw +share/kobodeluxe/sfx/ballad1.agw +share/kobodeluxe/sfx/ballad1.mid +share/kobodeluxe/sfx/banjo1.agw +share/kobodeluxe/sfx/bassdrum1.agw +share/kobodeluxe/sfx/bassdrum10.agw +share/kobodeluxe/sfx/bassdrum2.agw +share/kobodeluxe/sfx/bassdrum3.agw +share/kobodeluxe/sfx/bassdrum4.agw +share/kobodeluxe/sfx/bassdrum5.agw +share/kobodeluxe/sfx/bassdrum6.agw +share/kobodeluxe/sfx/bassdrum7.agw +share/kobodeluxe/sfx/bassdrum8.agw +share/kobodeluxe/sfx/bassdrum9.agw +share/kobodeluxe/sfx/beam.raw +share/kobodeluxe/sfx/bomb.raw +share/kobodeluxe/sfx/bongo1.agw +share/kobodeluxe/sfx/brass1.agw +share/kobodeluxe/sfx/brass2.agw +share/kobodeluxe/sfx/bubble.raw +share/kobodeluxe/sfx/claps1.agw +share/kobodeluxe/sfx/claps2.agw +share/kobodeluxe/sfx/crash1.agw +share/kobodeluxe/sfx/cymbal1.agw +share/kobodeluxe/sfx/cymbal2.agw +share/kobodeluxe/sfx/cymbal3.agw +share/kobodeluxe/sfx/cymbal4.agw +share/kobodeluxe/sfx/edge1.agw +share/kobodeluxe/sfx/edge2.agw +share/kobodeluxe/sfx/edit.agw +share/kobodeluxe/sfx/elecbass1.agw +share/kobodeluxe/sfx/elecbass2.agw +share/kobodeluxe/sfx/elecbass3.agw +share/kobodeluxe/sfx/elecbass4.agw +share/kobodeluxe/sfx/elecbass5.agw +share/kobodeluxe/sfx/enemym.raw +share/kobodeluxe/sfx/expl.raw +share/kobodeluxe/sfx/expl2.raw +share/kobodeluxe/sfx/expl3.raw +share/kobodeluxe/sfx/fine.raw +share/kobodeluxe/sfx/fmbass1.agw +share/kobodeluxe/sfx/fmbass2.agw +share/kobodeluxe/sfx/fmknock1.agw +share/kobodeluxe/sfx/fmkoto1.agw +share/kobodeluxe/sfx/gmsclock.agw +share/kobodeluxe/sfx/hardsync1.agw +share/kobodeluxe/sfx/hihat1c.agw +share/kobodeluxe/sfx/hihat1o.agw +share/kobodeluxe/sfx/hihat1p.agw +share/kobodeluxe/sfx/hihat2.agw +share/kobodeluxe/sfx/kettle1.agw +share/kobodeluxe/sfx/kobosfx.h +share/kobodeluxe/sfx/launch.agw +share/kobodeluxe/sfx/launch2.agw +share/kobodeluxe/sfx/marimba1.agw +share/kobodeluxe/sfx/marimba2.agw +share/kobodeluxe/sfx/metallic.raw +share/kobodeluxe/sfx/music.agw +share/kobodeluxe/sfx/noiseburst1.agw +share/kobodeluxe/sfx/noiseburst2.agw +share/kobodeluxe/sfx/noiseburst3.agw +share/kobodeluxe/sfx/noiseflute1.agw +share/kobodeluxe/sfx/oneup.raw +share/kobodeluxe/sfx/phattpad1.agw +share/kobodeluxe/sfx/phattpad2.agw +share/kobodeluxe/sfx/phattpad3.agw +share/kobodeluxe/sfx/ride1.agw +share/kobodeluxe/sfx/ride2.agw +share/kobodeluxe/sfx/ride3.agw +share/kobodeluxe/sfx/ride4.agw +share/kobodeluxe/sfx/rideping1.agw +share/kobodeluxe/sfx/rideping2.agw +share/kobodeluxe/sfx/ring.raw +share/kobodeluxe/sfx/sawsynth1.agw +share/kobodeluxe/sfx/sawsynth2.agw +share/kobodeluxe/sfx/sfx.agw +share/kobodeluxe/sfx/shot.raw +share/kobodeluxe/sfx/sine.agw +share/kobodeluxe/sfx/sineknock1.agw +share/kobodeluxe/sfx/sineknock2.agw +share/kobodeluxe/sfx/snare1.agw +share/kobodeluxe/sfx/snare2.agw +share/kobodeluxe/sfx/snare3.agw +share/kobodeluxe/sfx/snare4.agw +share/kobodeluxe/sfx/snare5.agw +share/kobodeluxe/sfx/speed.agw +share/kobodeluxe/sfx/speed1.agw +share/kobodeluxe/sfx/speed2.agw +share/kobodeluxe/sfx/steelguit1.agw +share/kobodeluxe/sfx/synbass1.agw +share/kobodeluxe/sfx/test2.agw +share/kobodeluxe/sfx/test2.mid +share/kobodeluxe/sfx/thunder1.agw +share/kobodeluxe/sfx/trance1.agw +share/kobodeluxe/sfx/trance1.mid +share/kobodeluxe/sfx/truefm1.agw +share/kobodeluxe/sfx/tububells1.agw +share/kobodeluxe/sfx/tububells2.agw +share/kobodeluxe/sfx/warmpad1.agw +share/kobodeluxe/sfx/xylophone1.agw +share/kobodeluxe/sfx/xylophone2.agw +@exec install -d -m 775 -o root -g games %B/../scores/ +@unexec rm -rf %B/../scores/ +@dirrm share/kobodeluxe/sfx +@dirrm share/kobodeluxe/gfx +@dirrm share/kobodeluxe