1999-05-27 15:53:03 +02:00
|
|
|
# New ports collection makefile for: rocksndiamonds
|
|
|
|
# Date created: 27 May 1999
|
1999-08-31 08:53:31 +02:00
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
1999-05-27 15:53:03 +02:00
|
|
|
#
|
1999-08-25 08:06:33 +02:00
|
|
|
# $FreeBSD$
|
1999-05-27 15:53:03 +02:00
|
|
|
#
|
|
|
|
|
2000-04-14 14:28:40 +02:00
|
|
|
PORTNAME= rocksndiamonds
|
2001-02-14 23:22:15 +01:00
|
|
|
PORTVERSION= 2.0.0
|
1999-05-27 15:53:03 +02:00
|
|
|
CATEGORIES= games
|
2001-02-14 23:22:15 +01:00
|
|
|
MASTER_SITES= http://www.artsoft.org/RELEASES/unix/rocksndiamonds/ \
|
|
|
|
http://homepages.compuserve.de/rocksndiamonds/
|
2000-11-19 16:21:39 +01:00
|
|
|
|
2000-01-06 20:59:01 +01:00
|
|
|
MAINTAINER= mwest@uct.ac.za
|
1999-05-27 15:53:03 +02:00
|
|
|
|
2001-02-14 23:22:15 +01:00
|
|
|
.if defined(WITH_SDL)
|
|
|
|
LIB_DEPENDS= SDL_image.10:${PORTSDIR}/graphics/sdl_image \
|
|
|
|
SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer
|
|
|
|
MAKE_ARGS+= sdl
|
|
|
|
.endif
|
|
|
|
|
1999-05-27 15:53:03 +02:00
|
|
|
USE_XLIB= yes
|
|
|
|
USE_GMAKE= yes
|
2000-01-06 20:59:01 +01:00
|
|
|
MAKE_ENV+= RO_GAME_DIR=${GAME_DIR} RW_GAME_DIR=${GAME_DIR}/scores \
|
|
|
|
X11_PATH=${X11BASE} OPTIONS="${CFLAGS}"
|
1999-06-22 19:58:23 +02:00
|
|
|
.if ${MACHINE_ARCH} == "alpha"
|
1999-09-25 19:23:32 +02:00
|
|
|
MAKE_ENV+= JOYSTICK="-DNO_JOYSTICK"
|
1999-06-22 19:58:23 +02:00
|
|
|
.endif
|
1999-05-27 15:53:03 +02:00
|
|
|
|
|
|
|
GAME_DIR=${PREFIX}/share/rocksndiamonds
|
|
|
|
DOC_DIR=${PREFIX}/share/doc/rocksndiamonds
|
|
|
|
|
2001-02-14 23:22:15 +01:00
|
|
|
.if defined(WITH_SDL)
|
|
|
|
pre-patch:
|
|
|
|
@${PERL} -pi.orig -e 's:sdl-config:sdl11-config:g' ${WRKSRC}/src/Makefile
|
|
|
|
.endif
|
|
|
|
|
1999-05-27 15:53:03 +02:00
|
|
|
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 21:01:07 +02:00
|
|
|
@${CHMOD} 777 ${GAME_DIR}/scores
|
1999-05-27 15:53:03 +02: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>
|