# New ports collection makefile for:	opensaml
# Date created:				06 Febuary 2007
# Whom:					Tony Maher
#
# $FreeBSD: ports/security/opensaml/Makefile,v 1.2 2007/03/22 15:28:33 rafan Exp $
#

PORTNAME=	opensaml
DISTVERSION=	1.1b
CATEGORIES=	security
MASTER_SITES=	http://shibboleth.internet2.edu/downloads/

MAINTAINER=	tonymaher@optusnet.com.au
COMMENT=	Open source implentation of SAML

LIB_DEPENDS=	curl.4:${PORTSDIR}/ftp/curl \
		log4cpp.4:${PORTSDIR}/devel/log4cpp \
		xerces-c.27:${PORTSDIR}/textproc/xerces-c2 \
		xml-security-c.13:${PORTSDIR}/security/apache-xml-security-c

GNU_CONFIGURE=	yes
USE_AUTOTOOLS=	libtool:15
USE_GMAKE=	yes
USE_LDCONFIG=	yes

WRKSRC=		${WRKDIR}/${PORTNAME}-1.1

.include <bsd.port.pre.mk>

post-patch:
	@${REINPLACE_CMD} -e 's,^pkgdocdir.*=.*,pkgdocdir = ${DOCSDIR},' \
		${WRKSRC}/doc/Makefile.in
.if defined(NOPORTDOCS)
	@${REINPLACE_CMD} -e '/^SUBDIRS/s,doc ,,' ${WRKSRC}/Makefile.in
.endif

.include <bsd.port.post.mk>
