Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jul 2014 22:45:53 +0000 (UTC)
From:      William Grzybowski <wg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r360480 - head/games/quake2-zaero
Message-ID:  <201407032245.s63Mjrqw031321@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wg
Date: Thu Jul  3 22:45:53 2014
New Revision: 360480
URL: http://svnweb.freebsd.org/changeset/ports/360480
QAT: https://qat.redports.org/buildarchive/r360480/

Log:
  games/quake2-zaero: support stage

Modified:
  head/games/quake2-zaero/Makefile

Modified: head/games/quake2-zaero/Makefile
==============================================================================
--- head/games/quake2-zaero/Makefile	Thu Jul  3 22:43:38 2014	(r360479)
+++ head/games/quake2-zaero/Makefile	Thu Jul  3 22:45:53 2014	(r360480)
@@ -17,30 +17,26 @@ USES=		dos2unix zip
 DOS2UNIX_FILES=	*.[ch]
 NO_WRKSUBDIR=	yes
 
-OPTIONS_DEFINE=	DEMO DM
+OPTIONS_DEFINE=	DEMO DM DOCS
 DEMO_DESC=	Demo version of the game data
 DM_DESC=	Deathmatch maps
 
+OPTIONS_SUB=	yes
+
 DOCSDIR=	${PREFIX}/share/doc/${LATEST_LINK}
 
-NO_STAGE=	yes
 .include "${.CURDIR}/../quake2-data/Makefile.include"
 
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MDEMO}
 DISTFILES+=	zaerodemo${EXTRACT_SUFX}
-PLIST_SUB+=	DEMO=""
 .else
-PLIST_SUB+=	DEMO="@comment "
 SUB_FILES+=	pkg-message
 .endif
 
 .if ${PORT_OPTIONS:MDM}
 DISTFILES+=	zaerodm${EXTRACT_SUFX}
-PLIST_SUB+=	DM=""
-.else
-PLIST_SUB+=	DM="@comment "
 .endif
 
 post-extract:
@@ -50,27 +46,20 @@ post-patch:
 	@${REINPLACE_CMD} -e 's/__linux__/__unix__/' ${WRKSRC}/q_shared.[ch]
 
 do-install:
-	${MKDIR} ${Q2DIR}/${PORTNAME}
-	${INSTALL_PROGRAM} ${WRKSRC}/game.so ${Q2DIR}/${PORTNAME}
+	@${MKDIR} ${STAGEDIR}${Q2DIR}/${PORTNAME}
+	${INSTALL_PROGRAM} ${WRKSRC}/game.so ${STAGEDIR}${Q2DIR}/${PORTNAME}
 .if ${PORT_OPTIONS:MDEMO}
-	${INSTALL_DATA} ${WRKSRC}/zaero/pak0.pak ${Q2DIR}/${PORTNAME}
-	${MKDIR} ${Q2DIR}/${PORTNAME}/sprites
-	${INSTALL_DATA} ${WRKSRC}/zaero/sprites/* ${Q2DIR}/${PORTNAME}/sprites
+	${INSTALL_DATA} ${WRKSRC}/zaero/pak0.pak ${STAGEDIR}${Q2DIR}/${PORTNAME}
+	@${MKDIR} ${STAGEDIR}${Q2DIR}/${PORTNAME}/sprites
+	${INSTALL_DATA} ${WRKSRC}/zaero/sprites/* ${STAGEDIR}${Q2DIR}/${PORTNAME}/sprites
 .endif
-	${INSTALL_DATA} ${WRKSRC}/pak1.pak ${Q2DIR}/${PORTNAME}
+	${INSTALL_DATA} ${WRKSRC}/pak1.pak ${STAGEDIR}${Q2DIR}/${PORTNAME}
 .if ${PORT_OPTIONS:MDM}
-	${INSTALL_DATA} ${WRKSRC}/zaero/pak2.pak ${Q2DIR}/${PORTNAME}
+	${INSTALL_DATA} ${WRKSRC}/zaero/pak2.pak ${STAGEDIR}${Q2DIR}/${PORTNAME}
 .endif
 .if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/changelog.txt ${DOCSDIR}
-.endif
-
-.if ! ${PORT_OPTIONS:MDEMO}
-post-install:
-	@${ECHO_CMD}
-	@${CAT} ${PKGMESSAGE}
-	@${ECHO_CMD}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/changelog.txt ${STAGEDIR}${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>



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