svn commit: r407643 - head/editors/sted

John Marino marino at FreeBSD.org
Sun Jan 31 14:35:36 UTC 2016


Author: marino
Date: Sun Jan 31 14:35:35 2016
New Revision: 407643
URL: https://svnweb.freebsd.org/changeset/ports/407643

Log:
  editors/sted: USES+=ncurses, respect LDFLAGS
  
  while here, use MAKE_ARGS instead of sed'ing Makefile

Modified:
  head/editors/sted/Makefile

Modified: head/editors/sted/Makefile
==============================================================================
--- head/editors/sted/Makefile	Sun Jan 31 14:22:16 2016	(r407642)
+++ head/editors/sted/Makefile	Sun Jan 31 14:35:35 2016	(r407643)
@@ -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:


More information about the svn-ports-head mailing list