aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2013-05-12 18:20:46 +0800
committerdanfe <danfe@FreeBSD.org>2013-05-12 18:20:46 +0800
commit24ad278a6bc5abfaf82ec063503d5839d27510d3 (patch)
treebb0313039cdb9d4698eeada830187eb39a01458f /games
parent289e7324dd99a8b35c066f6716d4183f048bbb8e (diff)
downloadfreebsd-ports-gnome-24ad278a6bc5abfaf82ec063503d5839d27510d3.tar.gz
freebsd-ports-gnome-24ad278a6bc5abfaf82ec063503d5839d27510d3.tar.zst
freebsd-ports-gnome-24ad278a6bc5abfaf82ec063503d5839d27510d3.zip
- Tighten Makefile header and COMMENT line
- Sort the knobs, NOPORTDOCS -> PORT_OPTIONS:MDOCS - Mute MKDIR's and adjust port description text
Diffstat (limited to 'games')
-rw-r--r--games/quake2-ctf/Makefile23
-rw-r--r--games/quake2-ctf/pkg-descr8
2 files changed, 14 insertions, 17 deletions
diff --git a/games/quake2-ctf/Makefile b/games/quake2-ctf/Makefile
index f0204d447404..e53d27093865 100644
--- a/games/quake2-ctf/Makefile
+++ b/games/quake2-ctf/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: quake2-ctf
-# Date created: 26 Jul 2006
-# Whom: alepulver
-#
+# Created by: Alejandro Pulver <alepulver@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= ctf
PORTVERSION= 1.52
@@ -17,21 +13,22 @@ DISTFILES= ${CTF_DATA}:data \
DIST_SUBDIR= quake2lnx
MAINTAINER= danfe@FreeBSD.org
-COMMENT= Quake II CTF (Capture The Flag) modification
+COMMENT= Quake II CTF (Capture The Flag) mod
USE_ZIP= yes
USE_DOS2UNIX= ../../../ctf/readme.txt ../../../ctf/server.cfg
WRKSRC= ${WRKDIR}/${CTF_SRC:S/.tar.gz//}/src/ctf
-LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}
DOCSDIR= ${PREFIX}/share/doc/${LATEST_LINK}
+LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}
CTF_DATA= q2ctf150.zip
CTF_SRC= quake2-r0.16.2.tar.gz
-.include "${.CURDIR}/../quake2-data/Makefile.include"
+OPTIONS_DEFINE= DOCS
-.include <bsd.port.pre.mk>
+.include "${.CURDIR}/../quake2-data/Makefile.include"
+.include <bsd.port.options.mk>
do-extract:
@${MKDIR} ${WRKDIR}
@@ -44,15 +41,15 @@ post-extract:
@${CP} ${FILESDIR}/${MAKEFILE} ${WRKSRC}
do-install:
- ${MKDIR} ${Q2DIR}/ctf
+ @${MKDIR} ${Q2DIR}/ctf
${INSTALL_PROGRAM} ${WRKSRC}/game.so ${Q2DIR}/ctf
.for f in *.cfg *.pak
${INSTALL_DATA} ${WRKDIR}/ctf/${f} ${Q2DIR}/ctf
.endfor
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/ctf/readme.txt ${DOCSDIR}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/games/quake2-ctf/pkg-descr b/games/quake2-ctf/pkg-descr
index a98f75a322af..bb7d553a3614 100644
--- a/games/quake2-ctf/pkg-descr
+++ b/games/quake2-ctf/pkg-descr
@@ -1,10 +1,10 @@
-Capture the Flag offers an exciting variation on team play. It gives more
+Capture the Flag offers an exciting variation on team play. It gives more
meaning to base defense along with offensive positioning and organized
strikes.
The basic premise is this:
-Attack the enemy base, grab their flag, then take it back to your base. In
+Attack the enemy base, grab their flag, then take it back to your base. In
this variation you must touch your base flag when carrying the enemy flag in
-order to score - if your flag isn't at your base when you return, you or your
-team must get it back to gain points and captures.
+order to score -- if your flag isn't at your base when you return, you or
+your team must get it back to gain points and captures.