svn commit: r408162 - head/net-im/icmpchat

John Marino marino at FreeBSD.org
Fri Feb 5 11:23:02 UTC 2016


Author: marino
Date: Fri Feb  5 11:23:00 2016
New Revision: 408162
URL: https://svnweb.freebsd.org/changeset/ports/408162

Log:
  net-im/icmpchat: USES+= ncurses, respect LDFLAGS
  
  Also link with libncurses, not libcurses

Modified:
  head/net-im/icmpchat/Makefile

Modified: head/net-im/icmpchat/Makefile
==============================================================================
--- head/net-im/icmpchat/Makefile	Fri Feb  5 11:20:53 2016	(r408161)
+++ head/net-im/icmpchat/Makefile	Fri Feb  5 11:23:00 2016	(r408162)
@@ -9,11 +9,13 @@ MASTER_SITES=	SF
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Simple console-based chat that uses ICMP protocol
 
+USES=		ncurses
 OPTIONS_DEFINE=	DOCS
 
 pre-patch:
-	${REINPLACE_CMD} -e 's|-O2 -Wall -pedantic|${CFLAGS}|;\
-		s|= gcc|?= gcc|;s|default|all|' ${WRKSRC}/Makefile
+	${REINPLACE_CMD} -e 's|-O2 -Wall -pedantic|${CFLAGS}|' \
+		-e 's|-lcurses|${LDFLAGS} -lncurses|g' \
+		-e' s|= gcc|?= gcc|;s|default|all|' ${WRKSRC}/Makefile
 # Fix for GCC 4.2
 	${REINPLACE_CMD} -e \
 		's|((uint8_t \*) data) +=|data += sizeof(uint8_t *) *|' \


More information about the svn-ports-all mailing list