- Fix the build with GCC 4.2 [1]

- Kill EOF whitespace in pkg-descr
- Utilize PORTDOCS macro in pkg-plist
- Miscellaneous cleanups

Reported by:	pointyhat (logs) [1]
This commit is contained in:
Alexey Dokuchaev 2007-07-04 16:19:56 +00:00
parent 9ea9260458
commit 8585fce32b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=194920
3 changed files with 15 additions and 20 deletions

View file

@ -1,6 +1,6 @@
# New ports collection makefile for: icmpchat # New ports collection makefile for: ICMP-Chat
# Date created: 8 October 2002 # Date created: 8 October 2002
# Whom: mwest@uct.ac.za # Whom: Matthew West <mwest@uct.ac.za>
# #
# $FreeBSD$ # $FreeBSD$
# #
@ -12,17 +12,15 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= icmpchat MASTER_SITE_SUBDIR= icmpchat
MAINTAINER= ports@FreeBSD.org MAINTAINER= ports@FreeBSD.org
COMMENT= Simple console-based chat that uses the ICMP protocol COMMENT= Simple console-based chat that uses ICMP protocol
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 700042
BROKEN= Broken with gcc 4.2
.endif
pre-patch: pre-patch:
@${REINPLACE_CMD} -e 's|-O2 -Wall -pedantic|${CFLAGS}|;\ @${REINPLACE_CMD} -e 's|-O2 -Wall -pedantic|${CFLAGS}|;\
s|= gcc|?= gcc|;s|default|all|' ${WRKSRC}/Makefile 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: do-install:
${INSTALL_PROGRAM} ${WRKSRC}/icmpchat ${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/icmpchat ${PREFIX}/bin
@ -35,4 +33,4 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/Todo ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/Todo ${DOCSDIR}
.endif .endif
.include <bsd.port.post.mk> .include <bsd.port.mk>

View file

@ -1,7 +1,4 @@
ICMP-Chat is a simple console-based chat that uses ICMP packets for ICMP-Chat is a simple console-based chat that uses ICMP packets for
communication. The data is encrypted using the Rijndael-256 algorithm. communication. The data is encrypted using the Rijndael-256 algorithm.
WWW: http://icmpchat.sourceforge.net/ WWW: http://icmpchat.sourceforge.net/
--
mwest@uct.ac.za

View file

@ -1,7 +1,7 @@
bin/icmpchat bin/icmpchat
%%PORTDOCS%%share/doc/icmpchat/Changes %%PORTDOCS%%%%DOCSDIR%%/Changes
%%PORTDOCS%%share/doc/icmpchat/License %%PORTDOCS%%%%DOCSDIR%%/License
%%PORTDOCS%%share/doc/icmpchat/Problems %%PORTDOCS%%%%DOCSDIR%%/Problems
%%PORTDOCS%%share/doc/icmpchat/Readme %%PORTDOCS%%%%DOCSDIR%%/Readme
%%PORTDOCS%%share/doc/icmpchat/Todo %%PORTDOCS%%%%DOCSDIR%%/Todo
%%PORTDOCS%%@dirrm share/doc/icmpchat %%PORTDOCS%%@dirrm %%DOCSDIR%%