Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Sep 2015 23:35:39 +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: r396447 - in head/games/xonotic: . files
Message-ID:  <201509082335.t88NZdom057095@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Tue Sep  8 23:35:38 2015
New Revision: 396447
URL: https://svnweb.freebsd.org/changeset/ports/396447

Log:
  - Update to 0.8.1
  - Switch to options helpers

Modified:
  head/games/xonotic/Makefile
  head/games/xonotic/distinfo
  head/games/xonotic/files/patch-source__darkplaces__BSDmakefile

Modified: head/games/xonotic/Makefile
==============================================================================
--- head/games/xonotic/Makefile	Tue Sep  8 23:28:27 2015	(r396446)
+++ head/games/xonotic/Makefile	Tue Sep  8 23:35:38 2015	(r396447)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	xonotic
-PORTVERSION=	0.8.0
-PORTREVISION=	1
+PORTVERSION=	0.8.1
 CATEGORIES=	games
 MASTER_SITES=	http://nl.dl.xonotic.org/ \
 		http://mirror.bitmissile.com/xonotic/releases/
@@ -32,43 +31,33 @@ USE_GCC=	yes
 
 PORTDATA=	*
 
-OPTIONS_MULTI=	COMPONENTS
-OPTIONS_MULTI_COMPONENTS=CLIENT DEDICATED ENCRYPTION
-OPTIONS_DEFAULT=CLIENT DEDICATED ENCRYPTION
-
-CLIENT_DESC=	Build client
-DEDICATED_DESC=	Build dedicated server
-ENCRYPTION_DESC=Build encryption (required for stats submission)
+OPTIONS_DEFINE=		ENCRYPTION
+OPTIONS_MULTI=		COMPONENTS
+OPTIONS_MULTI_COMPONENTS=CLIENT DEDICATED
+OPTIONS_DEFAULT=	CLIENT DEDICATED ENCRYPTION
 
-CLIENT_LIB_DEPENDS+=	libmodplug.so:${PORTSDIR}/audio/libmodplug \
+CLIENT_DESC=		Build client
+CLIENT_LIB_DEPENDS=	libmodplug.so:${PORTSDIR}/audio/libmodplug \
 			libtheora.so:${PORTSDIR}/multimedia/libtheora \
 			libvorbis.so:${PORTSDIR}/audio/libvorbis \
 			libogg.so:${PORTSDIR}/audio/libogg
+CLIENT_USE=		SDL=sdl
+CLIENT_ALL_TARGET=	sdl-release
+CLIENT_PLIST_FILES=	bin/${PORTNAME} share/pixmaps/${PORTNAME}.ico
+CLIENT_DESKTOP_ENTRIES=	"Xonotic" \
+			"" \
+			"${PREFIX}/share/pixmaps/${PORTNAME}.ico" \
+			"${PORTNAME}" \
+			"Game;Shooter;" \
+			""
+
+DEDICATED_DESC=		Build dedicated server
+DEDICATED_ALL_TARGET=	sv-release
+DEDICATED_PLIST_FILES=	bin/${PORTNAME}-dedicated
 
+ENCRYPTION_DESC=	Build encryption (required for stats submission)
 ENCRYPTION_LIB_DEPENDS=	libd0_rijndael.so:${PORTSDIR}/security/d0_blind_id
 
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MCLIENT}
-USE_SDL=	sdl
-ALL_TARGET+=	sdl-release
-PLIST_FILES+=	bin/${PORTNAME}
-
-DESKTOP_ENTRIES="Xonotic" \
-		"${COMMENT}" \
-		"${PREFIX}/share/pixmaps/${PORTNAME}.ico" \
-		"${PORTNAME}" \
-		"Game;Shooter;" \
-		""
-
-PLIST_FILES+=	share/pixmaps/${PORTNAME}.ico
-.endif
-
-.if ${PORT_OPTIONS:MDEDICATED}
-ALL_TARGET+=	sv-release
-PLIST_FILES+=	bin/${PORTNAME}-dedicated
-.endif
-
 post-patch:
 	@${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},' \
 		${BUILD_WRKSRC}/${MAKEFILE} ${BUILD_WRKSRC}/makefile.inc
