1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/games/ctris/Makefile
John Marino 334369a325 games/ctris: honor LDFLAGS (again)
The previous update removed the LIBS definition of MAKE_ARGS, but it
is still needed for ports ncurses, so return it back (minus the -lm flag
which is no longer needed).

Approved by:	nurses blanket
2017-02-08 17:43:03 +00:00

34 lines
787 B
Makefile

# Created by: Travis Poppe <tlp@liquidx.org>
# $FreeBSD$
PORTNAME= ctris
PORTVERSION= 0.42.1
DISTVERSIONPREFIX= v
CATEGORIES= games
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Colorized, small, and flexible Tetris(TM)-clone for the console
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USES= ncurses
MAKE_ARGS= LIBS="${LDFLAGS} -lncurses"
USE_GITHUB= yes
GH_ACCOUNT= dominikhackl
PLIST_FILES= bin/ctris man/man6/ctris.6.gz
post-patch:
@${REINPLACE_CMD} -e "s|v0\.42|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}/man/man6/ctris.6.gz
${INSTALL_PROGRAM} ${WRKSRC}/ctris ${STAGEDIR}${PREFIX}/bin/ctris
.include <bsd.port.mk>