1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-17 08:01:36 +00:00

net-im/icmpchat: USES+= ncurses, respect LDFLAGS

Also link with libncurses, not libcurses
This commit is contained in:
John Marino 2016-02-05 11:23:00 +00:00
parent 8d26b80983
commit 0c1334d2f2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=408162

View File

@ -9,11 +9,13 @@ MASTER_SITES= SF
MAINTAINER= ports@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 *) *|' \