aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net-im/icmpchat/Makefile19
-rw-r--r--net-im/icmpchat/pkg-plist6
2 files changed, 12 insertions, 13 deletions
diff --git a/net-im/icmpchat/Makefile b/net-im/icmpchat/Makefile
index 3b98f291a5e..ccffa32d81f 100644
--- a/net-im/icmpchat/Makefile
+++ b/net-im/icmpchat/Makefile
@@ -9,25 +9,30 @@ MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple console-based chat that uses ICMP protocol
+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}|' \
+ @${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 \
+ @${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}
- ${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}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/net-im/icmpchat/pkg-plist b/net-im/icmpchat/pkg-plist
deleted file mode 100644
index 92f08fb4072..00000000000
--- a/net-im/icmpchat/pkg-plist
+++ /dev/null
@@ -1,6 +0,0 @@
-bin/icmpchat
-%%PORTDOCS%%%%DOCSDIR%%/Changes
-%%PORTDOCS%%%%DOCSDIR%%/License
-%%PORTDOCS%%%%DOCSDIR%%/Problems
-%%PORTDOCS%%%%DOCSDIR%%/Readme
-%%PORTDOCS%%%%DOCSDIR%%/Todo