freebsd-ports/games/bugsquish/Makefile
Adam Weinberger 45bf9f6c73 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!
2004-07-05 21:51:01 +00:00

40 lines
1 KiB
Makefile

# 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>