# Created by: Janos Mohacsi
# $FreeBSD: tags/RELEASE_11_1_0/security/opensaml2/Makefile 439934 2017-05-02 06:48:10Z jbeich $

PORTNAME=	opensaml2
PORTVERSION=	2.6.0
PORTREVISION=	3
CATEGORIES=	security
MASTER_SITES=	http://shibboleth.net/downloads/c++-opensaml/${PORTVERSION}/
DISTNAME=	opensaml-${PORTVERSION}

MAINTAINER=	girgen@FreeBSD.org
COMMENT=	Open source implementation of SAML2

LIB_DEPENDS=	libcurl.so:ftp/curl \
		liblog4shib.so:devel/log4shib \
		libxml-security-c.so:security/apache-xml-security-c \
		libxerces-c.so:textproc/xerces-c3 \
		libxmltooling.so:devel/xmltooling

BUILD_DEPENDS=	boost-libs>=0:devel/boost-libs

GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=--with-log4shib=${LOCALBASE} --with-openssl=${OPENSSLBASE} \
		--with-xmltooling=${LOCALBASE} --disable-doxygen-doc
USES=		gmake libtool pkgconfig tar:bzip2
USE_LDCONFIG=	yes

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} -e 's,^pkgdocdir.*=.*,pkgdocdir = ${DOCSDIR},' \
		${WRKSRC}/doc/Makefile.in

post-patch-DOCS-off:
	@${REINPLACE_CMD} -e '/^SUBDIRS/s,doc ,,' ${WRKSRC}/Makefile.in

.include <bsd.port.mk>
