05f0f44a55
Homepage link is permanent redirected to its HTTPS counterpart
37 lines
895 B
Makefile
37 lines
895 B
Makefile
PORTNAME= icmpchat
|
|
PORTVERSION= 0.6
|
|
PORTREVISION= 1
|
|
CATEGORIES= net-im
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Simple console-based chat that uses ICMP protocol
|
|
WWW= https://icmpchat.sourceforge.net/
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/License
|
|
|
|
USES= ncurses
|
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
PORTDOCS= Changes Problems Readme Todo
|
|
|
|
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
|
|
|
|
do-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|