From a03de50a7381982e829bdc9724fab52f610d651a Mon Sep 17 00:00:00 2001 From: danilo Date: Tue, 5 Nov 2013 00:53:19 +0000 Subject: - Use options helpers - Add stage support --- games/pmars-sdl/Makefile | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) (limited to 'games') diff --git a/games/pmars-sdl/Makefile b/games/pmars-sdl/Makefile index 59d7cac2ba5c..1cd6a4deed13 100644 --- a/games/pmars-sdl/Makefile +++ b/games/pmars-sdl/Makefile @@ -31,24 +31,10 @@ MAKE_ARGS= CFLAGS+="${CFLAGS}" \ PLIST_FILES= bin/${PORTNAME}${PKGNAMESUFFIX} -NO_STAGE= yes -.include - -.if ${PORT_OPTIONS:MICWS94} -MAKE_ARGS+= CFLAGS+="-DEXT94" -.endif - -.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} -MAKE_ARGS+= CFLAGS+="-O3 -fomit-frame-pointer" -.endif - -.if ${PORT_OPTIONS:MPERMUTATE} -MAKE_ARGS+= CFLAGS+="-DPERMUTATE" -.endif - -.if ${PORT_OPTIONS:MSMALLMEM} -MAKE_ARGS+= CFLAGS+="-DSMALLMEM" -.endif +ICWS94_MAKE_ARGS= CFLAGS+="-DEXT94" +OPTIMIZED_CFLAGS_MAKE_ARGS= CFLAGS+="-O3 -fomit-frame-pointer" +PERMUTATE_MAKE_ARGS= CFLAGS+="-DPERMUTATE" +SMALLMEM_MAKE_ARGS= CFLAGS+="-DSMALLMEM" post-patch: @${REINPLACE_CMD} -e \ @@ -60,6 +46,6 @@ post-patch: do-install: (cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} \ - ${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX}) + ${STAGEDIR}${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX}) .include -- cgit