summaryrefslogtreecommitdiff
path: root/textproc/php-wddx
diff options
context:
space:
mode:
authorjdolecek <jdolecek@pkgsrc.org>2006-04-22 10:28:31 +0000
committerjdolecek <jdolecek@pkgsrc.org>2006-04-22 10:28:31 +0000
commit9639c91006966fe2762c51939711df8c7ab5b03f (patch)
tree9ae90bdfd1a9d069087c2d0ba43853a31642447a /textproc/php-wddx
parent5890e0d6a0ce6c2d6e04aa6b064faa21b816f2e0 (diff)
downloadpkgsrc-9639c91006966fe2762c51939711df8c7ab5b03f.tar.gz
make build properly (now that the module contents are actually compiled)
and adjust to use libxml2 depends on PHP5 bump PKGREVISION
Diffstat (limited to 'textproc/php-wddx')
-rw-r--r--textproc/php-wddx/Makefile24
1 files changed, 20 insertions, 4 deletions
diff --git a/textproc/php-wddx/Makefile b/textproc/php-wddx/Makefile
index 247c88d42ee..a26dbb6fba3 100644
--- a/textproc/php-wddx/Makefile
+++ b/textproc/php-wddx/Makefile
@@ -1,13 +1,29 @@
-# $NetBSD: Makefile,v 1.7 2006/02/05 23:11:06 joerg Exp $
+# $NetBSD: Makefile,v 1.8 2006/04/22 10:28:31 jdolecek Exp $
MODNAME= wddx
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES+= textproc
COMMENT= PHP extension for WDDX support
-CONFIGURE_ARGS+= --enable-${MODNAME}=shared,${BUILDLINK_PREFIX.expat}
+CONFIGURE_ARGS+= --enable-${MODNAME}=shared,${BUILDLINK_DIR}
-.include "../../lang/php/ext.mk"
+USE_PHP_EXT_PATCHES= # defined
+
+# appease some PHP build assumpsions
+CFLAGS+= -I${BUILDLINK_DIR}/include/libxml2 \
+ -I${BUILDLINK_DIR}/include/php/ext/date/lib
+
+
+.include "../../lang/php/phpversion.mk"
+
+# link against libxml2 on PHP5 (the code is using expat compat
+# build wrapper)
+.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"