freebsd-ports/net-im/icmpchat/Makefile
John Marino 0c1334d2f2 net-im/icmpchat: USES+= ncurses, respect LDFLAGS
Also link with libncurses, not libcurses
2016-02-05 11:23:00 +00:00

33 lines
966 B
Makefile

# Created by: Matthew West <mwest@uct.ac.za>
# $FreeBSD$
PORTNAME= icmpchat
PORTVERSION= 0.6
CATEGORIES= net-im
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}|' \
-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 *) *|' \
${WRKSRC}/sha256.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/icmpchat ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Changes ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/License ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Problems ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Readme ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Todo ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>