aboutsummaryrefslogtreecommitdiffstats
path: root/games/conquest/Makefile
blob: db10495ad67c0976a06c463a8433e50168c6c65f (plain) (blame)
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
51
52
53
54
# New ports collection makefile for:    conquest
# Date created:         Apr 9, 2001
# Whom:             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=    A multi-player curses space warfare game similar to Netrek

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --sysconfdir=${LOCALBASE}/etc/conquest \
        --datadir=${LOCALBASE}/share/conquest \
        --localstatedir=/var/games
GROUPS=     ${PORTNAME}
BINGRP=     conquest
SHAREGRP=   conquest
MAKE_JOBS_UNSAFE=   yes

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} -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
    ${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
.endif
    @${SH} pkg-install ${PORTNAME} POST-INSTALL

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>