# New ports collection makefile for:	apache-xml-security-c
# Date created:				06 Febuary 2007
# Whom:					Tony Maher
#
# $FreeBSD: ports/security/apache-xml-security-c/Makefile,v 1.9 2012/01/09 15:41:02 tabthorpe Exp $
#

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

MAINTAINER=	janos.mohacsi@bsd.hu
COMMENT=	Apache XML security libraries - C++ version

LICENSE=	AL2

OPTIONS=	XERCES_3	"With Xerces vesion 3.x (shibboleth2 requires)" on

USE_OPENSSL=	yes
.include <bsd.port.pre.mk>

.if defined(WITH_XERCES_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.post.mk>
