# $FreeBSD: head/devel/liblognorm/Makefile 458466 2018-01-08 18:10:31Z bofh $

PORTNAME=	liblognorm
PORTVERSION=	2.0.4
CATEGORIES=	devel net security
MASTER_SITES=	http://www.liblognorm.com/download/files/download/

MAINTAINER=	bofh@FreeBSD.org
COMMENT=	Log normalizer

LICENSE=	GPLv2

LIB_DEPENDS=	libfastjson.so:devel/libfastjson \
		libestr.so:devel/libestr
BUILD_DEPENDS=	sphinx-build:textproc/py-sphinx

USES=		libtool pathfix pkgconfig
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip

SUB_FILES=	pkg-message

# Try to fix parallel (-jX) builds
post-patch:
	@${REINPLACE_CMD} -e \
		'/^lognormalizer_DEPENDENCIES/s,=,= $$(lib_LTLIBRARIES),' \
			${WRKSRC}/src/Makefile.in

.include <bsd.port.mk>
