From 0c0184736ac51b88dd1634090e7fd138defead30 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Tue, 20 Sep 2005 21:52:05 +0000 Subject: Boulder Dash / Digger-like game written using ncurses PR: ports/83939 Submitted by: Travis Poppe --- games/cavezofphear/Makefile | 69 ++++++++++++++++++++++++++++++++ games/cavezofphear/distinfo | 2 + games/cavezofphear/files/patch-isready.c | 12 ++++++ games/cavezofphear/pkg-descr | 7 ++++ 4 files changed, 90 insertions(+) create mode 100644 games/cavezofphear/Makefile create mode 100644 games/cavezofphear/distinfo create mode 100644 games/cavezofphear/files/patch-isready.c create mode 100644 games/cavezofphear/pkg-descr (limited to 'games/cavezofphear') diff --git a/games/cavezofphear/Makefile b/games/cavezofphear/Makefile new file mode 100644 index 000000000000..b0a18a54c398 --- /dev/null +++ b/games/cavezofphear/Makefile @@ -0,0 +1,69 @@ +# New ports collection makefile for: cavezofphear +# Date created: 23 July 2005 +# Whom: Travis Poppe +# +# $FreeBSD$ +# + +PORTNAME= cavezofphear +PORTVERSION= 0.1 +CATEGORIES= games +MASTER_SITES= http://www.x86.no/cavezofphear/ +DISTNAME= phear-${PORTVERSION} + +MAINTAINER= tlp@liquidx.org +COMMENT= Boulder Dash / Digger-like game written using ncurses + +WRKSRC= ${WRKDIR}/phear-${PORTVERSION}/src +USE_BZIP2= yes +USE_GMAKE= yes +USE_REINPLACE= yes + +PLIST_DIRS= share/${PORTNAME}/levels share/${PORTNAME} + +PLIST_FILES= bin/phear bin/phear-editor \ + share/${PORTNAME}/gover share/${PORTNAME}/htext \ + share/${PORTNAME}/spgraf share/${PORTNAME}/tdesc \ + share/${PORTNAME}/levels/01 share/${PORTNAME}/levels/02 \ + share/${PORTNAME}/levels/03 share/${PORTNAME}/levels/04 \ + share/${PORTNAME}/levels/05 + +PORTDOCS= AUTHORS ChangeLog README README-EDITOR TODO + +FIXME= chk.c main.c splash.c + +pre-build: +.for i in ${FIXME} + ${REINPLACE_CMD} -e 's|data/|${DATADIR}/|' ${WRKSRC}/${i} +.endfor + @${REINPLACE_CMD} -e 's|usage: editor|usage: phear-editor|' \ + ${WRKSRC}/editor.c + @${REINPLACE_CMD} -e 's|./editor|phear-editor|' \ + ${WRKSRC}/../README-EDITOR + @${REINPLACE_CMD} -e 's|./phear|phear|' \ + ${WRKSRC}/../README-EDITOR + +do-install: + ${MKDIR} ${DATADIR} + ${MKDIR} ${DATADIR}/levels + ${INSTALL_DATA} ${WRKSRC}/../data/gover ${DATADIR}/gover + ${INSTALL_DATA} ${WRKSRC}/../data/htext ${DATADIR}/htext + ${INSTALL_DATA} ${WRKSRC}/../data/spgraf ${DATADIR}/spgraf + ${INSTALL_DATA} ${WRKSRC}/../data/tdesc ${DATADIR}/tdesc + ${INSTALL_DATA} ${WRKSRC}/../data/levels/01 ${DATADIR}/levels/01 + ${INSTALL_DATA} ${WRKSRC}/../data/levels/02 ${DATADIR}/levels/02 + ${INSTALL_DATA} ${WRKSRC}/../data/levels/03 ${DATADIR}/levels/03 + ${INSTALL_DATA} ${WRKSRC}/../data/levels/04 ${DATADIR}/levels/04 + ${INSTALL_DATA} ${WRKSRC}/../data/levels/05 ${DATADIR}/levels/05 + ${INSTALL_PROGRAM} ${WRKSRC}/../phear ${PREFIX}/bin/phear + ${INSTALL_PROGRAM} ${WRKSRC}/../editor ${PREFIX}/bin/phear-editor +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/../AUTHORS ${DOCSDIR}/AUTHORS + ${INSTALL_DATA} ${WRKSRC}/../ChangeLog ${DOCSDIR}/ChangeLog + ${INSTALL_DATA} ${WRKSRC}/../README ${DOCSDIR}/README + ${INSTALL_DATA} ${WRKSRC}/../README-EDITOR ${DOCSDIR}/README-EDITOR + ${INSTALL_DATA} ${WRKSRC}/../TODO ${DOCSDIR}/TODO +.endif + +.include diff --git a/games/cavezofphear/distinfo b/games/cavezofphear/distinfo new file mode 100644 index 000000000000..65226d18c5ec --- /dev/null +++ b/games/cavezofphear/distinfo @@ -0,0 +1,2 @@ +MD5 (phear-0.1.tar.bz2) = 10875ba2d574e7e3cb293129876ee95d +SIZE (phear-0.1.tar.bz2) = 16858 diff --git a/games/cavezofphear/files/patch-isready.c b/games/cavezofphear/files/patch-isready.c new file mode 100644 index 000000000000..8e0fa50b2ba0 --- /dev/null +++ b/games/cavezofphear/files/patch-isready.c @@ -0,0 +1,12 @@ +--- isready.c.orig Wed Nov 5 16:00:45 2003 ++++ isready.c Tue Sep 20 23:43:45 2005 +@@ -1,6 +1,9 @@ + #include ++#include ++#include + #include + #include ++#include + + int isready(int fd); + diff --git a/games/cavezofphear/pkg-descr b/games/cavezofphear/pkg-descr new file mode 100644 index 000000000000..bab28e457833 --- /dev/null +++ b/games/cavezofphear/pkg-descr @@ -0,0 +1,7 @@ +Boulder Dash / Digger-like game written using ncurses. The game has +support for custom levels / maps, and a level editor is included. + +WWW: http://www.x86.no/cavezofphear/ + +- Travis Poppe +tlp@liquidx.org -- cgit v1.2.3