aboutsummaryrefslogtreecommitdiffstats
path: root/games/nsnake/Makefile
blob: 5fdf2b918379ef4dc76daa5a9eb7f39c8251b102 (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
# Created by: markand
# $FreeBSD$

PORTNAME=   nsnake
PORTVERSION=    1.4
PORTREVISION=   1
CATEGORIES= games
MASTER_SITES=   http://releases.malikania.fr/nsnake/
EXTRACT_SUFX=   .tgz

MAINTAINER= demelier.david@gmail.com
COMMENT=    Snake game written in C and ncurses

LICENSE=    MIT

OPTIONS_DEFINE= DOCS
OPTIONS_SUB=    yes

.include <bsd.port.options.mk>

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

do-install:
    (cd ${WRKSRC} \
        && ${INSTALL_PROGRAM} ${PORTNAME} ${STAGEDIR}${PREFIX}/bin \
        && ${INSTALL_MAN} ${PORTNAME}.6 ${STAGEDIR}${MANPREFIX}/man/man6)
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    (cd ${WRKSRC} && ${INSTALL_DATA} CHANGELOG ${STAGEDIR}${DOCSDIR})
.endif

.include <bsd.port.mk>