Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Dec 2013 01:13:22 +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: r337115 - head/games/stransball2
Message-ID:  <201312210113.rBL1DMCV047669@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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>



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