freebsd-ports/games/ctris/Makefile

33 lines
810 B
Makefile

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>