Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Nov 2013 15:41:29 +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: r333406 - head/games/scare
Message-ID:  <201311101541.rAAFfTum027963@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Sun Nov 10 15:41:29 2013
New Revision: 333406
URL: http://svnweb.freebsd.org/changeset/ports/333406

Log:
  - Use options helpers
  - Add stage support

Modified:
  head/games/scare/Makefile

Modified: head/games/scare/Makefile
==============================================================================
--- head/games/scare/Makefile	Sun Nov 10 15:25:39 2013	(r333405)
+++ head/games/scare/Makefile	Sun Nov 10 15:41:29 2013	(r333406)
@@ -25,15 +25,12 @@ USE_ZIP=	yes
 
 PLIST_FILES=	bin/scare
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+XGLK_BUILD_DEPENDS=	${LOCALBASE}/lib/libxglk.a:${PORTSDIR}/games/xglk
+XGLK_RUN_DEPENDS=	${LOCALBASE}/lib/libxglk.a:${PORTSDIR}/games/xglk
+XGLK_ALL_TARGET=	scare glkscare
+XGLK_PLIST_FILES=	bin/glkscare
 
-.if ${PORT_OPTIONS:MXGLK}
-BUILD_DEPENDS+=	${LOCALBASE}/lib/libxglk.a:${PORTSDIR}/games/xglk
-RUN_DEPENDS+=	${LOCALBASE}/lib/libxglk.a:${PORTSDIR}/games/xglk
-ALL_TARGET=	scare glkscare
-PLIST_FILES+=	bin/glkscare
-.endif
+.include <bsd.port.options.mk>
 
 post-patch:
 	@${REINPLACE_CMD} -e \
@@ -55,9 +52,9 @@ do-configure:
 .endif
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/source/scare ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/source/scare ${STAGEDIR}${PREFIX}/bin
 .if ${PORT_OPTIONS:MXGLK}
-	${INSTALL_PROGRAM} ${WRKSRC}/source/glkscare ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/source/glkscare ${STAGEDIR}${PREFIX}/bin
 .endif
 
 test:	build



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