aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2006-08-07 02:41:40 +0800
committersem <sem@FreeBSD.org>2006-08-07 02:41:40 +0800
commit7c4acf3c6965acf29d2b5146965dbf5f5966d4c5 (patch)
treec9256aa7cd6145273baa359dd0f30655654b9be5 /devel
parent6ae3b175f9a9439488773c6e2ba146f1f3b4307b (diff)
downloadfreebsd-ports-gnome-7c4acf3c6965acf29d2b5146965dbf5f5966d4c5.tar.gz
freebsd-ports-gnome-7c4acf3c6965acf29d2b5146965dbf5f5966d4c5.tar.zst
freebsd-ports-gnome-7c4acf3c6965acf29d2b5146965dbf5f5966d4c5.zip
- Fix build on 4.11
Reported by: kris mail
Diffstat (limited to 'devel')
-rw-r--r--devel/gsoap/Makefile11
-rw-r--r--devel/gsoap/files/patch-soapcpp2-stdsoap2.cpp2
2 files changed, 11 insertions, 2 deletions
diff --git a/devel/gsoap/Makefile b/devel/gsoap/Makefile
index e78f5aaea73b..9f6afcd1b146 100644
--- a/devel/gsoap/Makefile
+++ b/devel/gsoap/Makefile
@@ -23,8 +23,17 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-2.7
ONLY_FOR_ARCHS= i386 amd64
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500000
+CONST=
+.else
+CONST= const
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's/> FD_SETSIZE/> (int)FD_SETSIZE/g' ${WRKSRC}/soapcpp2/stdsoap2.c
@${REINPLACE_CMD} -e 's/> FD_SETSIZE/> (int)FD_SETSIZE/g' ${WRKSRC}/soapcpp2/stdsoap2.cpp
+ @${REINPLACE_CMD} -e 's/%%CONST%%/${CONST}/' ${WRKSRC}/soapcpp2/stdsoap2.cpp
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/devel/gsoap/files/patch-soapcpp2-stdsoap2.cpp b/devel/gsoap/files/patch-soapcpp2-stdsoap2.cpp
index d842a74e7460..5105d5ebba0d 100644
--- a/devel/gsoap/files/patch-soapcpp2-stdsoap2.cpp
+++ b/devel/gsoap/files/patch-soapcpp2-stdsoap2.cpp
@@ -14,7 +14,7 @@
if (!meth)
break;
- val = meth->i2v(meth, meth->d2i(NULL, (unsigned char**)&ext->value->data, ext->value->length), NULL);
-+ val = meth->i2v(meth, meth->d2i(NULL, (const unsigned char**)&ext->value->data, ext->value->length), NULL);
++ val = meth->i2v(meth, meth->d2i(NULL, (%%CONST%% unsigned char**)&ext->value->data, ext->value->length), NULL);
for (j = 0; j < sk_CONF_VALUE_num(val); j++)
{ CONF_VALUE *nval = sk_CONF_VALUE_value(val, j);
if (nval && !strcmp(nval->name, "DNS") && !strcmp(nval->value, host))