diff options
Diffstat (limited to 'games/bugsquish/Makefile')
-rw-r--r-- | games/bugsquish/Makefile | 40 |
1 files changed, 40 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> |