Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Nov 2013 00:53:19 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r332797 - head/games/pmars-sdl
Message-ID:  <201311050053.rA50rJis018567@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Tue Nov  5 00:53:19 2013
New Revision: 332797
URL: http://svnweb.freebsd.org/changeset/ports/332797

Log:
  - Use options helpers
  - Add stage support

Modified:
  head/games/pmars-sdl/Makefile

Modified: head/games/pmars-sdl/Makefile
==============================================================================
--- head/games/pmars-sdl/Makefile	Tue Nov  5 00:50:18 2013	(r332796)
+++ head/games/pmars-sdl/Makefile	Tue Nov  5 00:53:19 2013	(r332797)
@@ -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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311050053.rA50rJis018567>