Import OilWar 1.2.1; submitted by Jolan Luff <jolan@cryptonomicon.org>

An evil army is attacking your land and tries to steal your oil.
Waste the invaders, protect the oil, protect the motherland.
This commit is contained in:
wilfried 2003-04-14 09:09:50 +00:00
parent 5fa2ac2da7
commit 8f6a3d27f0
6 changed files with 91 additions and 0 deletions

44
games/oilwar/Makefile Normal file
View File

@ -0,0 +1,44 @@
# $OpenBSD: Makefile,v 1.1.1.1 2003/04/14 09:09:50 wilfried Exp $
COMMENT= "sdl shoot 'em up; stop evil army from getting your oil"
DISTNAME= OilWar-1.2.1
PKGNAME= ${DISTNAME:L}
CATEGORIES= games x11
MASTER_SITES= http://www.2ndpoint.fi/projektit/filut/
HOMEPAGE= http://www.2ndpoint.fi/projektit/oilwar.html
MAINTAINER= Jolan Luff <jolan@cryptonomicon.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MODULES= gcc3
MODGCC3_ARCHES= sparc64
MODGCC3_LANGS= C++
USE_X11= Yes
LIB_DEPENDS= SDL_image::devel/sdl-image
CONFIGURE_STYLE=gnu
FLAVORS= no_sound
FLAVOR?=
.if ${FLAVOR:L:Mno_sound}
CONFIGURE_ARGS+=--disable-sound
.else
LIB_DEPENDS+= SDL_mixer::devel/sdl-mixer
.endif
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/oilwar
${INSTALL_DATA} ${WRKSRC}/*.{png,wav} ${PREFIX}/share/oilwar
${INSTALL_PROGRAM} ${WRKSRC}/oilwar ${PREFIX}/bin
.include <bsd.port.mk>

3
games/oilwar/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (OilWar-1.2.1.tar.gz) = 6286e7f5a5f4f8ce6489a996b188caa2
RMD160 (OilWar-1.2.1.tar.gz) = c59713f00d00da025f01d1daa34bf514d035d8d4
SHA1 (OilWar-1.2.1.tar.gz) = 57193eccb2ac3244705b9c208876df0ebdc6cb8b

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2003/04/14 09:09:50 wilfried Exp $
--- Makefile.in.orig Mon Mar 31 07:59:46 2003
+++ Makefile.in Mon Mar 31 16:29:16 2003
@@ -84,7 +84,7 @@ singlegunshot.wav bulletricochet.wav exp
scorefiledir = /var/games
scorefile_DATA = oilwar.scores
-AM_CPPFLAGS = $(sound_flag) -DDATA_DIR=\"$(datafiledir)/\" -DSCORE_DIR=\"$(scorefiledir)/\"
+AM_CPPFLAGS = $(sound_flag) -DDATA_DIR=\"$(prefix)/share/oilwar/\" -DSCORE_DIR=\"$(prefix)/share/oilwar/\"
bin_PROGRAMS = oilwar
oilwar_SOURCES = Main.hpp Main.cpp cParticleSystem.hpp cParticleSystem.cpp Config.hpp

15
games/oilwar/pkg/DESCR Normal file
View File

@ -0,0 +1,15 @@
.:Story:.
Evil army is attacking your land and tries to steal your oil.
.:Mission:.
Waste the invaders, protect the oil, protect the mother land...
.:Controls:.
Left mouse button: Shoot rifle
Right mouse button: Shoot grenade
F10: Screenshot
F11: Toggle fullscreen
There is a no_sound flavor, that does not require a soundcard to run.
WWW: ${HOMEPAGE}

View File

@ -0,0 +1,5 @@
@comment $OpenBSD: PFRAG.no-no_sound,v 1.1.1.1 2003/04/14 09:09:50 wilfried Exp $
share/oilwar/bulletricochet.wav
share/oilwar/explode.wav
share/oilwar/gasp.wav
share/oilwar/singlegunshot.wav

12
games/oilwar/pkg/PLIST Normal file
View File

@ -0,0 +1,12 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2003/04/14 09:09:50 wilfried Exp $
@group games
@mode 2555
bin/oilwar
@group
@mode
share/oilwar/background.png
share/oilwar/bitmaps.png
!%%no_sound%%
@exec install -m 664 -o root -g games /dev/null %B/oilwar.scores
@unexec rm -f %B/oilwar.scores
@dirrm share/oilwar