Subject: pkg/23594: no XSLT support in textproc/php4-domxml
To: None <>
From: None <>
List: netbsd-bugs
Date: 11/29/2003 03:34:21
>Number:         23594
>Category:       pkg
>Synopsis:       Makefile lacks arguments required to compile w/ XSLT support.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 29 08:35:00 UTC 2003
>Release:        NetBSD 1.6ZF
System: NetBSD 1.6ZF NetBSD 1.6ZF (MIGUS.ORG.MP) #0: Thu Nov 27 13:17:56 EST 2003 i386
Architecture: i386
Machine: i386
	The pkg Makefile does not contain the glue necessary to build with
	xslt and exslt support.  Adding the arguments creates a dependency
	on libxslt however a lot of packages install both as a dependency
	anyway so IMHO it's not such a big deal.
	Without this functionality a set of documented functions in the
	PHP4 manual section for domxml relating to XSLT style-sheets do not
	work.  It is noted in said documentation that support must be
	compiled in.
	The attached patch changes the Makefile to build with XSLT and EXSLT
	support.  Note that the order in which the arguments are given does
	seem to matter.

	Install textproc/php4-domxml and attempt to call an XSLT related
	PHP4/domxml function such as domxml_xslt_stylesheet_file().
	Apply the following patch:
--- textproc/php4-domxml/Makefile.orig	2003-11-08 01:58:10.000000000 -0500
+++ textproc/php4-domxml/Makefile	2003-11-29 03:06:54.000000000 -0500
@@ -12,9 +12,13 @@
 CONFIGURE_ARGS+=	--enable-${MODNAME}=shared,${BUILDLINK_PREFIX.libxml2}
 CONFIGURE_ARGS+=	--with-dom=shared,${BUILDLINK_PREFIX.libxml2}
 CONFIGURE_ARGS+=	--with-zlib-dir=${BUILDLINK_PREFIX.zlib}
+CONFIGURE_ARGS+=	--with-dom-xslt=${BUILDLINK_PREFIX.libxslt}
+CONFIGURE_ARGS+=	--with-dom-exslt=${BUILDLINK_PREFIX.libxslt}
 .include "../../devel/zlib/"
 # remove the BUILDLINK_DEPENDS on next libxml2 package buildlink update
 BUILDLINK_DEPENDS.libxml2=	libxml2>=2.5.10nb1
+BUILDLINK_DEPENDS.libxslt=	libxslt>=1.0.18
 .include "../../textproc/libxml2/"
+.include "../../textproc/libxslt/"
 .include "../../mk/"