Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Feb 2016 19:21:03 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r408446 - head/devel/ncc
Message-ID:  <201602071921.u17JL3Nc080340@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Sun Feb  7 19:21:03 2016
New Revision: 408446
URL: https://svnweb.freebsd.org/changeset/ports/408446

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

Modified:
  head/devel/ncc/Makefile

Modified: head/devel/ncc/Makefile
==============================================================================
--- head/devel/ncc/Makefile	Sun Feb  7 19:19:10 2016	(r408445)
+++ head/devel/ncc/Makefile	Sun Feb  7 19:21:03 2016	(r408446)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602071921.u17JL3Nc080340>