diff options
author | adamw <adamw@FreeBSD.org> | 2004-07-06 05:51:01 +0800 |
---|---|---|
committer | adamw <adamw@FreeBSD.org> | 2004-07-06 05:51:01 +0800 |
commit | 0a62c4d3da364567594f7ce880270edb4e92f0c9 (patch) | |
tree | a97078ba31674a757dd767a68a3e6af65a6e55ea /games/bugsquish | |
parent | 3f54a8ceb26e1372d84e34ef2c72ae95c8e85277 (diff) | |
download | freebsd-ports-graphics-0a62c4d3da364567594f7ce880270edb4e92f0c9.tar.gz freebsd-ports-graphics-0a62c4d3da364567594f7ce880270edb4e92f0c9.tar.zst freebsd-ports-graphics-0a62c4d3da364567594f7ce880270edb4e92f0c9.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!
Diffstat (limited to 'games/bugsquish')
-rw-r--r-- | games/bugsquish/Makefile | 40 | ||||
-rw-r--r-- | games/bugsquish/distinfo | 2 | ||||
-rw-r--r-- | games/bugsquish/files/patch-Makefile | 38 | ||||
-rw-r--r-- | games/bugsquish/pkg-descr | 5 |
4 files changed, 85 insertions, 0 deletions
diff --git a/games/bugsquish/Makefile b/games/bugsquish/Makefile new file mode 100644 index 00000000000..1c7f72a92a0 --- /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 00000000000..112429b4659 --- /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 00000000000..4183884846b --- /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 00000000000..f276d24c053 --- /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/ |