aboutsummaryrefslogtreecommitdiffstats
path: root/games/empire/Makefile
blob: 1212101cef4305a54d8fddbe3a25305241c4982c (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
# New ports collection makefile for:    empire
# Date created:             13 May 1997
# Whom:                 Andrey Zakhvatov
#
# $FreeBSD$
#

PORTNAME=   empire
PORTVERSION=    1.9
CATEGORIES= games
MASTER_SITES=   http://www.catb.org/~esr/vms-empire/
DISTNAME=   vms-${PORTNAME}-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Solitaire empire game "VMS Empire"

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

MAKE_JOBS_SAFE= yes

MAN6=       empire.6
PORTDOCS=   BUGS README
PLIST_FILES=    bin/empire

post-patch:
    @${REINPLACE_CMD} -e 's/^CFLAGS/#CFLAGS/ ; \
         s/-lncurses/-lcurses/' ${WRKSRC}/Makefile
    @${REINPLACE_CMD} -e 's/static void/void/g' ${WRKSRC}/game.c

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/vms-empire ${PREFIX}/bin/empire
    ${INSTALL_MAN} ${WRKSRC}/empire.6 ${MAN6PREFIX}/man/man6/empire.6
.if !defined(NOPORTDOCS)
.for file in ${PORTDOCS}
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>