aboutsummaryrefslogtreecommitdiff
path: root/games/cavezofphear
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-09-20 21:52:05 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-09-20 21:52:05 +0000
commit0c0184736ac51b88dd1634090e7fd138defead30 (patch)
tree6fdc86a7d65edeede9ae48b4254f33c6d1270f76 /games/cavezofphear
parent56da3104ce63288b343a83f16cdffbc19f8b968f (diff)
downloadports-0c0184736ac51b88dd1634090e7fd138defead30.tar.gz
ports-0c0184736ac51b88dd1634090e7fd138defead30.zip
Notes
Diffstat (limited to 'games/cavezofphear')
-rw-r--r--games/cavezofphear/Makefile69
-rw-r--r--games/cavezofphear/distinfo2
-rw-r--r--games/cavezofphear/files/patch-isready.c12
-rw-r--r--games/cavezofphear/pkg-descr7
4 files changed, 90 insertions, 0 deletions
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 <tlp@liquidx.org>
+#
+# $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 <bsd.port.mk>
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 <stdio.h>
++#include <inttypes.h>
++#include <sys/types.h>
+ #include <sys/select.h>
+ #include <sys/time.h>
++#include <string.h>
+
+ 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