summaryrefslogtreecommitdiff
path: root/x11/xco
diff options
context:
space:
mode:
authorAlexander Langer <alex@FreeBSD.org>2002-09-24 11:54:26 +0000
committerAlexander Langer <alex@FreeBSD.org>2002-09-24 11:54:26 +0000
commitb52bded1d83eefb39f71c37ac0b53c16c2fb06e3 (patch)
tree363e2364df0e97c7b749072e8355c0bb423d9100 /x11/xco
parentDon't try to build a manpage. (diff)
Don't declare malloc(), it's already in stdlib.h
Submitted by: bento
Notes
Notes: svn path=/head/; revision=67094
Diffstat (limited to 'x11/xco')
-rw-r--r--x11/xco/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/x11/xco/Makefile b/x11/xco/Makefile
index 5618c0e3fcfd..1c39d84d0b89 100644
--- a/x11/xco/Makefile
+++ b/x11/xco/Makefile
@@ -14,10 +14,15 @@ DISTNAME= ${PORTNAME}
MAINTAINER= taoka@FreeBSD.org
USE_IMAKE= yes
+USE_REINPLACE= yes
MAN1= xco.1
MANCOMPRESSED= yes
DOCDIR= ${PREFIX}/share/doc/xco
+post-patch:
+ @${REINPLACE_CMD} -e 's/extern char \*malloc();//g' \
+ ${WRKSRC}/xco.c ${WRKSRC}/xargs.c
+
post-install:
@${MKDIR} ${DOCDIR}
@${INSTALL_DATA} ${FILESDIR}/copyright ${DOCDIR}