Approved by:	gmarco@gufi.org (maintainer)
This commit is contained in:
Guido Falsi 2014-06-17 19:22:50 +00:00
parent 33030eab09
commit 82c80d4504
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=358162
2 changed files with 16 additions and 13 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= xtet42
PORTVERSION= 2.21
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= games
MASTER_SITES= http://utenti.gufi.org/~gmarco/files/distfiles/
@ -14,22 +14,19 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-setgid=games
USE_XORG= x11
MAN6= xtet42.6
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e 's,^hiscoredir.*,hiscoredir=${DATADIR},' \
${WRKSRC}/Makefile.in
do-install:
${MKDIR} ${DATADIR}
@${CHOWN} root:games ${DATADIR}
@${CHMOD} 775 ${DATADIR}
${INSTALL} -c -m 2755 -g games ${WRKSRC}/xtet42 ${PREFIX}/bin
${INSTALL} -c -m 664 -g games ${WRKSRC}/xtet42.hiscore ${DATADIR}/.xtet42.hiscore
${INSTALL} -c -m 664 -g games ${WRKSRC}/xtet42.hiscore.single ${DATADIR}/.xtet42.hiscore.single
${INSTALL} -c -m 664 -g games /dev/null ${DATADIR}/.xtet42.unlock
${INSTALL} -c -m 664 -g games /dev/null ${DATADIR}/.xtet42.log
${INSTALL_MAN} ${WRKSRC}/xtet42.6 ${MANPREFIX}/man/man6
${MKDIR} ${STAGEDIR}${DATADIR}
@${CHMOD} 775 ${STAGEDIR}${DATADIR}
@${STRIP_CMD} ${WRKSRC}/xtet42
${INSTALL} -c -m 755 ${WRKSRC}/xtet42 ${STAGEDIR}${PREFIX}/bin
${INSTALL} -c -m 664 ${WRKSRC}/xtet42.hiscore ${STAGEDIR}${DATADIR}/.xtet42.hiscore
${INSTALL} -c -m 664 ${WRKSRC}/xtet42.hiscore.single ${STAGEDIR}${DATADIR}/.xtet42.hiscore.single
${INSTALL} -c -m 664 /dev/null ${STAGEDIR}${DATADIR}/.xtet42.unlock
${INSTALL} -c -m 664 /dev/null ${STAGEDIR}${DATADIR}/.xtet42.log
${INSTALL_MAN} ${WRKSRC}/xtet42.6 ${STAGEDIR}${MANPREFIX}/man/man6
.include <bsd.port.mk>

View File

@ -1,6 +1,12 @@
man/man6/xtet42.6.gz
@group games
@mode 2755
bin/xtet42
@mode 664
%%DATADIR%%/.xtet42.hiscore.single
%%DATADIR%%/.xtet42.hiscore
%%DATADIR%%/.xtet42.unlock
%%DATADIR%%/.xtet42.log
@mode 775
@exec install -d -o root -g games -m 755 %D/%%DATADIR%%
@dirrm %%DATADIR%%