svn commit: r408246 - head/editors/beav

John Marino marino at FreeBSD.org
Fri Feb 5 18:17:04 UTC 2016


Author: marino
Date: Fri Feb  5 18:17:02 2016
New Revision: 408246
URL: https://svnweb.freebsd.org/changeset/ports/408246

Log:
  editors/beav: USES+= ncurses, respect LDFLAGS

Modified:
  head/editors/beav/Makefile

Modified: head/editors/beav/Makefile
==============================================================================
--- head/editors/beav/Makefile	Fri Feb  5 18:16:54 2016	(r408245)
+++ head/editors/beav/Makefile	Fri Feb  5 18:17:02 2016	(r408246)
@@ -15,15 +15,16 @@ PATCH_DIST_STRIP=	-p1
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Binary Editor And Viewer, a full featured binary file editor
 
+USES=		ncurses
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION:R:S/.//}
-
 ALL_TARGET=	beav
 MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS} -DUNIX -DBSD -DNOPROTO"
 
 OPTIONS_DEFINE=	DOCS
 
 post-patch:
-	@${REINPLACE_CMD} -e 's|(OFILES):|$$(OFILES):|' ${WRKSRC}/Makefile
+	@${REINPLACE_CMD} -e 's|(OFILES):|$$(OFILES):|' \
+		-e 's|-lncurses|${LDFLAGS} -lncurses|' ${WRKSRC}/Makefile
 	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/beav.1
 
 do-install:


More information about the svn-ports-all mailing list