Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Aug 2014 13:40:52 +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: r364608 - head/games/glest-data
Message-ID:  <53e8c7e4.2154.6034c34f@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wg
Date: Mon Aug 11 13:40:52 2014
New Revision: 364608
URL: http://svnweb.freebsd.org/changeset/ports/364608
QAT: https://qat.redports.org/buildarchive/r364608/

Log:
  games/glest-data: support stage
  
  PR:		192564
  Submitted by:	christian.mangin gmail com (with changes)

Modified:
  head/games/glest-data/Makefile

Modified: head/games/glest-data/Makefile
==============================================================================
--- head/games/glest-data/Makefile	Mon Aug 11 13:34:39 2014	(r364607)
+++ head/games/glest-data/Makefile	Mon Aug 11 13:40:52 2014	(r364608)
@@ -19,51 +19,32 @@ NO_BUILD=	yes
 PLIST=		${WRKDIR}/pkg-plist
 WRKSRC=		${WRKDIR}/glest_game
 
-DATADIR=	share/${PKGNAMEPREFIX:S/-//}
-DOCSDIR=	share/doc/${PKGNAMEPREFIX:S/-//}
+DATADIR=	${PREFIX}/share/${PKGNAMEPREFIX:S/-//}
+DOCSDIR=	${PREFIX}/share/doc/${PKGNAMEPREFIX:S/-//}
 GLESTDATADIRE=	data maps scenarios techs tilesets tutorials
 
-NO_STAGE=	yes
+PORTDATA=	*
+PORTDOCS=	*
+
+OPTIONS_DEFINE=	DOCS
+
 post-extract:
 	@${MV} ${WRKSRC}/docs/license.txt ${WRKSRC}/docs/license-data.txt
 	@${RMDIR} ${WRKSRC}/screens
 
-pre-install:
-	@${RM} -f ${PLIST}
-
-.	for FILE in glest.ico servers.ini
-		@${ECHO_CMD} "%%DATADIR%%/${FILE}" >> ${PLIST}
-.	endfor
-
-.	for DIRE in ${GLESTDATADIRE}
-		@cd ${WRKSRC} && \
-			${FIND} ${DIRE} -type f | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \
-				${FIND} ${DIRE} -type d | ${SORT} -r | ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST}
-.	endfor
-	@${ECHO_CMD} "@dirrmtry %%DATADIR%%" >> ${PLIST}
-
-.	if !defined(NOPORTDOCS)
-		@cd ${WRKSRC}/docs && \
-			${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%PORTDOCS%%%%DOCSDIR%%/|' >> ${PLIST} && \
-				${FIND} * -type d | ${SORT} -r | ${SED} -e 's|^|%%PORTDOCS%%@dirrm %%DOCSDIR%%/|' >> ${PLIST}
-	@${ECHO_CMD} "%%PORTDOCS%%@dirrmtry %%DOCSDIR%%" >> ${PLIST}
-.	endif
-
 do-install:
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${PREFIX}/${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/docs/license-data.txt ${PREFIX}/${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/docs/readme.txt ${PREFIX}/${DOCSDIR}
-.endif
-	@${MKDIR} ${PREFIX}/${DATADIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/docs/license-data.txt ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/docs/readme.txt ${STAGEDIR}${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DATADIR}
 .for FILE in glest.ico servers.ini
-	${INSTALL_DATA} ${WRKSRC}/${FILE} ${PREFIX}/${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DATADIR}
 .endfor
 
 .for DIRE in ${GLESTDATADIRE}
 	@cd ${WRKSRC} && \
-		${FIND} ${DIRE} -type d -exec ${MKDIR} "${PREFIX}/${DATADIR}/{}" \; && \
-			${FIND} ${DIRE} -type f -exec ${INSTALL_DATA} "{}" "${PREFIX}/${DATADIR}/{}" \;
+		${FIND} ${DIRE} -type d -exec ${MKDIR} "${STAGEDIR}${DATADIR}/{}" \; && \
+			${FIND} ${DIRE} -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DATADIR}/{}" \;
 .endfor
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53e8c7e4.2154.6034c34f>