Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Jan 2016 14:35:35 +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: r407643 - head/editors/sted
Message-ID:  <201601311435.u0VEZZ4s083535@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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:



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