summaryrefslogtreecommitdiff
path: root/net/php-xmlrpc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/php-xmlrpc/Makefile')
-rw-r--r--net/php-xmlrpc/Makefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/net/php-xmlrpc/Makefile b/net/php-xmlrpc/Makefile
index ae0d0cce546..e945b183b19 100644
--- a/net/php-xmlrpc/Makefile
+++ b/net/php-xmlrpc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2005/10/08 15:59:48 jdolecek Exp $
+# $NetBSD: Makefile,v 1.2 2005/12/03 18:53:57 jdolecek Exp $
MODNAME= xmlrpc
CATEGORIES+= net
@@ -8,7 +8,17 @@ COMMENT= PHP extension for XML-RPC support
HOMEPAGE= http://xmlrpc-epi.sourceforge.net/
CONFIGURE_ARGS+= --enable-${MODNAME}=shared,${BUILDLINK_DIR}
+
+.include "../../lang/php/phpversion.mk"
+
+.if ${PKG_PHP_VERSION} == 5
+# the extension has been changed in PHP 5.1 to require libxml2; while
+# there is some "compatibility" expat configure setting, it doesn't build
+# with that
+CONFIGURE_ARGS+= --with-libxml-dir=${BUILDLINK_PREFIX.libxml2}
+.else
CONFIGURE_ARGS+= --with-expat-dir=${BUILDLINK_PREFIX.expat}
+.endif
.include "../../converters/libiconv/buildlink3.mk"
@@ -27,6 +37,11 @@ CONFIGURE_ARGS+= --with-iconv-dir=shared,${BUILDLINK_PREFIX.iconv}
CONFIGURE_ARGS+= --with-iconv-dir
.endif
+.if ${PKG_PHP_VERSION} == 5
+.include "../../textproc/libxml2/buildlink3.mk"
+.else
.include "../../textproc/expat/buildlink3.mk"
+.endif
+
.include "../../lang/php/ext.mk"
.include "../../mk/bsd.pkg.mk"