aboutsummaryrefslogtreecommitdiff
path: root/games/tinycols/Makefile
blob: 204fb412ef1f5ef345717e433aa9612e580eaec7 (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
PORTNAME=	tinycols
DISTVERSION=	0.7.0
CATEGORIES=	games

MAINTAINER=	fuz@FreeBSD.org
COMMENT=	Jewels matching game for the terminal
WWW=		https://github.com/zedr/tinycols

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		ncurses
USE_GITHUB=	yes
GH_ACCOUNT=	zedr

CPPFLAGS+=	-I${NCURSESINC:/ncurses=}
LDFLAGS+=	-L${NCURSESLIB}
LIBS+=		${NCURSESLIBS}

PLIST_FILES=	bin/tinycols \
		share/man/man6/tinycols.6.gz

do-build:
	${MKDIR} ${WRKSRC}/build
	${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o ${WRKSRC}/build/tinycols \
	    ${WRKSRC}/src/main.c ${WRKSRC}/src/gfx.c ${WRKSRC}/src/tinycols/*.c \
	    ${WRKSRC}/src/queue.c ${LIBS}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/build/tinycols ${STAGEDIR}${PREFIX}/bin/
	${INSTALL_MAN} ${WRKSRC}/doc/man/tinycols.6 ${STAGEDIR}${PREFIX}/share/man/man6/

.include <bsd.port.mk>