editors/sted: USES+=ncurses, respect LDFLAGS

while here, use MAKE_ARGS instead of sed'ing Makefile
This commit is contained in:
John Marino 2016-01-31 14:35:35 +00:00
parent 93a13aebb5
commit 355b183ab6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=407643

View file

@ -11,15 +11,14 @@ COMMENT= Simple/Small/Stupid Text Editor
LICENSE= GPLv2
USES= ncurses
WRKSRC= ${WRKDIR}/sted
MAKE_ARGS= CC="${CC}" C_OPTS="${CFLAGS}" L_OPTS="${LDFLAGS} -lncurses"
PORTDOCS= CHANGES README
PLIST_FILES= bin/sted man/man1/sted.1.gz
post-patch:
@${REINPLACE_CMD} -e "s|CC = gcc|CC ?= gcc|" \
-e "s|C_OPTS = -Wall -O2|C_OPTS = ${CFLAGS}|" \
${WRKSRC}/Makefile
@${REINPLACE_CMD} "s|<curses.h>|<ncurses.h>|" ${WRKSRC}/sted.c
do-install: