Stage games/bsdtris

Note that scores file moves from $PREFIX/var/games to /var/games

PR:		192691
Submitted by:	Christian Mangin
Improvements:	marino
This commit is contained in:
John Marino 2014-08-16 11:23:28 +00:00
parent 65ded05f74
commit cc4d718dcf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=365072
3 changed files with 12 additions and 15 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= bsdtris
PORTVERSION= 1.1
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://www.mavetju.org/download/adopted/
DISTNAME= ${PORTNAME}-01092003
@ -12,13 +13,7 @@ COMMENT= BSD version of text-based Tetris game
NO_WRKSUBDIR= yes
MAN6= bsdtris.6
NO_STAGE= yes
post-patch:
${REINPLACE_CMD} -E "s|%%PREFIX%%|${PREFIX}|" ${WRKSRC}/pathnames.h
post-install:
${INSTALL_MAN} ${WRKSRC}/tetris.6 ${PREFIX}/man/man6/bsdtris.6
.include <bsd.port.mk>

View File

@ -1,6 +1,6 @@
--- Makefile.orig Tue Apr 1 23:23:08 2003
+++ Makefile Tue Apr 1 23:23:43 2003
@@ -0,0 +1,26 @@
--- Makefile.orig 2014-08-16 10:46:48 UTC
+++ Makefile
@@ -0,0 +1,23 @@
+# Makefile for Tetris
+# $FreeBSD: /tmp/pcvs/ports/games/bsdtris/files/patch-Makefile,v 1.1 2003-04-02 13:02:40 edwin Exp $
+
@ -18,12 +18,9 @@
+ screen.o shapes.o tetris.o
+
+install:
+ ${INSTALL} -g games -m 2555 tetris ${PREFIX}/bin/bsdtris
+. if !exists(${PREFIX}/var/games/bsdtris.scores)
+ ${MKDIR} ${PREFIX}/var/games
+ ${INSTALL} -g games -m 664 /dev/null \
+ ${PREFIX}/var/games/bsdtris.scores
+.endif
+ ${BSD_INSTALL_PROGRAM} tetris ${DESTDIR}${PREFIX}/bin/bsdtris
+ ${BSD_INSTALL_MAN} tetris.6 ${DESTDIR}${MANPREFIX}/man/man6/bsdtris.6
+ ${MKDIR} ${DESTDIR}/var/games
+
+clean:
+ rm -f *.o *.core

View File

@ -1 +1,6 @@
@group games
bin/bsdtris
@group
man/man6/bsdtris.6.gz
@exec touch /var/games/bsdtris.scores ; chmod 664 /var/games/bsdtris.scores ; chgrp games /var/games/bsdtris.scores
@unexec if test ! -s /var/games/bsdtris.scores; then rm -f /var/games/bsdtris.scores; fi