PORTNAME=	XML_Query2XML
PORTVERSION=	1.7.2
CATEGORIES=	databases pear

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	PEAR class transform SQL queries into XML data
WWW=		https://pear.php.net/package/XML_Query2XML

LICENSE=	LGPL21
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	${PEARDIR}/DB.php:databases/pear-DB@${PHP_FLAVOR}
RUN_DEPENDS=	${PEARDIR}/DB.php:databases/pear-DB@${PHP_FLAVOR}

USES=		pear

OPTIONS_DEFINE=	PEAR_MDB2 PEAR_NET_LDAP2
PEAR_MDB2_DESC=	Add support for pear-MDB2
PEAR_NET_LDAP2_DESC=	Add support for pear-Net_LDAP2

PEAR_MDB2_BUILD_DEPENDS=	${PEARDIR}/MDB2.php:databases/pear-MDB2@${PHP_FLAVOR}
PEAR_NET_LDAP2_BUILD_DEPENDS=	${PEARDIR}/Net/LDAP2.php:net/pear-Net_LDAP2@${PHP_FLAVOR}

.include <bsd.port.mk>
