1999-05-27 13:53:03 +00:00
|
|
|
# New ports collection makefile for: rocksndiamonds
|
2000-01-06 19:59:01 +00:00
|
|
|
# Version required: 1.4.0
|
1999-05-27 13:53:03 +00:00
|
|
|
# Date created: 27 May 1999
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
1999-05-27 13:53:03 +00:00
|
|
|
#
|
1999-08-25 06:06:33 +00:00
|
|
|
# $FreeBSD$
|
1999-05-27 13:53:03 +00:00
|
|
|
#
|
|
|
|
|
2000-01-06 19:59:01 +00:00
|
|
|
DISTNAME= rocksndiamonds-1.4.0
|
1999-05-27 13:53:03 +00:00
|
|
|
CATEGORIES= games
|
2000-01-06 19:59:01 +00:00
|
|
|
MASTER_SITES= http://www.artsoft.org/rocksndiamonds/RELEASES/ \
|
|
|
|
${MASTER_SITE_XCONTRIB}
|
1999-05-27 13:53:03 +00:00
|
|
|
MASTER_SITE_SUBDIR= games
|
|
|
|
|
2000-01-06 19:59:01 +00:00
|
|
|
MAINTAINER= mwest@uct.ac.za
|
1999-05-27 13:53:03 +00:00
|
|
|
|
|
|
|
USE_XLIB= yes
|
|
|
|
USE_GMAKE= yes
|
2000-01-06 19:59:01 +00:00
|
|
|
MAKE_ENV+= RO_GAME_DIR=${GAME_DIR} RW_GAME_DIR=${GAME_DIR}/scores \
|
|
|
|
X11_PATH=${X11BASE} OPTIONS="${CFLAGS}"
|
1999-06-22 17:58:23 +00:00
|
|
|
.if ${MACHINE_ARCH} == "alpha"
|
1999-09-25 17:23:32 +00:00
|
|
|
MAKE_ENV+= JOYSTICK="-DNO_JOYSTICK"
|
1999-06-22 17:58:23 +00:00
|
|
|
.endif
|
1999-05-27 13:53:03 +00:00
|
|
|
|
|
|
|
GAME_DIR=${PREFIX}/share/rocksndiamonds
|
|
|
|
DOC_DIR=${PREFIX}/share/doc/rocksndiamonds
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/rocksndiamonds ${PREFIX}/bin
|
|
|
|
@${MKDIR} ${GAME_DIR}
|
|
|
|
@cd ${WRKSRC}; tar cpf - graphics levels scores sounds | \
|
|
|
|
(cd ${GAME_DIR}; tar xpf -)
|
1999-08-22 19:01:07 +00:00
|
|
|
@${CHMOD} 777 ${GAME_DIR}/scores
|
1999-05-27 13:53:03 +00:00
|
|
|
.if !defined(NOPPORTDOCS)
|
|
|
|
@${MKDIR} ${DOC_DIR}
|
|
|
|
.for docfile in CHANGES CREDITS HARDWARE README TODO
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOC_DIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|