Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Feb 2016 13:15:33 +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: r408793 - head/misc/iselect
Message-ID:  <201602131315.u1DDFX89020286@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Sat Feb 13 13:15:33 2016
New Revision: 408793
URL: https://svnweb.freebsd.org/changeset/ports/408793

Log:
  misc/iselect: USES+= ncurses, respect LDFLAGS
  
  Also link with ncurses, not curses

Modified:
  head/misc/iselect/Makefile

Modified: head/misc/iselect/Makefile
==============================================================================
--- head/misc/iselect/Makefile	Sat Feb 13 12:53:19 2016	(r408792)
+++ head/misc/iselect/Makefile	Sat Feb 13 13:15:33 2016	(r408793)
@@ -13,7 +13,7 @@ COMMENT=	Interactive Selection Tool
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-USES=		shebangfix
+USES=		ncurses shebangfix
 SHEBANG_FILES=	example/gotourl/gotourl \
 		example/ilogin/ilogin \
 		example/melm/melm \
@@ -21,6 +21,7 @@ SHEBANG_FILES=	example/gotourl/gotourl \
 		example/scvs/scvs
 perl_OLD_CMD=	/sw/bin/perl
 GNU_CONFIGURE=	yes
+MAKE_ARGS=	LDFLAGS="${LDFLAGS}"
 
 PLIST_FILES=	bin/iselect man/man1/iselect.1.gz
 PORTEXAMPLES=	*
@@ -32,7 +33,8 @@ SLANG_CONFIGURE_ON=	--with-incdir=${LOCA
 			--with-libdir=${LOCALBASE}/lib
 
 post-patch:
-	@${REINPLACE_CMD} -e 's|^CFLAGS=|#CFLAGS=|g' ${WRKSRC}/configure
+	@${REINPLACE_CMD} -e 's|^CFLAGS=|#CFLAGS=|g' \
+		-e 's|-lcurses|-lncurses|' ${WRKSRC}/configure
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/iselect ${STAGEDIR}${PREFIX}/bin



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