@@ -77,21 +66,21 @@ post-patch:
 	@${ECHO_CMD} >> ${BUILD_WRKSRC}/prvm_offsets.h # silence 'no newline' warnings
 
 do-install:
-.if ${PORT_OPTIONS:MCLIENT}
+	@${MKDIR} ${STAGEDIR}${DATADIR}/data
+	${INSTALL_DATA} ${WRKSRC}/data/*.pk3 ${STAGEDIR}${DATADIR}/data/
+
+do-install-CLIENT-on:
 	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/darkplaces-sdl ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
 	${INSTALL_DATA} ${WRKSRC}/misc/logos/icons_ico/xonotic.ico ${STAGEDIR}${PREFIX}/share/pixmaps/
-.endif
-.if ${PORT_OPTIONS:MDEDICATED}
+
+do-install-DEDICATED-on:
 	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/darkplaces-dedicated ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-dedicated
 	cd ${WRKSRC} && ${COPYTREE_SHARE} "server" ${STAGEDIR}${DATADIR}/
 # Fixup lost +x permissions on scripts after COPYTREE_SHARE
 	${FIND} ${STAGEDIR}${DATADIR}/server -type f -name *.sh -o -name rcon*.pl | \
 		${XARGS} ${CHMOD} +x
-.endif
-	${MKDIR} ${STAGEDIR}${DATADIR}/data
-	${INSTALL_DATA} ${WRKSRC}/data/*.pk3 ${STAGEDIR}${DATADIR}/data/
-.if ${PORT_OPTIONS:MENCRYPTION}
+
+do-install-ENCRYPTION-on:
 	${INSTALL_DATA} ${WRKSRC}/key_0.d0pk ${STAGEDIR}${DATADIR}/
-.endif
 
 .include <bsd.port.mk>

Modified: head/games/xonotic/distinfo
==============================================================================
--- head/games/xonotic/distinfo	Tue Sep  8 23:28:27 2015	(r396446)
+++ head/games/xonotic/distinfo	Tue Sep  8 23:35:38 2015	(r396447)
@@ -1,2 +1,2 @@
-SHA256 (xonotic-0.8.0.zip) = 0a87c808827a8b234f2324b468ecb643aa48a6fd43322a29e616610dca316370
-SIZE (xonotic-0.8.0.zip) = 999151784
+SHA256 (xonotic-0.8.1.zip) = be8bcc41e2993a2f26d4d04c65a7eab810443bd98b11b45e482ffdbbf284c46f
+SIZE (xonotic-0.8.1.zip) = 984854761

Modified: head/games/xonotic/files/patch-source__darkplaces__BSDmakefile
==============================================================================
--- head/games/xonotic/files/patch-source__darkplaces__BSDmakefile	Tue Sep  8 23:28:27 2015	(r396446)
+++ head/games/xonotic/files/patch-source__darkplaces__BSDmakefile	Tue Sep  8 23:35:38 2015	(r396447)
@@ -1,6 +1,6 @@
---- source/darkplaces/BSDmakefile.orig	2015-01-17 02:24:24.000000000 +0300
-+++ source/darkplaces/BSDmakefile	2015-01-17 02:26:51.000000000 +0300
-@@ -158,7 +158,7 @@
+--- source/darkplaces/BSDmakefile.orig	2015-08-25 12:10:24 UTC
++++ source/darkplaces/BSDmakefile
+@@ -158,7 +158,7 @@ LIB_SOUND=$(LIB_SND_BSD)
  
  CFLAGS_MAKEDEP=-MD
  .ifdef DP_FS_BASEDIR



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