svn commit: r317953 - head/games/quake2-relay
Alexey Dokuchaev
danfe at FreeBSD.org
Sun May 12 12:45:20 UTC 2013
Author: danfe
Date: Sun May 12 12:45:18 2013
New Revision: 317953
URL: http://svnweb.freebsd.org/changeset/ports/317953
Log:
- Convert old-school Makefile header to the new style
- Define LICENSE (GPLv2)
- Convert misused PLIST_FILES (too many of them) into pkg-plist
- Cleanup Makefile, NOPORTDOCS -> PORT_OPTIONS:MDOCS
- Remove defunct URL from port description (WWW: line)
Added:
head/games/quake2-relay/pkg-plist (contents, props changed)
Modified:
head/games/quake2-relay/Makefile
head/games/quake2-relay/pkg-descr
Modified: head/games/quake2-relay/Makefile
==============================================================================
--- head/games/quake2-relay/Makefile Sun May 12 12:40:30 2013 (r317952)
+++ head/games/quake2-relay/Makefile Sun May 12 12:45:18 2013 (r317953)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: Q2 Relay
-# Date created: 23 Mar 2006
-# Whom: Alexey Dokuchaev <danfe at FreeBSD.org>
-#
+# Created by: Alexey Dokuchaev <danfe at FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= relay
PORTVERSION= 0.4
@@ -16,22 +12,20 @@ DISTNAME= relay-${PORTVERSION}.src
MAINTAINER= danfe at FreeBSD.org
COMMENT= Quake II multi-view demo recording facility
+LICENSE= GPLv2
+
USE_GMAKE= yes
MAKE_ARGS= MODE=release OBJ_DIR=. OUT_DIR=. Q2MODULE=game.so \
QUAKE2_DIR="${Q2DIR}" BIN_DIR="${PREFIX}/bin" \
CC="${CC}" CFLAGS="${CFLAGS}"
WRKSRC= ${WRKDIR}/relay-${PORTVERSION}
-
-PLIST_FILES= bin/democonv bin/dm2server \
- %%Q2DIR%%/release/game.so \
- %%Q2DIR%%/proxy/relay/game.so \
- %%Q2DIR%%/proxy/replay/game.so
-PLIST_DIRS= %%Q2DIR%%/proxy/replay %%Q2DIR%%/proxy/relay \
- %%Q2DIR%%/proxy %%Q2DIR%%/release
PORTDOCS= FAQ README
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE= DOCS
+
+.include "${.CURDIR}/../quake2-data/Makefile.include"
+.include <bsd.port.options.mk>
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
CFLAGS+= -fPIC
@@ -45,18 +39,16 @@ post-patch: .SILENT
${WRKSRC}/common/mem.c
cd ${WRKSRC}/common && ${SH} -c 'for i in *.h; do \
${ECHO_CMD} >> $${i}; done'
- # Reorganize #include's (use /bin/ed to avoid a patch)
+# Reorganize #include's (use /bin/ed to avoid a patch)
${ECHO_CMD} -e '35t30\n36d\nwq' | ${ED} -s ${WRKSRC}/common/net.h
${ECHO_CMD} -e '9t7\n10d\nwq' | ${ED} -s ${WRKSRC}/common/net.c
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/FAQ ${WRKSRC}/README ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
ED?= /bin/ed
-.include "${.CURDIR}/../quake2-data/Makefile.include"
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
Modified: head/games/quake2-relay/pkg-descr
==============================================================================
--- head/games/quake2-relay/pkg-descr Sun May 12 12:40:30 2013 (r317952)
+++ head/games/quake2-relay/pkg-descr Sun May 12 12:45:18 2013 (r317953)
@@ -13,5 +13,3 @@ Benefits of Relay:
- No lag
- Smaller and easier than many separate demos
- Many different viewing options
-
-WWW: http://www.planetquake.com/relay/
Added: head/games/quake2-relay/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/quake2-relay/pkg-plist Sun May 12 12:45:18 2013 (r317953)
@@ -0,0 +1,9 @@
+bin/democonv
+bin/dm2server
+%%Q2DIR%%/release/game.so
+%%Q2DIR%%/proxy/relay/game.so
+%%Q2DIR%%/proxy/replay/game.so
+ at dirrm %%Q2DIR%%/proxy/replay
+ at dirrm %%Q2DIR%%/proxy/relay
+ at dirrm %%Q2DIR%%/proxy
+ at dirrm %%Q2DIR%%/release
More information about the svn-ports-all
mailing list