aboutsummaryrefslogtreecommitdiff
path: root/net/librdkafka
diff options
context:
space:
mode:
authorKurt Jaeger <pi@FreeBSD.org>2015-08-02 18:59:01 +0000
committerKurt Jaeger <pi@FreeBSD.org>2015-08-02 18:59:01 +0000
commitd16c728503ea649e2c3092b5a06fe38102f9f91d (patch)
tree2991b6e0c22127fe5f1753af9062de552f02498b /net/librdkafka
parent2251e3a997328b4960fe540f5393fc59372d61dc (diff)
Notes
Diffstat (limited to 'net/librdkafka')
-rw-r--r--net/librdkafka/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/net/librdkafka/Makefile b/net/librdkafka/Makefile
index a1697ef9188d..f1b115510644 100644
--- a/net/librdkafka/Makefile
+++ b/net/librdkafka/Makefile
@@ -22,6 +22,12 @@ USE_LDCONFIG= yes
USES= gmake perl5
GNU_CONFIGURE= yes
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000 && ${ARCH} == "i386"
+CFLAGS+= -march=pentium
+.endif
+
post-install:
${INSTALL_DATA} ${WRKSRC}/rdkafka.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/librdkafka.pc
@@ -29,4 +35,4 @@ post-stage:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/librdkafka.so.1
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/librdkafka++.so.1
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>