summaryrefslogtreecommitdiffstats
path: root/games/conquest/Makefile
blob: 213bd8e889011b1f6ed919fcac73c65bb23fccde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Created by: Mark Pulford <mark@kyne.com.au>
# $FreeBSD$

PORTNAME=	conquest
PORTVERSION=	7.2
CATEGORIES=	games
MASTER_SITES=	SF/conq/Conquest/Conquest%20${PORTVERSION}
EXTRACT_SUFX=	.src.tar.gz

MAINTAINER=	ports@FreeBSD.org
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}
MAKE_JOBS_UNSAFE=	yes
PORTDOCS=	README

SUB_FILES=	pkg-message

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} "s|^.*@chgrp .(CONQGROUP) conq.*||g; \
		s|^.*@chmod 2771 conq.*||g;" ${WRKSRC}/Makefile.in
	@${REINPLACE_CMD} "s/# include <termio.h>//g" ${WRKSRC}/c_defs.h
	@${REINPLACE_CMD} "s/-O2 -fPIC//g" ${WRKSRC}/configure

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/conqai ${STAGEDIR}${PREFIX}/sbin
	${INSTALL_PROGRAM} ${WRKSRC}/conqdriv ${STAGEDIR}${PREFIX}/libexec
	${INSTALL_PROGRAM} ${WRKSRC}/conqoper ${STAGEDIR}${PREFIX}/sbin
	${INSTALL_PROGRAM} ${WRKSRC}/conqstrat ${STAGEDIR}${PREFIX}/sbin
	${INSTALL_PROGRAM} ${WRKSRC}/conquest ${STAGEDIR}${PREFIX}/bin
	@${MKDIR} ${STAGEDIR}${ETCDIR}
	${INSTALL_DATA} ${WRKSRC}/conqrule ${STAGEDIR}${ETCDIR}/conqrule.sample
	@${MKDIR} ${STAGEDIR}${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/conqnews.doc \
		${STAGEDIR}${DATADIR}/conqnews.doc.sample
	${INSTALL_DATA} ${WRKSRC}/conquest.doc ${STAGEDIR}${DATADIR}
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
	@${MKDIR} ${STAGEDIR}/var/games/conquest

.include <bsd.port.mk>
OpenPOWER on IntegriCloud