aboutsummaryrefslogtreecommitdiffstats
path: root/games/bsdgames/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/bsdgames/Makefile')
-rw-r--r--games/bsdgames/Makefile19
1 files changed, 10 insertions, 9 deletions
diff --git a/games/bsdgames/Makefile b/games/bsdgames/Makefile
index 6b7b2de99363..9943a2b76548 100644
--- a/games/bsdgames/Makefile
+++ b/games/bsdgames/Makefile
@@ -2,22 +2,21 @@
# $FreeBSD$
PORTNAME= bsdgames
-PORTVERSION= 2.4
-PORTREVISION= 3
+PORTVERSION= 3.8.1
PORTEPOCH= 1
CATEGORIES= games
-# Fetched from http://gitweb.dragonflybsd.org/dragonfly.git/tree/v2.4.0:/games
+# Fetched from http://gitweb.dragonflybsd.org/dragonfly.git/tree/v${PORTVERSION}:/games
# Content is stable, but file timestamps differ. Bad gitweb, no cookie!
MASTER_SITES= ${MASTER_SITE_LOCAL}
-MASTER_SITE_SUBDIR= uqs
+MASTER_SITE_SUBDIR= adamw
MAINTAINER= adamw@FreeBSD.org
COMMENT= Traditional BSD games taken from DragonFly BSD
CONFLICTS= hangman-*
-USES= tar:bzip2
-WRKSRC= ${WRKDIR}/dragonfly
+USES= tar:xz
+#WRKSRC= ${WRKDIR}/dragonfly
MAKE_ENV+= NO_WERROR=1
# contain /usr/share/games
@@ -65,17 +64,19 @@ post-patch:
${REINPLACE_CMD} -e 's/HIDEGAME/SGIDGAME/' \
${WRKSRC}/$${f}/Makefile; \
done
+ @${FIND} ${WRKSRC} -type f | ${XARGS} \
+ ${REINPLACE_CMD} -e 's|/var/games/|${PREFIX}&|g'
pre-install:
.for d in atc larn quiz.db
@${MKDIR} ${STAGEDIR}${PREFIX}/share/games/$d
.endfor
.for d in atc battlestar hackdir/save larn phantasia
- @${MKDIR} ${STAGEDIR}/var/games/$d
+ @${MKDIR} ${STAGEDIR}${PREFIX}/var/games/$d
.endfor
post-install:
- @${TOUCH} ${STAGEDIR}/var/games/atc_score
- @${FIND} ${STAGEDIR}/var/games -type f -exec ${MV} {} {}.sample \;
+ @${TOUCH} ${STAGEDIR}${PREFIX}/var/games/atc_score
+ @${FIND} ${STAGEDIR}${PREFIX}/var/games -type f -exec ${MV} {} {}.sample \;
.include <bsd.port.mk>