1997-07-02 07:13:51 +00:00
|
|
|
# New ports collection makefile for: sokoban
|
|
|
|
# Version required: 1.0
|
|
|
|
# Date created: 2 July 1997
|
|
|
|
# Whom: Andrey Zakhvatov
|
|
|
|
#
|
1999-08-25 06:06:33 +00:00
|
|
|
# $FreeBSD$
|
1997-07-02 07:13:51 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= sokoban-src
|
|
|
|
PKGNAME= sokoban-1.0
|
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SUNSITE}
|
|
|
|
MASTER_SITE_SUBDIR= games/strategy
|
|
|
|
|
|
|
|
MAINTAINER= andy@icc.surw.chel.su
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/sokoban
|
|
|
|
ALL_TARGET=
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@ ${INSTALL_PROGRAM} ${WRKSRC}/sokoban ${PREFIX}/bin/sokoban
|
1999-08-22 19:01:07 +00:00
|
|
|
@ ${CHOWN} games:bin ${PREFIX}/bin/sokoban
|
|
|
|
@ ${CHMOD} 4555 ${PREFIX}/bin/sokoban
|
1997-07-02 07:13:51 +00:00
|
|
|
@ ${MKDIR} ${PREFIX}/share/sokoban
|
1999-08-22 19:01:07 +00:00
|
|
|
@ ${CHOWN} games:bin ${PREFIX}/share/sokoban
|
1997-07-02 07:13:51 +00:00
|
|
|
@ ${MKDIR} ${PREFIX}/share/sokoban/screens
|
1999-08-22 19:01:07 +00:00
|
|
|
@ ${CHOWN} games:bin ${PREFIX}/share/sokoban/screens
|
1997-07-02 07:13:51 +00:00
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/screens/* ${PREFIX}/share/sokoban/screens
|
|
|
|
@ if [ ! -f ${PREFIX}/share/sokoban/highscore ]; then \
|
|
|
|
dd if=/dev/zero of=${PREFIX}/share/sokoban/highscore bs=1 count=2; \
|
|
|
|
fi
|
1999-08-22 19:01:07 +00:00
|
|
|
@ ${CHOWN} games:bin ${PREFIX}/share/sokoban/highscore
|
|
|
|
@ ${CHMOD} 0600 ${PREFIX}/share/sokoban/highscore
|
1997-07-02 07:13:51 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|