aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--games/bsdgames/Makefile2
-rw-r--r--games/bsdgames/files/Makefile37
-rw-r--r--games/bsdgames/pkg-plist2
-rw-r--r--games/freebsd-games/Makefile2
-rw-r--r--games/freebsd-games/files/Makefile37
-rw-r--r--games/freebsd-games/pkg-plist2
6 files changed, 82 insertions, 0 deletions
diff --git a/games/bsdgames/Makefile b/games/bsdgames/Makefile
index 66362f3100f7..5934b80ceb69 100644
--- a/games/bsdgames/Makefile
+++ b/games/bsdgames/Makefile
@@ -37,6 +37,7 @@ MAN6= \
pig.6 \
quiz.6 \
robots.6 \
+ rogue.6 \
sail.6 \
snake.6 \
snscore.6 \
@@ -49,6 +50,7 @@ MANCOMPRESSED= maybe
IGNOREFILES= freebsd-games-5.0.tar.bz2
post-extract:
+ @${CP} ${FILESDIR}/Makefile ${BUILD_WRKSRC}
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} \
${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} extract)
diff --git a/games/bsdgames/files/Makefile b/games/bsdgames/files/Makefile
new file mode 100644
index 000000000000..ca13bede5c11
--- /dev/null
+++ b/games/bsdgames/files/Makefile
@@ -0,0 +1,37 @@
+# $FreeBSD$
+.include "Makefile.inc"
+
+GAMES= adventure arithmetic atc backgammon battlestar bs canfield cribbage \
+ fish hack hangman larn mille phantasia piano pig quiz robots rogue \
+ sail snake trek worm wump
+all: ${GAMES}
+.for I in ${GAMES}
+ cd ${I} && make depend && make all
+.endfor
+
+install: ${GAMES}
+ mtree -deU -f var.mtree -p ${VARDIR}
+ mtree -deU -f share.mtree -p ${SHAREDIR}
+.for I in ${GAMES}
+ cd ${I} && make install
+.endfor
+
+clean: ${GAMES}
+.for I in ${GAMES}
+ cd ${I} && make clean
+.endfor
+
+extract: ${GAMES}
+
+.for I in ${GAMES}
+${I}:
+ cvs -d `pwd`/cvs get ${I}
+.endfor
+
+commit:
+.for I in ${GAMES}
+ cvs -d `pwd`/cvs commit -F ./commitmsg ${I}
+.endfor
+
+distclean:
+ rm -rf ${GAMES}
diff --git a/games/bsdgames/pkg-plist b/games/bsdgames/pkg-plist
index 3ecee06a7173..4c0ebf9239e3 100644
--- a/games/bsdgames/pkg-plist
+++ b/games/bsdgames/pkg-plist
@@ -19,6 +19,7 @@ bin/piano
bin/pig
bin/quiz
bin/robots
+bin/rogue
bin/sail
bin/snake
bin/snscore
@@ -101,6 +102,7 @@ battlestar.log
cfscores
criblog
robots_roll
+rogue.scores
saillog
snakerawscores
snake.log
diff --git a/games/freebsd-games/Makefile b/games/freebsd-games/Makefile
index 66362f3100f7..5934b80ceb69 100644
--- a/games/freebsd-games/Makefile
+++ b/games/freebsd-games/Makefile
@@ -37,6 +37,7 @@ MAN6= \
pig.6 \
quiz.6 \
robots.6 \
+ rogue.6 \
sail.6 \
snake.6 \
snscore.6 \
@@ -49,6 +50,7 @@ MANCOMPRESSED= maybe
IGNOREFILES= freebsd-games-5.0.tar.bz2
post-extract:
+ @${CP} ${FILESDIR}/Makefile ${BUILD_WRKSRC}
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} \
${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} extract)
diff --git a/games/freebsd-games/files/Makefile b/games/freebsd-games/files/Makefile
new file mode 100644
index 000000000000..ca13bede5c11
--- /dev/null
+++ b/games/freebsd-games/files/Makefile
@@ -0,0 +1,37 @@
+# $FreeBSD$
+.include "Makefile.inc"
+
+GAMES= adventure arithmetic atc backgammon battlestar bs canfield cribbage \
+ fish hack hangman larn mille phantasia piano pig quiz robots rogue \
+ sail snake trek worm wump
+all: ${GAMES}
+.for I in ${GAMES}
+ cd ${I} && make depend && make all
+.endfor
+
+install: ${GAMES}
+ mtree -deU -f var.mtree -p ${VARDIR}
+ mtree -deU -f share.mtree -p ${SHAREDIR}
+.for I in ${GAMES}
+ cd ${I} && make install
+.endfor
+
+clean: ${GAMES}
+.for I in ${GAMES}
+ cd ${I} && make clean
+.endfor
+
+extract: ${GAMES}
+
+.for I in ${GAMES}
+${I}:
+ cvs -d `pwd`/cvs get ${I}
+.endfor
+
+commit:
+.for I in ${GAMES}
+ cvs -d `pwd`/cvs commit -F ./commitmsg ${I}
+.endfor
+
+distclean:
+ rm -rf ${GAMES}
diff --git a/games/freebsd-games/pkg-plist b/games/freebsd-games/pkg-plist
index 3ecee06a7173..4c0ebf9239e3 100644
--- a/games/freebsd-games/pkg-plist
+++ b/games/freebsd-games/pkg-plist
@@ -19,6 +19,7 @@ bin/piano
bin/pig
bin/quiz
bin/robots
+bin/rogue
bin/sail
bin/snake
bin/snscore
@@ -101,6 +102,7 @@ battlestar.log
cfscores
criblog
robots_roll
+rogue.scores
saillog
snakerawscores
snake.log