Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jan 2014 14:20:07 +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: r339598 - head/games/f1spirit-remake
Message-ID:  <201401131420.s0DEK733006706@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Mon Jan 13 14:20:07 2014
New Revision: 339598
URL: http://svnweb.freebsd.org/changeset/ports/339598

Log:
  - Support staging
  - Convert USE_GMAKE to USES
  - Use new LIB_DEPENDS syntax

Modified:
  head/games/f1spirit-remake/Makefile

Modified: head/games/f1spirit-remake/Makefile
==============================================================================
--- head/games/f1spirit-remake/Makefile	Mon Jan 13 14:19:52 2014	(r339597)
+++ head/games/f1spirit-remake/Makefile	Mon Jan 13 14:20:07 2014	(r339598)
@@ -13,10 +13,10 @@ DISTNAME=	f1spirit-linux
 MAINTAINER=	amdmi3@FreeBSD.org
 COMMENT=	Remake of classic F1 Spirit racing game
 
-LIB_DEPENDS=	curl:${PORTSDIR}/ftp/curl
+LIB_DEPENDS=	libcurl.so:${PORTSDIR}/ftp/curl
 
 USE_ZIP=	yes
-USE_GMAKE=	yes
+USES=		gmake
 USE_SDL=	sdl net image mixer sound
 USE_GL=		gl glu
 USE_DOS2UNIX=	*.h *.cpp
@@ -25,12 +25,13 @@ WRKSRC=		"${WRKDIR}/F-1 Spirit"
 BUILD_WRKSRC=	${WRKSRC}/sources
 
 PLIST_FILES=	bin/f1s
-
-PORTDOCS=	readme.txt
+PORTDOCS=	*
 PORTDATA=	*
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE=	DOCS
+
+post-extract:
+	@cd ${WRKSRC}/designs && ${RMDIR} endurance f3 f3000 # empty dirs
 
 post-patch:
 	@${FIND} ${BUILD_WRKSRC} -name '*.cpp' -print0 | ${XARGS} -0 ${REINPLACE_CMD} \
@@ -40,16 +41,11 @@ post-patch:
 	@${REINPLACE_CMD} -e '/<curl\/types.h>/d' ${WRKSRC}/sources/F1Shttp.cpp
 
 do-install:
-	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/f1s ${PREFIX}/bin
-.if !defined(NOPORTDATA)
-	${MKDIR} ${DATADIR}
-	cd ${WRKSRC} && ${COPYTREE_SHARE} 'demos designs f1spirit2.cfg graphics sound tracks' ${DATADIR}
-.endif
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-.for f in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
-.endfor
-.endif
+	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/f1s ${STAGEDIR}${PREFIX}/bin
+	cd ${WRKSRC} && ${COPYTREE_SHARE} \
+		'demos designs f1spirit2.cfg graphics sound tracks' \
+		${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?201401131420.s0DEK733006706>