# $FreeBSD: head/net/freediameter/Makefile 412348 2016-04-01 14:17:44Z mat $

PORTNAME=	freeDiameter
PORTVERSION=	1.2.0
CATEGORIES=	net
MASTER_SITES=	http://www.freediameter.net/hg/freeDiameter/archive/

MAINTAINER=	koue@chaosophia.net
COMMENT=	Open source Diameter protocol implementation

LICENSE=	BSD3CLAUSE

LIB_DEPENDS=	libgcrypt.so:security/libgcrypt \
		libgnutls.so:security/gnutls

USES=		cmake bison
USE_LDCONFIG=	yes
CMAKE_ARGS+=	-DSCTP_USE_MAPPED_ADDRESSES:BOOL=ON

.include <bsd.port.options.mk>

.if ${OSVERSION} < 1000033
BUILD_DEPENDS+=	${LOCALBASE}/bin/flex:textproc/flex
CMAKE_ARGS+=	-DFLEX_EXECUTABLE:FILEPATH="${LOCALBASE}/bin/flex"
.endif

.include <bsd.port.mk>