Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Oct 2013 00:40:16 +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: r330707 - head/games/pouetchess
Message-ID:  <201310180040.r9I0eGdI060422@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Fri Oct 18 00:40:16 2013
New Revision: 330707
URL: http://svnweb.freebsd.org/changeset/ports/330707

Log:
  - Support staging
  - convert USE_GMAKE to USES

Modified:
  head/games/pouetchess/Makefile
  head/games/pouetchess/pkg-plist

Modified: head/games/pouetchess/Makefile
==============================================================================
--- head/games/pouetchess/Makefile	Fri Oct 18 00:31:22 2013	(r330706)
+++ head/games/pouetchess/Makefile	Fri Oct 18 00:40:16 2013	(r330707)
@@ -12,10 +12,12 @@ COMMENT=	Open-source 3D chess game
 
 USE_SDL=	sdl image
 USE_GL=		gl
-USE_GMAKE=	yes
+USES=		gmake
 
 WRKSRC=		${WRKDIR}/pouetChess_0.11
 
+PORTDATA=	*
+
 DESKTOP_ENTRIES="pouetChess" \
 		"Play chess" \
 		"${DATADIR}/textures/1.png" \
@@ -23,7 +25,6 @@ DESKTOP_ENTRIES="pouetChess" \
 		"Game;BoardGame;" \
 		false
 
-NO_STAGE=	yes
 post-patch:
 	@${FIND} ${WRKSRC} \( -name "*.cpp" -o -name "*.h" -o -name Makefile \
 		-o -name config.ini \) -exec ${REINPLACE_CMD} -e \
@@ -40,14 +41,8 @@ post-patch:
 	@${REINPLACE_CMD} -e 's|data/|${DATADIR}/|' ${WRKSRC}/src/globalInfos.h
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/bin/pouetChess ${PREFIX}/bin
-	${INSTALL_DATA} ${WRKSRC}/bin/config.ini ${PREFIX}/etc/pouetChess.conf.sample
-	if [ ! -f ${PREFIX}/etc/pouetChess.conf ]; then \
-		${INSTALL_DATA} ${WRKSRC}/bin/config.ini ${PREFIX}/etc/pouetChess.conf; \
-	fi
-.for i in objets3d textures icons
-	${MKDIR} ${DATADIR}/${i}
-	${INSTALL_DATA} ${WRKSRC}/bin/data/${i}/* ${DATADIR}/${i}
-.endfor
+	${INSTALL_PROGRAM} ${WRKSRC}/bin/pouetChess ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_DATA} ${WRKSRC}/bin/config.ini ${STAGEDIR}${PREFIX}/etc/pouetChess.conf.sample
+	cd ${WRKSRC}/bin/data && ${COPYTREE_SHARE} "*" ${STAGEDIR}${DATADIR}
 
 .include <bsd.port.mk>

Modified: head/games/pouetchess/pkg-plist
==============================================================================
--- head/games/pouetchess/pkg-plist	Fri Oct 18 00:31:22 2013	(r330706)
+++ head/games/pouetchess/pkg-plist	Fri Oct 18 00:40:16 2013	(r330707)
@@ -2,35 +2,3 @@ bin/pouetChess
 @unexec if cmp -s %D/etc/pouetChess.conf %D/etc/pouetChess.conf.sample; then rm -f %D/etc/pouetChess.conf; fi
 etc/pouetChess.conf.sample
 @exec if [ ! -f %D/etc/pouetChess.conf ]; then cp -p %D/etc/pouetChess.conf.sample %D/etc/pouetChess.conf; fi
-%%DATADIR%%/icons/pouetChess.bmp
-%%DATADIR%%/icons/pouetChess.png
-%%DATADIR%%/objets3d/cavalier.lwo
-%%DATADIR%%/objets3d/dame.lwo
-%%DATADIR%%/objets3d/fleche.lwo
-%%DATADIR%%/objets3d/fou.lwo
-%%DATADIR%%/objets3d/pion.lwo
-%%DATADIR%%/objets3d/plateau.lwo
-%%DATADIR%%/objets3d/roi.lwo
-%%DATADIR%%/objets3d/table.lwo
-%%DATADIR%%/objets3d/tour.lwo
-%%DATADIR%%/textures/1.png
-%%DATADIR%%/textures/2.png
-%%DATADIR%%/textures/blender.png
-%%DATADIR%%/textures/camera.png
-%%DATADIR%%/textures/credits.png
-%%DATADIR%%/textures/damier.jpg
-%%DATADIR%%/textures/exit.png
-%%DATADIR%%/textures/font.png
-%%DATADIR%%/textures/force.png
-%%DATADIR%%/textures/gimp.png
-%%DATADIR%%/textures/kate.png
-%%DATADIR%%/textures/murs.jpg
-%%DATADIR%%/textures/porte.jpg
-%%DATADIR%%/textures/quitter.png
-%%DATADIR%%/textures/sol.jpg
-%%DATADIR%%/textures/titre.png
-%%DATADIR%%/textures/tux.png
-@dirrm %%DATADIR%%/icons
-@dirrm %%DATADIR%%/objets3d
-@dirrm %%DATADIR%%/textures
-@dirrm %%DATADIR%%



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