diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2016-06-24 00:45:54 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2016-06-24 00:45:54 +0800 |
commit | 8e948c89989bba9d75a228a02eb38d13fbee99ed (patch) | |
tree | c232fdab34bf02f407864cb2d74dde76062b99b8 /net-im/icmpchat | |
parent | a8f3ae39968bd16295195ec98096b43e7972239e (diff) | |
download | freebsd-ports-gnome-8e948c89989bba9d75a228a02eb38d13fbee99ed.tar.gz freebsd-ports-gnome-8e948c89989bba9d75a228a02eb38d13fbee99ed.tar.zst freebsd-ports-gnome-8e948c89989bba9d75a228a02eb38d13fbee99ed.zip |
- Add LICENSE
- Switch to options helpers
- Silence patching
Diffstat (limited to 'net-im/icmpchat')
-rw-r--r-- | net-im/icmpchat/Makefile | 19 | ||||
-rw-r--r-- | net-im/icmpchat/pkg-plist | 6 |
2 files changed, 12 insertions, 13 deletions
diff --git a/net-im/icmpchat/Makefile b/net-im/icmpchat/Makefile index 3b98f291a5ea..ccffa32d81f4 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 92f08fb40729..000000000000 --- 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 |