openbsd-ports/net/nfdump/Makefile
2020-03-30 14:13:11 +00:00

72 lines
1.8 KiB
Makefile

# $OpenBSD: Makefile,v 1.31 2020/03/30 14:13:11 sthen Exp $
COMMENT-main = tools to collect and process netflow data
COMMENT-nfprofile = filters data from nfdump according to profiles
V = 1.6.20
GH_ACCOUNT = phaag
GH_PROJECT = nfdump
GH_TAGNAME = v$V
FULLPKGNAME-main = nfdump-$V
FULLPKGNAME-nfprofile = nfprofile-$V
SHARED_LIBS += nfdump 1.0 # unknown
CATEGORIES = net
# BSD
PERMIT_PACKAGE = Yes
WANTLIB = bz2 c z
WANTLIB-nfprofile = ${WANTLIB}
WANTLIB-nfprofile += X11 Xext Xrender cairo expat fontconfig freetype glib-2.0
WANTLIB-nfprofile += gobject-2.0 graphite2 harfbuzz iconv intl lzma m nfdump
WANTLIB-nfprofile += pango-1.0 pangocairo-1.0 pixman-1 png pthread rrd xcb
WANTLIB-nfprofile += xcb-render xcb-shm xml2
COMPILER = base-clang ports-gcc
COMPILER_LANGS = c
DEBUG_PACKAGES = ${BUILD_PACKAGES}
CONFIGURE_STYLE = autoreconf
CONFIGURE_ARGS += --enable-compat15 \
--enable-ftconv \
--enable-nfprofile \
--enable-nftrack \
--enable-nsel \
--enable-sflow \
--with-rrdpath=${LOCALBASE} \
--with-ftpath=${LOCALBASE}
MULTI_PACKAGES = -main -nfprofile
LIB_DEPENDS-main = archivers/bzip2 \
net/flow-tools>=0.68.5
WANTLIB-main = ${WANTLIB} ft
LIB_DEPENDS-nfprofile = net/rrdtool \
net/nfdump,-main
RUN_DEPENDS-nfprofile = nfdump-$V:net/nfdump,-main
REORDER_DEPENDENCIES += ${PORTSDIR}/infrastructure/mk/automake.dep
post-extract:
sed -i 's,^libnfdump_la_LDFLAGS = -release .*,libnfdump_la_LDFLAGS =,' \
${WRKSRC}/bin/Makefile.am
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nfdump
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/nfdump
CONFIGURE_ENV = LDFLAGS="${LDFLAGS} -L${X11BASE}/lib" \
ac_cv_path_DOXYGEN=
TEST_FLAGS = TZ=CET
AUTOCONF_VERSION = 2.69
AUTOMAKE_VERSION = 1.16
AUTORECONF = ./autogen.sh
.include <bsd.port.mk>