# Created by: Tony Maher
# $FreeBSD: security/apache-xml-security-c/Makefile 327769 2013-09-20 22:55:24Z bapt $

PORTNAME=	xml-security-c
PORTVERSION=	1.7.2
CATEGORIES=	security
MASTER_SITES=	${MASTER_SITE_APACHE}
MASTER_SITE_SUBDIR=santuario/c-library
PKGNAMEPREFIX=	apache-

MAINTAINER=	girgen@FreeBSD.org
COMMENT=	Apache XML security libraries - C++ version

LICENSE=	AL2

OPTIONS_DEFINE=		XERCES_3
OPTIONS_DEFAULT=	XERCES_3

XERCES_3_DESC=		With Xerces vesion 3.x (shibboleth2 requires)

USE_OPENSSL=	yes

NO_STAGE=	yes
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MXERCES_3}
LIB_DEPENDS+=	xerces-c.3:${PORTSDIR}/textproc/xerces-c3
.else
LIB_DEPENDS+=	xerces-c.27:${PORTSDIR}/textproc/xerces-c2
.endif

GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=--with-xerces=${LOCALBASE}
USE_AUTOTOOLS=	libtool
USE_GMAKE=	yes
USE_LDCONFIG=	yes
CONFIGURE_ARGS+=--with-openssl=${OPENSSLBASE}

.include <bsd.port.mk>
