From c7c0d17234d7cddf60030929b8df88b4e1d9f5b9 Mon Sep 17 00:00:00 2001 From: FUJISHIMA Satsuki Date: Wed, 14 Feb 2001 22:22:15 +0000 Subject: o update to 2.0.0. o add SDL support. PR: 24731 Submitted by: maintainer --- games/rocksndiamonds/Makefile | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'games/rocksndiamonds/Makefile') diff --git a/games/rocksndiamonds/Makefile b/games/rocksndiamonds/Makefile index 1501c1d8839c..fe90e35b0d6f 100644 --- a/games/rocksndiamonds/Makefile +++ b/games/rocksndiamonds/Makefile @@ -6,18 +6,19 @@ # PORTNAME= rocksndiamonds -PORTVERSION= 1.4.0 -PORTREVISION= 1 +PORTVERSION= 2.0.0 CATEGORIES= games -MASTER_SITES= http://www.artsoft.org/rocksndiamonds/RELEASES/ \ - ${MASTER_SITE_XCONTRIB} -MASTER_SITE_SUBDIR= games - -PATCH_SITES= http://www.artsoft.org/RELEASES/ -PATCHFILES= rocksndiamonds-1.4.0pl1.diff +MASTER_SITES= http://www.artsoft.org/RELEASES/unix/rocksndiamonds/ \ + http://homepages.compuserve.de/rocksndiamonds/ MAINTAINER= mwest@uct.ac.za +.if defined(WITH_SDL) +LIB_DEPENDS= SDL_image.10:${PORTSDIR}/graphics/sdl_image \ + SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer +MAKE_ARGS+= sdl +.endif + USE_XLIB= yes USE_GMAKE= yes MAKE_ENV+= RO_GAME_DIR=${GAME_DIR} RW_GAME_DIR=${GAME_DIR}/scores \ @@ -29,6 +30,11 @@ MAKE_ENV+= JOYSTICK="-DNO_JOYSTICK" GAME_DIR=${PREFIX}/share/rocksndiamonds DOC_DIR=${PREFIX}/share/doc/rocksndiamonds +.if defined(WITH_SDL) +pre-patch: + @${PERL} -pi.orig -e 's:sdl-config:sdl11-config:g' ${WRKSRC}/src/Makefile +.endif + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/rocksndiamonds ${PREFIX}/bin @${MKDIR} ${GAME_DIR} -- cgit v1.2.3