1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00

devel/ncc: USES+= ncurses, respect LDFLAGS/CFLAGS

This commit is contained in:
John Marino 2016-02-07 19:21:03 +00:00
parent 145f8171c4
commit 3d90f7a13c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=408446

View File

@ -15,7 +15,7 @@ LICENSE_FILE= ${WRKSRC}/doc/LICENSE
ALL_TARGET= # empty
MAKE_ARGS+= CC="${CXX}" LCFLAGS="${CFLAGS}"
USES= python:run
USES= ncurses python:run
CFLAGS+= -DNOGNU='\"${PREFIX}/include/ncc/nognu\"' -fpermissive
PLIST_FILES= bin/ncc bin/nccnav bin/nccnavi bin/ncc-gengraph.py \
@ -30,6 +30,8 @@ OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e '/NOGNU/d' ${WRKSRC}/config.h
@${REINPLACE_CMD} -e '/#include <alloca.h>/d' ${WRKSRC}/dbstree.h
@${REINPLACE_CMD} -e 's|-lncurses|$$(CFLAGS) $$(LDFLAGS) -lncurses|' \
${WRKSRC}/nccnav/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/objdir/ncc ${STAGEDIR}${PREFIX}/bin