aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authordanilo <danilo@FreeBSD.org>2013-11-05 08:53:19 +0800
committerdanilo <danilo@FreeBSD.org>2013-11-05 08:53:19 +0800
commita03de50a7381982e829bdc9724fab52f610d651a (patch)
treee05caf8004068c91bc24986efd80c7d3c15af219 /games
parent549a59259f55c7f61f4b7ad6fec974d13030134b (diff)
downloadfreebsd-ports-gnome-a03de50a7381982e829bdc9724fab52f610d651a.tar.gz
freebsd-ports-gnome-a03de50a7381982e829bdc9724fab52f610d651a.tar.zst
freebsd-ports-gnome-a03de50a7381982e829bdc9724fab52f610d651a.zip
- Use options helpers
- Add stage support
Diffstat (limited to 'games')
-rw-r--r--games/pmars-sdl/Makefile24
1 files changed, 5 insertions, 19 deletions
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 <bsd.port.options.mk>
-
-.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 <bsd.port.mk>