aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorbsam <bsam@FreeBSD.org>2013-06-14 00:12:10 +0800
committerbsam <bsam@FreeBSD.org>2013-06-14 00:12:10 +0800
commit594f7f2b2f5fe165f2a15e732c332ff7e067e983 (patch)
treedc06ecfb84be7f65d81ee74067ede43e38180595 /games
parent7d044e5e0647661ac638c735ef18e7e33bfb1af8 (diff)
downloadfreebsd-ports-gnome-594f7f2b2f5fe165f2a15e732c332ff7e067e983.tar.gz
freebsd-ports-gnome-594f7f2b2f5fe165f2a15e732c332ff7e067e983.tar.zst
freebsd-ports-gnome-594f7f2b2f5fe165f2a15e732c332ff7e067e983.zip
. fix building with clang (CFLAGS+=-Wno-return-type);
. trim Makefile headers; . remove the indefinite article from COMMENT; . add LICENSE=ART10; . NOPORTDOCS -> PORT_OPTIONS:MDOCS; . mute MKDIR; . use standard DOCSDIR and DATADIR; . utilize PORTDOCS.
Diffstat (limited to 'games')
-rw-r--r--games/conquest/Makefile31
-rw-r--r--games/conquest/pkg-plist2
2 files changed, 17 insertions, 16 deletions
diff --git a/games/conquest/Makefile b/games/conquest/Makefile
index db10495ad67c..0f1ab77dc1d6 100644
--- a/games/conquest/Makefile
+++ b/games/conquest/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: conquest
-# Date created: Apr 9, 2001
-# Whom: Mark Pulford <mark@kyne.com.au>
-#
+# Created by: Mark Pulford <mark@kyne.com.au>
# $FreeBSD$
-#
PORTNAME= conquest
PORTVERSION= 7.2
@@ -12,16 +8,22 @@ MASTER_SITES= SF/conq/Conquest/Conquest%20${PORTVERSION}
EXTRACT_SUFX= .src.tar.gz
MAINTAINER= ports@FreeBSD.org
-COMMENT= A multi-player curses space warfare game similar to Netrek
+COMMENT= Multi-player curses space warfare game similar to Netrek
+
+LICENSE= ART10
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --sysconfdir=${LOCALBASE}/etc/conquest \
--datadir=${LOCALBASE}/share/conquest \
--localstatedir=/var/games
+CFLAGS+= -Wno-return-type
GROUPS= ${PORTNAME}
BINGRP= conquest
SHAREGRP= conquest
MAKE_JOBS_UNSAFE= yes
+PORTDOCS= README
+
+OPTIONS_DEFINE= DOCS
post-patch:
${REINPLACE_CMD} "s|^.*@chgrp .(CONQGROUP) conq.*||g; \
@@ -29,22 +31,23 @@ post-patch:
${REINPLACE_CMD} "s/# include <termio.h>//g" ${WRKSRC}/c_defs.h
${REINPLACE_CMD} "s/-O2 -fPIC//g" ${WRKSRC}/configure
+.include <bsd.port.options.mk>
+
do-install:
${INSTALL_PROGRAM} -m 2550 ${WRKSRC}/conqai ${PREFIX}/sbin
${INSTALL_PROGRAM} -m 2551 ${WRKSRC}/conqdriv ${PREFIX}/libexec
${INSTALL_PROGRAM} -m 2551 ${WRKSRC}/conqoper ${PREFIX}/sbin
${INSTALL_PROGRAM} ${WRKSRC}/conqstrat ${PREFIX}/sbin
${INSTALL_PROGRAM} -m 2551 ${WRKSRC}/conquest ${PREFIX}/bin
- ${MKDIR} ${PREFIX}/etc/conquest
+ @${MKDIR} ${PREFIX}/etc/conquest
${INSTALL_DATA} ${WRKSRC}/conqrule \
${PREFIX}/etc/conquest/conqrule.sample
- ${MKDIR} ${PREFIX}/share/conquest
- ${INSTALL_DATA} ${WRKSRC}/conqnews.doc \
- ${PREFIX}/share/conquest/conqnews.doc.sample
- ${INSTALL_DATA} ${WRKSRC}/conquest.doc ${PREFIX}/share/conquest
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/conquest
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/conquest
+ @${MKDIR} ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/conqnews.doc ${DATADIR}/conqnews.doc.sample
+ ${INSTALL_DATA} ${WRKSRC}/conquest.doc ${DATADIR}
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
@${SH} pkg-install ${PORTNAME} POST-INSTALL
diff --git a/games/conquest/pkg-plist b/games/conquest/pkg-plist
index 5c41209f9584..584a09d1465d 100644
--- a/games/conquest/pkg-plist
+++ b/games/conquest/pkg-plist
@@ -6,7 +6,5 @@ sbin/conqoper
sbin/conqstrat
%%DATADIR%%/conqnews.doc.sample
%%DATADIR%%/conquest.doc
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm etc/conquest
@dirrm %%DATADIR%%