1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

Fix build with modern c++

Finish staging ;)
This commit is contained in:
Chris Rees 2014-04-01 18:02:30 +00:00
parent 7c3969f3b8
commit 0ffc96fc15
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=349870
3 changed files with 21 additions and 12 deletions

View File

@ -14,25 +14,14 @@ GNU_CONFIGURE= yes
PLIST_FILES= bin/kua bin/ua \
man/man1/kua.1.gz man/man1/ua.1.gz
PORTDOCS= README
MAN1L= kua.1 ua.1
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
.if ${OSVERSION} > 1000000
.if ${CC} != gcc42
BROKEN= needs gcc4.2 to compile
.endif
.endif
post-install:
.for i in ${MAN1L}
${INSTALL_MAN} ${WRKSRC}/${i} ${STAGEDIR}${PREFIX}/man/man1/
.endfor
.if ${PORT_OPTIONS:MDOCS}
${INSTALL_MAN} ${WRKSRC}/*.1 ${STAGEDIR}${PREFIX}/man/man1/
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,10 @@
--- ./kua.cc.orig 2014-03-31 20:20:29.908846067 +0100
+++ ./kua.cc 2014-03-31 20:20:48.178847931 +0100
@@ -49,6 +49,7 @@
extern "C" {
#include <stdio.h>
+#include <unistd.h>
}
static char __help[] =

View File

@ -0,0 +1,10 @@
--- ./ua.cc.orig 2014-03-31 20:20:23.870845476 +0100
+++ ./ua.cc 2014-03-31 20:21:00.021844495 +0100
@@ -57,6 +57,7 @@
extern "C" {
#include <stdio.h>
+#include <unistd.h>
}
static char __help[] =