blob: a222867439286f589fa5560fcebd701b1a3fbc38 (
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
|
PORTNAME= ctris
DISTVERSIONPREFIX= v
DISTVERSION= 0.43
CATEGORIES= games
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Colorized, small, and flexible Tetris(TM)-clone for the console
WWW= https://github.com/dominikhackl/ctris
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USES= ncurses
USE_GITHUB= yes
GH_ACCOUNT= dominikhackl
MAKE_ARGS= LIBS="${LDFLAGS} -lncurses"
PLIST_FILES= bin/ctris \
share/man/man6/ctris.6.gz
post-patch:
@${REINPLACE_CMD} -e "s|^\(#define VERSION\).*|\1 \"v${PORTVERSION}\"|" ${WRKSRC}/ctris.h
@${REINPLACE_CMD} -e "s|gcc|${CC}|" -e "s|CFLAGS=.*|CFLAGS+=-Wall|" \
${WRKSRC}/Makefile
do-install:
${INSTALL_MAN} ${WRKSRC}/ctris.6.gz \
${STAGEDIR}${PREFIX}/share/man/man6/ctris.6.gz
${INSTALL_PROGRAM} ${WRKSRC}/ctris ${STAGEDIR}${PREFIX}/bin/ctris
.include <bsd.port.mk>
|