Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 May 2014 13:41:12 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r355516 - head/games/boswars
Message-ID:  <201405271341.s4RDfC3v016399@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Tue May 27 13:41:11 2014
New Revision: 355516
URL: http://svnweb.freebsd.org/changeset/ports/355516
QAT: https://qat.redports.org/buildarchive/r355516/

Log:
  Support stage and USES=scons

Modified:
  head/games/boswars/Makefile

Modified: head/games/boswars/Makefile
==============================================================================
--- head/games/boswars/Makefile	Tue May 27 13:36:44 2014	(r355515)
+++ head/games/boswars/Makefile	Tue May 27 13:41:11 2014	(r355516)
@@ -13,15 +13,14 @@ COMMENT=	Futuristic real-time strategy g
 
 LICENSE=	GPLv2
 
-LIB_DEPENDS=	png15:${PORTSDIR}/graphics/png \
-		theora:${PORTSDIR}/multimedia/libtheora \
-		vorbis:${PORTSDIR}/audio/libvorbis
+LIB_DEPENDS=	libpng15.so:${PORTSDIR}/graphics/png \
+		libtheora.so:${PORTSDIR}/multimedia/libtheora \
+		libvorbis.so:${PORTSDIR}/audio/libvorbis
 
-USES=		lua:51
+USES=		lua:51 scons
 USE_SDL=	sdl
 USE_GL=		yes
-USE_SCONS=	yes
-SCONS_ARGS+=	opengl=1
+MAKE_ARGS+=	opengl=1
 CPPPATH=	${LOCALBASE}/include ${LUA_INCDIR}
 LIBPATH=	${LOCALBASE}/lib ${LUA_LIBDIR}
 CFLAGS+=	-DSTRATAGUS_LIB_PATH='"\"${DATADIR}\""'
@@ -31,12 +30,8 @@ DESKTOP_ENTRIES=	"Bos Wars" "${COMMENT}"
 
 PORTDOCS=	*
 
-NO_STAGE=	yes
-
 OPTIONS_DEFINE=	DOCS
 
-.include <bsd.port.options.mk>
-
 post-patch:
 	@${REINPLACE_CMD} -e '\
 		s|-pthread|${PTHREAD_LIBS}|g; \
@@ -45,16 +40,13 @@ post-patch:
 	${WRKSRC}/SConstruct
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-	${MKDIR} ${DATADIR}
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	${MKDIR} ${STAGEDIR}${DATADIR}
 .for f in campaigns graphics intro languages maps patches scripts sounds units
-	${CP} -R ${WRKSRC}/${f} ${DATADIR}
+	${CP} -R ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}
 .endfor
-
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${WRKSRC}/README.txt ${DOCSDIR}
-	${COPYTREE_SHARE} ${WRKSRC}/doc/* ${DOCSDIR}
-.endif
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}
+	${COPYTREE_SHARE} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



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