aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2004-07-05 21:51:01 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2004-07-05 21:51:01 +0000
commit45bf9f6c73f8232085f9f4265ac9c648e786965e (patch)
treea6c7bf9f4a5a55b91970eb3dca5bd172e1723725 /games
parent76cf35449620df7c9ce835687280c3ac5a9a8ff5 (diff)
downloadports-45bf9f6c73f8232085f9f4265ac9c648e786965e.tar.gz
ports-45bf9f6c73f8232085f9f4265ac9c648e786965e.zip
Add bugsquish, a pointlessly cheesy game with REALLY obnoxious
sound effects wherein you squish bugs before they reach an arm that looks like it spent about 6 months locked in a tanning booth set to "melt." It even comes with a run-time message telling you not to play it too much!
Notes
Notes: svn path=/head/; revision=113005
Diffstat (limited to 'games')
-rw-r--r--games/Makefile1
-rw-r--r--games/bugsquish/Makefile40
-rw-r--r--games/bugsquish/distinfo2
-rw-r--r--games/bugsquish/files/patch-Makefile38
-rw-r--r--games/bugsquish/pkg-descr5
5 files changed, 86 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index 963036e43019..f99ea1ac107a 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -57,6 +57,7 @@
SUBDIR += bs
SUBDIR += bsdtris
SUBDIR += bsp
+ SUBDIR += bugsquish
SUBDIR += bugsx
SUBDIR += burgerspace
SUBDIR += bzflag
diff --git a/games/bugsquish/Makefile b/games/bugsquish/Makefile
new file mode 100644
index 000000000000..1c7f72a92a0a
--- /dev/null
+++ b/games/bugsquish/Makefile
@@ -0,0 +1,40 @@
+# New ports collection makefile for: bugsquish
+# Date created: 2004 05 July
+# Whom: Adam Weinberger <adamw@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= bugsquish
+PORTVERSION= 0.0.6
+CATEGORIES= games
+MASTER_SITES= ftp://ftp.sonic.net/pub/users/nbs/unix/x/bugsquish/src/
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= Bug-squishing, fly-swatting action
+
+USE_SDL= mixer image
+USE_GMAKE= yes
+USE_REINPLACE= yes
+PLIST= ${WRKDIR}/plist
+
+post-patch:
+ ${REINPLACE_CMD} -e "/^#include/s|<SDL|<SDL11/SDL|g" \
+ ${WRKSRC}/bugsquish.c
+
+do-install:
+ ${MKDIR} ${DATADIR}
+ ${CP} -R ${WRKSRC}/data/* ${DATADIR}
+ ${FIND} ${DATADIR} -type f | ${XARGS} ${CHMOD} 644
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+
+pre-install:
+ -${RM} ${PLIST}
+ ${ECHO_CMD} bin/${PORTNAME} >> ${PLIST}
+ cd ${WRKSRC} && ${FIND} data ! -type d | ${SORT} \
+ | ${SED} -e "s|^data|%%DATADIR%%|" >> ${PLIST};
+ cd ${WRKSRC} && ${FIND} data -type d ! -empty | ${SORT} -r \
+ | ${SED} -e "s|^data|@dirrm %%DATADIR%%|" \
+ | ${GREP} / >> ${PLIST}
+
+.include <bsd.port.mk>
diff --git a/games/bugsquish/distinfo b/games/bugsquish/distinfo
new file mode 100644
index 000000000000..112429b46595
--- /dev/null
+++ b/games/bugsquish/distinfo
@@ -0,0 +1,2 @@
+MD5 (bugsquish-0.0.6.tar.gz) = 38543cbab878416299abb8194816424a
+SIZE (bugsquish-0.0.6.tar.gz) = 765518
diff --git a/games/bugsquish/files/patch-Makefile b/games/bugsquish/files/patch-Makefile
new file mode 100644
index 000000000000..4183884846bc
--- /dev/null
+++ b/games/bugsquish/files/patch-Makefile
@@ -0,0 +1,38 @@
+--- Makefile.orig Fri Apr 19 04:15:27 2002
++++ Makefile Mon Jul 5 17:23:01 2004
+@@ -9,8 +9,8 @@
+
+ # User-definable stuff:
+
+-BIN_PREFIX=/usr/local/bin/
+-DATA_PREFIX=/usr/share/bugsquish/
++BIN_PREFIX=${PREFIX}/bin/
++DATA_PREFIX=${PREFIX}/share/bugsquish/
+
+
+ # Defaults for Linux:
+@@ -19,7 +19,7 @@
+ TARGET_DEF=LINUX
+
+
+-CFLAGS=-Wall -O2 $(SDL_CFLAGS) -DDATA_PREFIX=\"$(DATA_PREFIX)\" \
++CFLAGS+=-Wall $(SDL_CFLAGS) -DDATA_PREFIX=\"$(DATA_PREFIX)\" \
+ -D$(NOSOUNDFLAG) -D$(TARGET_DEF)
+
+
+@@ -29,11 +29,11 @@
+ IMAGE=-lSDL_image
+ NOSOUNDFLAG=__SOUND
+ SDL_LIB=$(SDL_LDFLAGS) $(MIXER) $(IMAGE)
+-SDL_CFLAGS := $(shell sdl-config --cflags)
+-SDL_LDFLAGS := $(shell sdl-config --libs)
++SDL_CFLAGS := $(shell sdl11-config --cflags)
++SDL_LDFLAGS := $(shell sdl11-config --libs)
+
+-installbin = install -g root -o root -m 755
+-installdat = install -g root -o root -m 644
++installbin = ${BSD_INSTALL_BIN}
++installdat = ${BSD_INSTALL_DATA}
+
+
+ # Make commands:
diff --git a/games/bugsquish/pkg-descr b/games/bugsquish/pkg-descr
new file mode 100644
index 000000000000..f276d24c0537
--- /dev/null
+++ b/games/bugsquish/pkg-descr
@@ -0,0 +1,5 @@
+In Bug Squish, you must defend your arm from an onslaught of
+blood-sucking insects. Use your fly-swatter to squish them before they
+suck you dry.
+
+WWW: http://www.newbreedsoftware.com/bugsquish/