freebsd-ports/sysutils/fluent-bit/Makefile
Mark Linimon 5baa3f7f5f Mark as BROKEN on riscv64:
lj_arch.h:69:2: error: "No support for this architecture (yet)"
  lj_arch.h:455:2: error: "Need at least GCC 4.3 or newer"

While here, pet portlint (Makevar order).

Approved by:	portmgr (tier-2 blanket)
Obtained from:	lonesome.com build testing
2020-12-09 03:04:46 +00:00

56 lines
1.3 KiB
Makefile

# Created by: Palle Girgensohn <girgen@FreeBSD.org>
# $FreeBSD$
PORTNAME= fluent-bit
DISTVERSIONPREFIX= v
DISTVERSION= 1.6.7
CATEGORIES= sysutils
MAINTAINER= girgen@FreeBSD.org
COMMENT= Fast and lightweight data forwarder
LICENSE= APACHE20
BROKEN_mips= fails to build: conflicting types for 'restrict'
BROKEN_mips64= fails to build: conflicting types for 'restrict'
BROKEN_riscv64= fails to build: No support for this architecture (yet)
USE_GITHUB= yes
GH_ACCOUNT= fluent
USES= cmake:noninja compiler:c11 gmake bison compiler
OPTIONS_DEFINE= SSL PGSQL
OPTIONS_DEFAULT= SSL
CMAKE_ARGS= -DFLB_DEBUG=Off -DFLB_TRACE=Off -DFLB_CORO_STACK_SIZE=24576
SSL_USES= ssl
SSL_CMAKE_ON= -DFLB_TLS=On
SSL_CMAKE_OFF= -DFLB_TLS=Off
EXAMPLES_CMAKE_ON= -DFLB_EXAMPLES=On
EXAMPLES_CMAKE_OFF= -DFLB_EXAMPLES=Off
PGSQL_USES= pgsql
PGSQL_CMAKE_ON= -DFLB_OUT_PGSQL=On
PGSQL_CMAKE_OFF= -DFLB_OUT_PGSQL=Off
USE_RC_SUBR= ${PORTNAME}
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-lib_luajit__src__lj_prng.c
.endif
.if ${ARCH} == powerpc64
CMAKE_ARGS+= -DFLB_LUAJIT:BOOL=OFF
.endif
post-install:
${MV} ${STAGEDIR}${ETCDIR}/${PORTNAME}.conf ${STAGEDIR}${ETCDIR}/${PORTNAME}.conf.sample
${MV} ${STAGEDIR}${ETCDIR}/parsers.conf ${STAGEDIR}${ETCDIR}/parsers.conf.sample
.include <bsd.port.mk>