diff --git a/games/bsdtris/Makefile b/games/bsdtris/Makefile index 4160fb9d395d..38d3848396bc 100644 --- a/games/bsdtris/Makefile +++ b/games/bsdtris/Makefile @@ -1,17 +1,17 @@ PORTNAME= bsdtris PORTVERSION= 1.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= games MASTER_SITES= http://www.mavetju.org/download/adopted/ DISTNAME= ${PORTNAME}-01092003 MAINTAINER= ports@FreeBSD.org COMMENT= BSD version of text-based Tetris game LICENSE= BSD3CLAUSE USES= ncurses MAKE_ARGS= TMPLDFLAGS="-lncurses" NO_WRKSUBDIR= yes .include diff --git a/games/bsdtris/files/patch-Makefile b/games/bsdtris/files/patch-Makefile index 190b2a9ca217..d4982dcf258c 100644 --- a/games/bsdtris/files/patch-Makefile +++ b/games/bsdtris/files/patch-Makefile @@ -1,25 +1,25 @@ --- Makefile.orig 2014-08-16 10:46:48 UTC +++ Makefile @@ -0,0 +1,22 @@ +# Makefile for Tetris + +TMPLDFLAGS+= -lcurses -ltermcap +SRCS= screen.c shapes.c input.c tetris.c scores.c + +PREFIX?=/usr/local +MKDIR?=mkdir -p + +all: +. for files in ${SRCS} + ${CC} ${CFLAGS} ${LDFLAGS} -c ${files} +. endfor + ${CC} ${CFLAGS} ${LDFLAGS} ${TMPLDFLAGS} -o tetris input.o scores.o \ + screen.o shapes.o tetris.o + +install: + ${BSD_INSTALL_PROGRAM} tetris ${DESTDIR}${PREFIX}/bin/bsdtris -+ ${BSD_INSTALL_MAN} tetris.6 ${DESTDIR}${MANPREFIX}/man/man6/bsdtris.6 ++ ${BSD_INSTALL_MAN} tetris.6 ${DESTDIR}${PREFIX}/share/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 ae662091c119..3948db4ab16e 100644 --- a/games/bsdtris/pkg-plist +++ b/games/bsdtris/pkg-plist @@ -1,4 +1,4 @@ @(,games,) bin/bsdtris -man/man6/bsdtris.6.gz +share/man/man6/bsdtris.6.gz @postexec touch /var/games/bsdtris.scores ; chmod 664 /var/games/bsdtris.scores ; chgrp games /var/games/bsdtris.scores @rmempty /var/games/bsdtris.scores