diff options
author | John Marino <marino@FreeBSD.org> | 2014-08-16 11:23:28 +0000 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2014-08-16 11:23:28 +0000 |
commit | cc4d718dcf46fc9c22b5a91205b4fd3f4a351f41 (patch) | |
tree | 5ba8402f81ddbc3039237346c8f9f7760172423b /games | |
parent | 65ded05f74ae1fdeb404e44ba6ec1bb2920e1727 (diff) | |
download | ports-cc4d718dcf46fc9c22b5a91205b4fd3f4a351f41.tar.gz ports-cc4d718dcf46fc9c22b5a91205b4fd3f4a351f41.zip |
Notes
Diffstat (limited to 'games')
-rw-r--r-- | games/bsdtris/Makefile | 7 | ||||
-rw-r--r-- | games/bsdtris/files/patch-Makefile | 15 | ||||
-rw-r--r-- | games/bsdtris/pkg-plist | 5 |
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 |