aboutsummaryrefslogtreecommitdiff
path: root/net/kcat/Makefile
blob: 128c1bc3118df55b9c78af11a6b16651f8407859 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
PORTNAME=	kcat
DISTVERSION=	1.7.0
CATEGORIES=	net

MAINTAINER=	sergey@akhmatov.ru
COMMENT=	Generic command line non-JVM Apache Kafka producer and consumer
WWW=		https://github.com/edenhill/kcat/

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	bash:shells/bash
LIB_DEPENDS=	librdkafka.so:net/librdkafka \
		libyajl.so:devel/yajl \
		liblz4.so:archivers/liblz4 \
		libzstd.so:archivers/zstd

USES=		gmake pkgconfig ssl
USE_GITHUB=	yes
GH_ACCOUNT=	edenhill

GNU_CONFIGURE=	yes

PLIST_FILES=	bin/kcat

OPTIONS_DEFINE=	JSON AVRO

AVRO_DESC=	Avro/Schema-Registry support (requires libserdes) [BROKEN]
JSON_DESC=	JSON support (requires libyajl2)

# avro broken due to bug: https://github.com/apache/avro/pull/1018/commits
AVRO_BROKEN=		avro support is currently broken
AVRO_LIB_DEPENDS=	libserdes.so:devel/libserdes
AVRO_CONFIGURE_ENABLE=	avro
JSON_LIB_DEPENDS=	libyajl.so:devel/yajl
JSON_CONFIGURE_ENABLE=	json

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/kcat

.include <bsd.port.mk>