Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Dec 2013 17:10:48 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r337042 - head/games/agame
Message-ID:  <201312201710.rBKHAmtE049940@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Fri Dec 20 17:10:47 2013
New Revision: 337042
URL: http://svnweb.freebsd.org/changeset/ports/337042

Log:
  - Support staging
  - Convert USE_GMAKE to USES

Deleted:
  head/games/agame/pkg-plist
Modified:
  head/games/agame/Makefile

Modified: head/games/agame/Makefile
==============================================================================
--- head/games/agame/Makefile	Fri Dec 20 17:10:14 2013	(r337041)
+++ head/games/agame/Makefile	Fri Dec 20 17:10:47 2013	(r337042)
@@ -16,12 +16,14 @@ COMMENT=	Simple Tetris-like game
 
 LICENSE=	GPLv2
 
+USES=		gmake
 USE_SDL=	sdl image mixer
-USE_GMAKE=	yes
 
 WRKSRC=		${WRKDIR}/game
 
-PORTDOCS=	README.TXT
+PLIST_FILES=	bin/game
+PORTDOCS=	*
+PORTDATA=	*
 
 DESKTOP_ENTRIES="game" \
 		"A simple tetris-like game" \
@@ -30,25 +32,15 @@ DESKTOP_ENTRIES="game" \
 		"Game;BlocksGame;" \
 		false
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE=	DOCS
 
 post-patch:
 	@${REINPLACE_CMD} -Ee 's,wav/|mp3/|img/,${DATADIR}/&,g' ${WRKSRC}/main.c
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/game ${PREFIX}/bin
-.for dir in wav mp3 img
-	${MKDIR} ${DATADIR}/${dir}
-	${INSTALL_DATA} ${WRKSRC}/${dir}/* ${DATADIR}/${dir}/
-.endfor
-
-.if ${PORT_OPTIONS:MDOCS}
-post-install:
-	${MKDIR} ${DOCSDIR}
-.for f in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
-.endfor
-.endif
+	${INSTALL_PROGRAM} ${WRKSRC}/game ${STAGEDIR}${PREFIX}/bin/
+	cd ${WRKSRC} && ${COPYTREE_SHARE} "wav mp3 img" ${STAGEDIR}${DATADIR}/
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README.TXT ${STAGEDIR}${DOCSDIR}/
 
 .include <bsd.port.mk>



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