aboutsummaryrefslogtreecommitdiffstats
path: root/games/starlanes/Makefile
blob: ead560557eac4447ab66a71a9d2c52ba38c30936 (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
# Created by: Andrey Zakhvatov
# $FreeBSD$

PORTNAME=   starlanes
PORTVERSION=    1.2.2
CATEGORIES= games
MASTER_SITES=   SUNSITE/games/strategy

MAINTAINER= ports@FreeBSD.org
COMMENT=    Classic space-age stock trading game

MAN6=       starlanes.6
PLIST_FILES=    bin/starlanes

NO_STAGE=   yes
post-patch:
    @${REINPLACE_CMD} -e \
        's| restrict| m_restrict| ; \
         s|(restrict|(m_restrict|' ${WRKSRC}/starlanes.c

do-build:
    (cd ${WRKSRC} \
        && ${CC} ${CFLAGS} -o starlanes starlanes.c -lcurses)

do-install:
    (cd ${WRKSRC} && ${INSTALL_PROGRAM} starlanes ${PREFIX}/bin)
    (cd ${WRKSRC} && ${INSTALL_MAN} starlanes.6 ${MAN6PREFIX}/man/man6)

.include <bsd.port.mk>