svn commit: r353639 - head/games/cultivation

Dmitry Marakasov amdmi3 at FreeBSD.org
Sun May 11 01:47:07 UTC 2014


Author: amdmi3
Date: Sun May 11 01:47:06 2014
New Revision: 353639
URL: http://svnweb.freebsd.org/changeset/ports/353639
QAT: https://qat.redports.org/buildarchive/r353639/

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

Modified:
  head/games/cultivation/Makefile

Modified: head/games/cultivation/Makefile
==============================================================================
--- head/games/cultivation/Makefile	Sun May 11 01:40:05 2014	(r353638)
+++ head/games/cultivation/Makefile	Sun May 11 01:47:06 2014	(r353639)
@@ -11,11 +11,11 @@ DISTNAME=	Cultivation_${PORTVERSION}_Uni
 MAINTAINER=	amdmi3 at FreeBSD.org
 COMMENT=	Unique game of conflict and cooperation in a gardening community
 
-LIB_DEPENDS=	portaudio:${PORTSDIR}/audio/portaudio
+LIB_DEPENDS=	libportaudio.so.0:${PORTSDIR}/audio/portaudio
 
+USES=		gmake
 USE_XORG=	x11 xi xext xmu
 USE_GL=		glut
-USE_GMAKE=	yes
 
 WRKSRC=		${WRKDIR}/${DISTNAME}/game2
 BUILD_WRKSRC=	${WRKSRC}/gameSource
@@ -23,12 +23,8 @@ MAKE_ARGS=	CXX=${CXX}
 
 PORTDOCS=	changeLog.txt how_to_play.txt
 
-NO_STAGE=	yes
-
 OPTIONS_DEFINE=	DOCS
 
-.include <bsd.port.options.mk>
-
 post-patch:
 	@cd ${WRKSRC} && ${CAT} Makefile.GnuLinux Makefile.common \
 		../minorGems/build/Makefile.minorGems gameSource/Makefile.all \
@@ -41,19 +37,15 @@ post-patch:
 		${WRKSRC}/../minorGems/util/TranslationManager.cpp
 
 do-install:
-	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/Cultivation ${PREFIX}/bin
-	${MKDIR} ${DATADIR}/languages
-	${INSTALL_DATA} ${BUILD_WRKSRC}/font.tga ${DATADIR}
-	${INSTALL_DATA} ${BUILD_WRKSRC}/features.txt ${DATADIR}
-	${INSTALL_DATA} ${BUILD_WRKSRC}/language.txt ${DATADIR}
-	${INSTALL_DATA} ${BUILD_WRKSRC}/languages/* ${DATADIR}/languages
-
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
+	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/Cultivation ${STAGEDIR}${PREFIX}/bin
+	${MKDIR} ${STAGEDIR}${DATADIR}/languages
+	${INSTALL_DATA} ${BUILD_WRKSRC}/font.tga ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${BUILD_WRKSRC}/features.txt ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${BUILD_WRKSRC}/language.txt ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${BUILD_WRKSRC}/languages/* ${STAGEDIR}${DATADIR}/languages
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for f in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/documentation/${f} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/documentation/${f} ${STAGEDIR}${DOCSDIR}
 .endfor
-.endif
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list