1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

. 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.
This commit is contained in:
Boris Samorodov 2013-06-13 16:12:10 +00:00
parent 0f537c5f4f
commit a9e4b9e319
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=320812
2 changed files with 17 additions and 16 deletions

View File

@ -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

View File

@ -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%%