Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 May 2015 16:11:11 +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: r385901 - head/games/stratagus
Message-ID:  <201505091611.t49GBBAm076588@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sat May  9 16:11:11 2015
New Revision: 385901
URL: https://svnweb.freebsd.org/changeset/ports/385901

Log:
  - Enable all options by default to follow upstream and produce fully functional package
  - Add description for MNG option
  - Add X11 option
  - Simplify docs installation
  - Add LICENSE_FILE

Modified:
  head/games/stratagus/Makefile

Modified: head/games/stratagus/Makefile
==============================================================================
--- head/games/stratagus/Makefile	Sat May  9 15:54:44 2015	(r385900)
+++ head/games/stratagus/Makefile	Sat May  9 16:11:11 2015	(r385901)
@@ -3,7 +3,7 @@
 
 PORTNAME=	stratagus
 PORTVERSION=	2.2.7
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	games
 MASTER_SITES=	http://launchpadlibrarian.net/113005346/
 DISTNAME=	${PORTNAME}_${PORTVERSION}.orig
@@ -12,14 +12,12 @@ MAINTAINER=	amdmi3@FreeBSD.org
 COMMENT=	Free cross-platform real-time strategy gaming engine
 
 LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/COPYING
 
 LIB_DEPENDS=	libpng.so:${PORTSDIR}/graphics/png \
 		libtolua++-${LUA_VER}.so:${PORTSDIR}/lang/tolua++
 
-OPTIONS_DEFINE=	MIKMOD MNG THEORA VORBIS DOCS
-OPTIONS_DEFAULT=	VORBIS
-
-USE_GL=		glu
+USE_GL=		gl glu
 USE_SDL=	sdl
 USE_SQLITE=	3
 USES=		cmake:outsource lua:51 pkgconfig
@@ -29,13 +27,19 @@ CMAKE_ARGS=	-DGAMEDIR:STRING="bin" \
 		-DTOLUA++_LIBRARY:STRING="${LUA_LIBDIR}/libtolua++.so"
 
 PORTDOCS=	*
-PLIST_FILES=	bin/png2stratagus bin/stratagus sbin/metaserver \
-		man/man6/stratagus.6.gz
+PLIST_FILES=	bin/png2stratagus \
+		bin/stratagus \
+		man/man6/stratagus.6.gz \
+		sbin/metaserver
+
+OPTIONS_DEFINE=	MIKMOD MNG THEORA VORBIS X11 DOCS
+OPTIONS_DEFAULT=MIKMOD MNG THEORA VORBIS X11
 
 MIKMOD_LIB_DEPENDS=	libmikmod.so:${PORTSDIR}/audio/libmikmod
 MIKMOD_CMAKE_ON=	-DWITH_MIKMOD:BOOL=ON
 MIKMOD_CMAKE_OFF=	-DWITH_MIKMOD:BOOL=OFF
 
+MNG_DESC=		MNG image library support
 MNG_LIB_DEPENDS=	libmng.so:${PORTSDIR}/graphics/libmng
 MNG_CMAKE_ON=		-DWITH_MNG:BOOL=ON
 MNG_CMAKE_OFF=		-DWITH_MNG:BOOL=OFF
@@ -48,13 +52,14 @@ VORBIS_LIB_DEPENDS=	libvorbis.so:${PORTS
 VORBIS_CMAKE_ON=	-DWITH_OGGVORBIS:BOOL=ON
 VORBIS_CMAKE_OFF=	-DWITH_OGGVORBIS:BOOL=OFF
 
+X11_DESC=		X11 clipboard pasting support
+X11_USE=		XORG=x11
+X11_CMAKE_ON=		-DWITH_X11:BOOL=ON
+X11_CMAKE_OFF=		-DWITH_X11:BOOL=OFF
+
 post-install:
-	(cd ${WRKSRC}/doc && ${INSTALL_DATA} stratagus.6 ${STAGEDIR}${MAN6PREFIX}/man/man6)
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	(cd ${WRKSRC}/doc && ${INSTALL_DATA} [a-z]*.html *.txt ${STAGEDIR}${DOCSDIR})
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}/graphics
-	(cd ${WRKSRC}/doc/graphics && ${INSTALL_DATA} * ${STAGEDIR}${DOCSDIR}/graphics)
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}/scripts
-	(cd ${WRKSRC}/doc/scripts && ${INSTALL_DATA} * ${STAGEDIR}${DOCSDIR}/scripts)
+	${INSTALL_DATA} ${WRKSRC}/doc/stratagus.6 ${STAGEDIR}${MAN6PREFIX}/man/man6
+	cd ${WRKSRC}/doc && ${COPYTREE_SHARE} "[a-z]*.html *.txt graphics scripts" \
+		${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



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