aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/librdkafka/Makefile7
-rw-r--r--net/librdkafka/distinfo6
-rw-r--r--net/librdkafka/files/patch-src_rd.h15
3 files changed, 24 insertions, 4 deletions
diff --git a/net/librdkafka/Makefile b/net/librdkafka/Makefile
index f751f2984173..bff5fa8f0052 100644
--- a/net/librdkafka/Makefile
+++ b/net/librdkafka/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= librdkafka
-PORTVERSION= 0.9.2
+PORTVERSION= 0.9.3
DISTVERSIONPREFIX= v
CATEGORIES= net
@@ -13,6 +13,7 @@ LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= bash:shells/bash
+LIB_DEPENDS= liblz4.so:archivers/liblz4
BROKEN_mips= Fails to build: undefined reference to __sync_add_and_fetch_4
BROKEN_mips64= Fails to build: undefined reference to __sync_add_and_fetch_4
@@ -29,6 +30,10 @@ CONFIGURE_ARGS+= --disable-sasl --enable-ssl
USE_LDCONFIG= yes
+post-patch:
+ ${REINPLACE_CMD} -e \
+ 's|_ALIGN(|_RE_ALIGN(|g' ${WRKSRC}/src/rdkafka_buf.h
+
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.*
diff --git a/net/librdkafka/distinfo b/net/librdkafka/distinfo
index 26500c902ff1..3230cf96f608 100644
--- a/net/librdkafka/distinfo
+++ b/net/librdkafka/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1484069226
-SHA256 (edenhill-librdkafka-v0.9.2_GH0.tar.gz) = c243b66956ebb196510ee0efda67825467e31b93639d5f24eb082b5d83f56824
-SIZE (edenhill-librdkafka-v0.9.2_GH0.tar.gz) = 620799
+TIMESTAMP = 1485249006
+SHA256 (edenhill-librdkafka-v0.9.3_GH0.tar.gz) = 745ead036f0d5b732e1cd035a1f31fc23665f2982bf9d799742034e0a1bd0be9
+SIZE (edenhill-librdkafka-v0.9.3_GH0.tar.gz) = 637066
diff --git a/net/librdkafka/files/patch-src_rd.h b/net/librdkafka/files/patch-src_rd.h
new file mode 100644
index 000000000000..7484d4711d47
--- /dev/null
+++ b/net/librdkafka/files/patch-src_rd.h
@@ -0,0 +1,15 @@
+--- src/rd.h.orig 2017-01-25 12:25:17 UTC
++++ src/rd.h
+@@ -38,6 +38,12 @@
+ #ifndef _POSIX_C_SOURCE
+ #define _POSIX_C_SOURCE 200809L /* for timespec on solaris */
+ #endif
++#ifndef __XSI_VISIBLE
++#define __XSI_VISIBLE 700 /* for gettimeofday() */
++#endif
++#ifndef __BSD_VISIBLE
++#define __BSD_VISIBLE 1 /* for alloca() */
++#endif
+ #endif
+
+ #include <stdio.h>