Import of icebreaker-1.09
SDL game similar to Jezzball, staring the linux penguin WWW: http://www.mattdm.org/icebreaker/
This commit is contained in:
parent
ee90c11623
commit
a9a81d3c27
34
games/icebreaker/Makefile
Normal file
34
games/icebreaker/Makefile
Normal file
@ -0,0 +1,34 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2001/07/20 02:09:42 pvalchev Exp $
|
||||
|
||||
COMMENT= "jezzball-style, penguin puzzle game"
|
||||
|
||||
DISTNAME= icebreaker-1.09
|
||||
CATEGORIES= games
|
||||
NEED_VERSION= 1.425
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
HOMEPAGE= http://www.mattdm.org/icebreaker/
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}
|
||||
|
||||
MAINTAINER= Peter Valchev <pvalchev@openbsd.org>
|
||||
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
LIB_DEPENDS= SDL_mixer.0.0:sdl-mixer-*:devel/sdl-mixer \
|
||||
smpeg.1.3:smpeg-*:devel/smpeg
|
||||
|
||||
USE_X11= Yes
|
||||
USE_GMAKE= Yes
|
||||
MAKE_ENV= prefix="${PREFIX}" \
|
||||
highscoredir="/var/games/icebreaker"
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/icebreaker
|
||||
${INSTALL_DATA} ${WRKSRC}/*.{wav,bmp} ${PREFIX}/share/icebreaker
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/icebreaker ${PREFIX}/bin
|
||||
|
||||
.include <bsd.port.mk>
|
3
games/icebreaker/files/md5
Normal file
3
games/icebreaker/files/md5
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (icebreaker-1.09.tgz) = 83a9ee09c8969acd7d9c46802087dfff
|
||||
RMD160 (icebreaker-1.09.tgz) = aebb020a0d56658dd19e47f2b22a18c4fb347475
|
||||
SHA1 (icebreaker-1.09.tgz) = f672d48e20a9c60665b39b286ae5b501201ca664
|
26
games/icebreaker/patches/patch-Makefile
Normal file
26
games/icebreaker/patches/patch-Makefile
Normal file
@ -0,0 +1,26 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2001/07/20 02:09:42 pvalchev Exp $
|
||||
--- Makefile.orig Mon Oct 2 18:55:14 2000
|
||||
+++ Makefile Thu Jul 19 19:08:41 2001
|
||||
@@ -1,4 +1,4 @@
|
||||
-CC=gcc
|
||||
+CC?=gcc
|
||||
|
||||
ifndef prefix
|
||||
#prefix=/usr/local
|
||||
@@ -10,14 +10,14 @@ ifndef highscoredir
|
||||
highscoredir=/var/lib/games
|
||||
endif
|
||||
|
||||
-CFLAGS=-Wall -O3 $(SDL_CFLAGS) -DDATAPREFIX=\"$(prefix)/share/icebreaker\" -DHISCOREPREFIX=\"$(highscoredir)\"
|
||||
+CFLAGS+=-Wall $(SDL_CFLAGS) -DDATAPREFIX=\"$(prefix)/share/icebreaker\" -DHISCOREPREFIX=\"$(highscoredir)\"
|
||||
#CFLAGS=-Wall -pg -g $(SDL_CFLAGS)
|
||||
|
||||
SRC=icebreaker.c cursor.c grid.c laundry.c line.c penguin.c sound.c \
|
||||
level.c intro.c text.c status.c transition.c hiscore.c dialog.c
|
||||
|
||||
SDL_MIXER=-lSDL_mixer
|
||||
-SDL_LIB=$(SDL_LDFLAGS) $(SDL_MIXER)
|
||||
+SDL_LIB=$(SDL_LDFLAGS) $(SDL_MIXER) -lsmpeg
|
||||
SDL_CFLAGS := $(shell sdl-config --cflags)
|
||||
SDL_LDFLAGS := $(shell sdl-config --libs)
|
||||
|
47
games/icebreaker/pkg/DEINSTALL
Normal file
47
games/icebreaker/pkg/DEINSTALL
Normal file
@ -0,0 +1,47 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: DEINSTALL,v 1.1.1.1 2001/07/20 02:09:42 pvalchev Exp $
|
||||
#
|
||||
# icebreaker de-installation script
|
||||
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
SCORE_DIR=/var/games/icebreaker
|
||||
|
||||
do_notice()
|
||||
{
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| To completely deinstall the $1 package you need to perform"
|
||||
echo "| this step as root:"
|
||||
echo "|"
|
||||
echo "| rm -rf $SCORE_DIR"
|
||||
echo "|"
|
||||
echo "| Do not do this if you plan on re-installing $1"
|
||||
echo "| at some future time."
|
||||
echo "+---------------"
|
||||
echo
|
||||
}
|
||||
|
||||
# Verify proper execution
|
||||
#
|
||||
if [ $# -ne 2 ]; then
|
||||
echo "usage: $0 distname DEINSTALL" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Verify/process the command
|
||||
#
|
||||
case $2 in
|
||||
DEINSTALL)
|
||||
if [ -d $SCORE_DIR ]; then
|
||||
do_notice "$1"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 distname DEINSTALL" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
25
games/icebreaker/pkg/DESCR
Normal file
25
games/icebreaker/pkg/DESCR
Normal file
@ -0,0 +1,25 @@
|
||||
IceBreaker is a game similar to Jezzball or Barrack. So, there's
|
||||
a bunch of penguins on an iceberg in Antarctica. You have been
|
||||
selected to catch them so they can be shipped to Finland, where
|
||||
they are essential to a secret plot for world domination.
|
||||
|
||||
In order to trap the penguins, you'll need to break the iceberg
|
||||
into small chunks. (They're afraid of water, for no apparent
|
||||
reason.) You do this by melting lines in the ice with Special
|
||||
High-Tech GNU Tools.
|
||||
|
||||
If a penguin hits a line in progress, however, it vanishes with a
|
||||
loud noise, and you lose a life.
|
||||
|
||||
Once 80% or more of the iceberg is gone, the remaining chunks are
|
||||
small enough for shipping. Of course, if you manage to get rid of
|
||||
more than that, you'll save on postage, thus earning you
|
||||
exponential amounts of Geek Cred (a.k.a. "score").
|
||||
|
||||
After you ship off one batch of penguins, it's time to move on to
|
||||
the next. Each subsequent 'berg will have one more penguin, and
|
||||
you'll have one more life. This will continue until you lose, or
|
||||
until you exceed level one hundred or so, which Ain't Gonna
|
||||
Happen.
|
||||
|
||||
WWW: ${HOMEPAGE}
|
65
games/icebreaker/pkg/INSTALL
Normal file
65
games/icebreaker/pkg/INSTALL
Normal file
@ -0,0 +1,65 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: INSTALL,v 1.1.1.1 2001/07/20 02:09:42 pvalchev Exp $
|
||||
#
|
||||
# installation score file setup for icebreaker
|
||||
|
||||
# exit on errors, use a sane path and install prefix
|
||||
#
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
SCORE_DIR=/var/games/icebreaker
|
||||
SCORE_FILE=/var/games/icebreaker/icebreaker.scores
|
||||
|
||||
# Function: tell the user what they need to do to use the port just installed
|
||||
#
|
||||
do_notice()
|
||||
{
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| The existing $1 score file,"
|
||||
echo "| $SCORE_FILE,"
|
||||
echo "| has NOT been changed."
|
||||
echo "+---------------"
|
||||
echo
|
||||
}
|
||||
|
||||
# Function: install a blank file to be used as the icebreaker score file
|
||||
#
|
||||
do_install()
|
||||
{
|
||||
mkdir $SCORE_DIR
|
||||
chown root.games $SCORE_DIR
|
||||
touch $SCORE_FILE
|
||||
chmod 775 $SCORE_DIR
|
||||
chown root.games $SCORE_FILE
|
||||
chmod 664 $SCORE_FILE
|
||||
}
|
||||
|
||||
# verify proper execution
|
||||
#
|
||||
if [ $# -ne 2 ]; then
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Verify/process the command
|
||||
#
|
||||
case $2 in
|
||||
PRE-INSTALL)
|
||||
: nothing to pre-install for this port
|
||||
;;
|
||||
POST-INSTALL)
|
||||
if [ -f $SCORE_FILE ]; then
|
||||
do_notice $1
|
||||
else
|
||||
do_install $1
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
7
games/icebreaker/pkg/PLIST
Normal file
7
games/icebreaker/pkg/PLIST
Normal file
@ -0,0 +1,7 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/07/20 02:09:42 pvalchev Exp $
|
||||
bin/icebreaker
|
||||
share/icebreaker/crash.wav
|
||||
share/icebreaker/icebreaker_48.bmp
|
||||
share/icebreaker/ouch.wav
|
||||
share/icebreaker/penguin.bmp
|
||||
@dirrm share/icebreaker
|
Loading…
Reference in New Issue
Block a user