svn commit: r355511 - in head/games: pingus pink-pony

Baptiste Daroussin bapt at FreeBSD.org
Tue May 27 13:21:14 UTC 2014


Author: bapt
Date: Tue May 27 13:21:13 2014
New Revision: 355511
URL: http://svnweb.freebsd.org/changeset/ports/355511
QAT: https://qat.redports.org/buildarchive/r355511/

Log:
  Convert to USES=scons
  Stagify

Modified:
  head/games/pingus/Makefile
  head/games/pink-pony/Makefile

Modified: head/games/pingus/Makefile
==============================================================================
--- head/games/pingus/Makefile	Tue May 27 13:19:50 2014	(r355510)
+++ head/games/pingus/Makefile	Tue May 27 13:21:13 2014	(r355511)
@@ -14,10 +14,8 @@ LIB_DEPENDS=	libpng15.so:${PORTSDIR}/gra
 		libboost_regex.so:${PORTSDIR}/devel/boost-libs \
 		libphysfs.so:${PORTSDIR}/devel/physfs
 
-USE_BZIP2=	yes
-USES=		iconv
-USE_SCONS=	yes
-SCONS_ARGS=	with_linuxusbmouse=0 \
+USES=		iconv scons tar:bzip2
+MAKE_ARGS=	with_linuxusbmouse=0 \
 		with_linuxevdev=0
 USE_SDL=	sdl image mixer
 
@@ -27,7 +25,6 @@ DESKTOP_ENTRIES="Pingus" "${COMMENT}" \
 
 PLIST=		${WRKDIR}/pkg-plist
 
-NO_STAGE=	yes
 post-patch:
 	@${REINPLACE_CMD} -e 's|add_path("data")|add_path("${DATADIR}")|g' \
 		${WRKSRC}/src/pingus_main.cpp
@@ -42,11 +39,10 @@ pre-install:
 	@${ECHO_CMD} "@dirrm %%DATADIR%%" >> ${PLIST}
 
 do-install:
-	@${MKDIR} ${DATADIR}
+	@${MKDIR} ${STAGEDIR}${DATADIR}
 	@cd ${WRKSRC}/data && \
-		${FIND} * -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \
-			${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
-	${INSTALL_DATA} ${WRKSRC}/src/win32/icon1.ico ${PREFIX}/share/pixmaps/${PORTNAME}.ico
+		${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+	${INSTALL_DATA} ${WRKSRC}/src/win32/icon1.ico ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.ico
 
 .include <bsd.port.mk>

Modified: head/games/pink-pony/Makefile
==============================================================================
--- head/games/pink-pony/Makefile	Tue May 27 13:19:50 2014	(r355510)
+++ head/games/pink-pony/Makefile	Tue May 27 13:21:13 2014	(r355511)
@@ -20,9 +20,7 @@ LIB_DEPENDS=	libIL.so:${PORTSDIR}/graphi
 		libftgl.so:${PORTSDIR}/graphics/ftgl \
 		libsigc-2.0.so:${PORTSDIR}/devel/libsigc++20
 
-USES=		dos2unix pkgconfig tar:bzip2
-USE_BZIP2=	yes
-USE_SCONS=	yes
+USES=		dos2unix pkgconfig scons tar:bzip2
 USE_GL=		gl glu
 USE_SDL=	mixer
 SUB_FILES=	pink-pony.sh


More information about the svn-ports-all mailing list