aboutsummaryrefslogtreecommitdiffstats
path: root/games/bsdtris
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2014-08-16 19:23:28 +0800
committermarino <marino@FreeBSD.org>2014-08-16 19:23:28 +0800
commiteb0288c6b6ca3088d5a1376650936ec24daed4b4 (patch)
tree5ba8402f81ddbc3039237346c8f9f7760172423b /games/bsdtris
parent6d4884e4ac647f31a7904c78ee6960cf3683d5f8 (diff)
downloadfreebsd-ports-gnome-eb0288c6b6ca3088d5a1376650936ec24daed4b4.tar.gz
freebsd-ports-gnome-eb0288c6b6ca3088d5a1376650936ec24daed4b4.tar.zst
freebsd-ports-gnome-eb0288c6b6ca3088d5a1376650936ec24daed4b4.zip
Stage games/bsdtris
Note that scores file moves from $PREFIX/var/games to /var/games PR: 192691 Submitted by: Christian Mangin Improvements: marino
Diffstat (limited to 'games/bsdtris')
-rw-r--r--games/bsdtris/Makefile7
-rw-r--r--games/bsdtris/files/patch-Makefile15
-rw-r--r--games/bsdtris/pkg-plist5
3 files changed, 12 insertions, 15 deletions
diff --git a/games/bsdtris/Makefile b/games/bsdtris/Makefile
index b92292da0398..39a3c7cd4634 100644
--- a/games/bsdtris/Makefile
+++ b/games/bsdtris/Makefile
@@ -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>
diff --git a/games/bsdtris/files/patch-Makefile b/games/bsdtris/files/patch-Makefile
index d3b62a702f86..7f5976324904 100644
--- a/games/bsdtris/files/patch-Makefile
+++ b/games/bsdtris/files/patch-Makefile
@@ -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
diff --git a/games/bsdtris/pkg-plist b/games/bsdtris/pkg-plist
index b5721db2c943..4695d65fe630 100644
--- a/games/bsdtris/pkg-plist
+++ b/games/bsdtris/pkg-plist
@@ -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