blob: ca05bec2eccc77a460d9f8b489cd03094fea0030 (
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
|
# Created by: markand
# $FreeBSD$
PORTNAME= nsnake
PORTVERSION= 1.4
CATEGORIES= games
MASTER_SITES= http://softs.malikania.fr/releases/
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= Snake game written in C and ncurses
LICENSE= MIT
OPTIONS_DEFINE= DOCS
MAN6= ${PORTNAME}.6
PORTDOCS= CHANGELOG
PLIST_FILES= bin/${PORTNAME}
.include <bsd.port.options.mk>
do-build:
(cd ${WRKSRC} && ${CC} ${CFLAGS} -o ${PORTNAME} ${PORTNAME}.c -lcurses)
do-install:
(cd ${WRKSRC} \
&& ${INSTALL_PROGRAM} ${PORTNAME} ${PREFIX}/bin \
&& ${INSTALL_MAN} ${PORTNAME}.6 ${MANPREFIX}/man/man6)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} CHANGELOG ${DOCSDIR})
.endif
.include <bsd.port.mk>
|