aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2013-05-12 20:45:18 +0800
committerdanfe <danfe@FreeBSD.org>2013-05-12 20:45:18 +0800
commit8625127a3d20823f479529881bac9c72255b3b11 (patch)
tree80f34bbc0f35f05a660a9e061083ed38941f40d6 /games
parentcba90662629455990260f693b756950f0330020f (diff)
downloadfreebsd-ports-gnome-8625127a3d20823f479529881bac9c72255b3b11.tar.gz
freebsd-ports-gnome-8625127a3d20823f479529881bac9c72255b3b11.tar.zst
freebsd-ports-gnome-8625127a3d20823f479529881bac9c72255b3b11.zip
- 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)
Diffstat (limited to 'games')
-rw-r--r--games/quake2-relay/Makefile30
-rw-r--r--games/quake2-relay/pkg-descr2
-rw-r--r--games/quake2-relay/pkg-plist9
3 files changed, 20 insertions, 21 deletions
diff --git a/games/quake2-relay/Makefile b/games/quake2-relay/Makefile
index 7f4ecc40f594..04aae9293b7d 100644
--- a/games/quake2-relay/Makefile
+++ b/games/quake2-relay/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: Q2 Relay
-# Date created: 23 Mar 2006
-# Whom: Alexey Dokuchaev <danfe@FreeBSD.org>
-#
+# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= relay
PORTVERSION= 0.4
@@ -16,22 +12,20 @@ DISTNAME= relay-${PORTVERSION}.src
MAINTAINER= danfe@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>
diff --git a/games/quake2-relay/pkg-descr b/games/quake2-relay/pkg-descr
index f967e749c3f2..0851aa7b758a 100644
--- a/games/quake2-relay/pkg-descr
+++ b/games/quake2-relay/pkg-descr
@@ -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/
diff --git a/games/quake2-relay/pkg-plist b/games/quake2-relay/pkg-plist
new file mode 100644
index 000000000000..4046ded55e37
--- /dev/null
+++ b/games/quake2-relay/pkg-plist
@@ -0,0 +1,9 @@
+bin/democonv
+bin/dm2server
+%%Q2DIR%%/release/game.so
+%%Q2DIR%%/proxy/relay/game.so
+%%Q2DIR%%/proxy/replay/game.so
+@dirrm %%Q2DIR%%/proxy/replay
+@dirrm %%Q2DIR%%/proxy/relay
+@dirrm %%Q2DIR%%/proxy
+@dirrm %%Q2DIR%%/release
7cd39619c5d7c9e13'>adom146logstatsplain d---------adonthell178logstatsplain d---------aestats178logstatsplain d---------affenspiel109logstatsplain d---------afternoonstalker146logstatsplain d---------agame178logstatsplain d---------alephone-data217logstatsplain d---------alephone-scenarios217logstatsplain d---------alephone217logstatsplain d---------alienarena-data109logstatsplain d---------alienarena178logstatsplain d---------alienblaster146logstatsplain d---------alienwave109logstatsplain d---------allacrost217logstatsplain d---------amoebax146logstatsplain d---------an146logstatsplain d---------angband178logstatsplain d---------anki146logstatsplain d---------annelid178logstatsplain d---------antipolix178logstatsplain d---------aop146logstatsplain d---------apoolGL178logstatsplain d---------apricots178logstatsplain d---------armagetron178logstatsplain d---------arx-libertatis178logstatsplain d---------asc180logstatsplain d---------asciiquarium109logstatsplain d---------assaultcube141logstatsplain d---------asteroid146logstatsplain d---------asteroids3d178logstatsplain d---------atanks178logstatsplain d---------atitd221logstatsplain d---------atlantikdesigner146logstatsplain d---------atomix185logstatsplain d---------atr3d178logstatsplain d---------atris-sounds146logstatsplain d---------atris146logstatsplain d---------avanor146logstatsplain d---------avoision109logstatsplain d---------avp-demo217logstatsplain d---------awale146logstatsplain d---------awele141logstatsplain d---------balazar178logstatsplain d---------balazarbrothers178logstatsplain d---------banihstypos141logstatsplain d---------barbie_seahorse_adventures178logstatsplain d---------barrage146logstatsplain d---------bass178logstatsplain d---------bastet109logstatsplain d---------battalion146logstatsplain d---------battletanks178logstatsplain d---------belooted146logstatsplain d---------biloba146logstatsplain d---------biniax2178logstatsplain d---------biorythm109logstatsplain d---------bitefusion141logstatsplain d---------black-box146logstatsplain d---------blackjack141logstatsplain d---------blackjackclient141logstatsplain d---------blackshadeselite217logstatsplain d---------blinken146logstatsplain d---------blinkensisters146logstatsplain d---------blobby178logstatsplain d---------bloboats178logstatsplain d---------block178logstatsplain d---------blockade141logstatsplain d---------blockout178logstatsplain d---------blockrage178logstatsplain d---------blokish109logstatsplain d---------bloodfrontier141logstatsplain d---------blue109logstatsplain d---------bogged109logstatsplain d---------bomber146logstatsplain d---------bomberclone178logstatsplain d---------bomberinstinct178logstatsplain d---------bombermaze178logstatsplain d---------bombherman146logstatsplain d---------bomns146logstatsplain d---------boswars178logstatsplain d---------bovo146logstatsplain d---------braincurses146logstatsplain d---------brainparty178logstatsplain d---------brainworkshop178logstatsplain d---------brickshooter146logstatsplain d---------brikx146logstatsplain d---------briquolo146logstatsplain d---------brutalchess178logstatsplain d---------bs109logstatsplain d---------bsdgames178logstatsplain d---------bsdrain109logstatsplain d---------bsdtris178logstatsplain d---------bsp146logstatsplain d---------bubble-chains146logstatsplain d---------bubbros178logstatsplain d---------bugsquish146logstatsplain d---------bugsx141logstatsplain d---------bumprace146logstatsplain d---------burgerspace146logstatsplain d---------burrtools141logstatsplain d---------bygfoot178logstatsplain d---------bzflag146logstatsplain d---------cake180logstatsplain d---------caph146logstatsplain d---------capitalism146logstatsplain d---------cardpics146logstatsplain d---------castlevox178logstatsplain d---------cave9178logstatsplain d---------cavezofphear146logstatsplain d---------ceferino178logstatsplain d---------cgoban141logstatsplain d---------chanta178logstatsplain d---------chapping178logstatsplain d---------cheech146logstatsplain d---------chessx141logstatsplain d---------childsplay178logstatsplain d---------childsplay_plugins178logstatsplain d---------chocolate-doom217logstatsplain d---------chroma178logstatsplain d---------chromium-bsu146logstatsplain d---------circuslinux178logstatsplain d---------cleanq3178logstatsplain d---------colorcode109logstatsplain d---------columns178logstatsplain d---------concentration178logstatsplain d---------connectagram146logstatsplain d---------connectfive141logstatsplain d---------conquest256logstatsplain d---------construo146logstatsplain d---------corewars178logstatsplain d---------corsix-th178logstatsplain d---------cosmo178logstatsplain d---------cosmosmash146logstatsplain d---------cowsay178logstatsplain d---------crack-attack146logstatsplain d---------crafty-open-enormous178logstatsplain d---------crafty-open-large178logstatsplain d---------crafty-open-medium178logstatsplain d---------crafty-tablebase-no-pawn219logstatsplain d---------crafty-tablebase-pawn219logstatsplain d---------crafty251logstatsplain d---------cre141logstatsplain d---------cretan-hubris109logstatsplain d---------crimson146logstatsplain d---------criticalmass141logstatsplain d---------critterding178logstatsplain d---------crossfire-client146logstatsplain d---------crossfire-server178logstatsplain d---------crrcsim178logstatsplain d---------cryptoslam109logstatsplain d---------csmash178logstatsplain d---------ctris109logstatsplain d---------cube178logstatsplain d---------cultivation178logstatsplain d---------cursive141logstatsplain d---------cutemaze146logstatsplain d---------cuyo146logstatsplain d---------d2x-xl178logstatsplain d---------d2x180logstatsplain d---------daimonin-music110logstatsplain d---------daimonin178logstatsplain d---------dangen109logstatsplain d---------dangerdeep-data109logstatsplain d---------dangerdeep141logstatsplain d---------darkplaces141logstatsplain d---------deal109logstatsplain d---------defendguin178logstatsplain d---------deng178logstatsplain d---------diameter178logstatsplain d---------digger-vgl178logstatsplain d---------djgame2178logstatsplain d---------dmjava146logstatsplain d---------dodgindiamond2217logstatsplain d---------domination178logstatsplain d---------dontspace146logstatsplain d---------doom-data222logstatsplain d---------doom-freedoom109logstatsplain d---------doom-hacx109logstatsplain d---------doom-hr180logstatsplain d---------doom-hr2109logstatsplain d---------doom-wolfendoom146logstatsplain d---------doom178logstatsplain d---------doomlegacy141logstatsplain d---------dopewars146logstatsplain d---------drcreep178logstatsplain d---------drm178logstatsplain d---------dsnake178logstatsplain d---------duel178logstatsplain d---------duke3d-data222logstatsplain d---------dungeon109logstatsplain d---------dungeoncrawl141logstatsplain d---------easysok146logstatsplain d---------eboard217logstatsplain d---------edge141logstatsplain d---------editss178logstatsplain d---------eduke32146logstatsplain d---------egl178logstatsplain d---------egoboo180logstatsplain d---------eif146logstatsplain d---------eights141logstatsplain d---------einstein217logstatsplain d---------el-data109logstatsplain d---------el141logstatsplain d---------ember178logstatsplain d---------empire109logstatsplain d---------endgame-singularity-music146logstatsplain d---------endgame-singularity146logstatsplain d---------enigma178logstatsplain d---------ensemblist141logstatsplain d---------enygma178logstatsplain d---------epiar146logstatsplain d---------etracer146logstatsplain d---------euchre109logstatsplain d---------evilfinder141logstatsplain d---------evq3178logstatsplain d---------excido178logstatsplain d---------exhaust-doc146logstatsplain d---------exhaust-ma180logstatsplain d---------exhaust180logstatsplain d---------exmars178logstatsplain d---------exult178logstatsplain d---------ezquake178logstatsplain d---------f1lt109logstatsplain d---------f1spirit-remake141logstatsplain d---------fairymax109logstatsplain d---------falconseye178logstatsplain d---------farblazer178logstatsplain