svn commit: r337115 - head/games/stransball2

Dmitry Marakasov amdmi3 at FreeBSD.org
Sat Dec 21 01:13:23 UTC 2013


Author: amdmi3
Date: Sat Dec 21 01:13:22 2013
New Revision: 337115
URL: http://svnweb.freebsd.org/changeset/ports/337115

Log:
  - Support staging
  - Convert USE_GMAKE to USES
  - Use new LIB_DEPENDS syntax
  - Fix DOS2UNIX to not corrupt unrelated files

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

Modified: head/games/stransball2/Makefile
==============================================================================
--- head/games/stransball2/Makefile	Sat Dec 21 01:05:38 2013	(r337114)
+++ head/games/stransball2/Makefile	Sat Dec 21 01:13:22 2013	(r337115)
@@ -12,19 +12,20 @@ DISTNAME=	${PORTNAME}-v${PORTVERSION:C/\
 MAINTAINER=	amdmi3 at FreeBSD.org
 COMMENT=	A sequel to Transball and Transball 2 THRUST-type games
 
-LIB_DEPENDS=	SGE:${PORTSDIR}/devel/sdl_sge
+LIB_DEPENDS=	libSGE.so:${PORTSDIR}/devel/sdl_sge
 
 USE_ZIP=	yes
-USE_GMAKE=	yes
+USES=		gmake dos2unix
+DOS2UNIX_FILES=	sources/main.cpp
 USE_SDL=	sdl image mixer sound
-USE_DOS2UNIX=	yes
 
 BUILD_WRKSRC=	${WRKSRC}/sources
 
-PORTDOCS=	readme.txt
+PLIST_FILES=	bin/${PORTNAME}
+PORTDATA=	*
+PORTDOCS=	*
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE=	DOCS
 
 post-extract:
 	@${RM} -f ${WRKSRC}/sound/WS_FTP.LOG
@@ -36,15 +37,9 @@ post-patch:
 	       	s|"maps"|"${DATADIR}/maps"|g'
 
 do-install:
-	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/stransball2 ${PREFIX}/bin
-	${MKDIR} ${DATADIR}
-	cd ${WRKSRC} && ${COPYTREE_SHARE} 'graphics sound maps demos' ${DATADIR}
-
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-.for f in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
-.endfor
-.endif
+	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+	cd ${WRKSRC} && ${COPYTREE_SHARE} 'graphics sound maps demos' ${STAGEDIR}${DATADIR}/
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/readme.txt ${STAGEDIR}${DOCSDIR}/
 
 .include <bsd.port.mk>


More information about the svn-ports-head mailing list