Index: head/games/moonlander/Makefile =================================================================== --- head/games/moonlander/Makefile (revision 394908) +++ head/games/moonlander/Makefile (revision 394909) @@ -1,42 +1,38 @@ # Created by: Kris Kennaway # $FreeBSD$ PORTNAME= moonlander PORTVERSION= 1.0 PORTREVISION= 14 CATEGORIES= games MASTER_SITES= DEBIAN/pool/main/m/moon-lander DISTNAME= moon-lander_${PORTVERSION}.orig MAINTAINER= amdmi3@FreeBSD.org COMMENT= Land a spacecraft on the moon LICENSE= BSD2CLAUSE USE_SDL= mixer image sdl WRKSRC= ${WRKDIR}/moon-lander -SOUNDS= sounds - PLIST_FILES= bin/${PORTNAME} PORTDATA= * OPTIONS_DEFINE= SOUND OPTIONS_DEFAULT=SOUND -.include +SOUND_CFLAGS_OFF= -DNOSOUND -.if ! ${PORT_OPTIONS:MSOUND} -SOUNDS= # empty -CFLAGS+= -DNOSOUND -.endif - do-configure: @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/moon_lander.c do-install: ${INSTALL_PROGRAM} ${WRKSRC}/moonlander ${STAGEDIR}${PREFIX}/bin/ - cd ${WRKSRC} && ${COPYTREE_SHARE} "fonts images ${SOUNDS}" ${STAGEDIR}${DATADIR}/ + cd ${WRKSRC} && ${COPYTREE_SHARE} "fonts images" ${STAGEDIR}${DATADIR}/ + +post-install-SOUND-on: + cd ${WRKSRC} && ${COPYTREE_SHARE} sounds ${STAGEDIR}${DATADIR}/ .include