summaryrefslogtreecommitdiff
path: root/textproc/libxml2
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-10-04 20:20:03 +0000
committerrillig <rillig@pkgsrc.org>2006-10-04 20:20:03 +0000
commitd441c853e4341e9220eb2e1daf4158a40b16277b (patch)
tree51db4a088761c3e2c1c735a3c4ec91ae05d911ae /textproc/libxml2
parent5b2e75917da8807c323a1fc16830097c75322fb3 (diff)
downloadpkgsrc-d441c853e4341e9220eb2e1daf4158a40b16277b.tar.gz
Fixed the "test" phase by adding a dependency on Perl, but only if the
tests are enabled.
Diffstat (limited to 'textproc/libxml2')
-rw-r--r--textproc/libxml2/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/textproc/libxml2/Makefile b/textproc/libxml2/Makefile
index 03a377ba78e..884d5a834bc 100644
--- a/textproc/libxml2/Makefile
+++ b/textproc/libxml2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.81 2006/10/01 08:53:05 schwarz Exp $
+# $NetBSD: Makefile,v 1.82 2006/10/04 20:20:03 rillig Exp $
DISTNAME= libxml2-2.6.26
CATEGORIES= textproc
@@ -32,7 +32,12 @@ CONFIGURE_ENV+= F77=${FALSE:Q}
MAKE_ENV+= PAX=${PAX:Q}
+.include "../../mk/bsd.prefs.mk"
+
+.if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss])
+USE_TOOLS+= perl
TEST_TARGET= check
+.endif
SUBST_CLASSES+= cat
SUBST_STAGE.cat= pre-configure
@@ -40,7 +45,6 @@ SUBST_FILES.cat= catalog.c xmlcatalog.c
SUBST_SED.cat= -e "s,@@SGML_DEFAULT_CATALOG@@,${SGML_DEFAULT_CATALOG},g"
SUBST_SED.cat+= -e "s,@@XML_DEFAULT_CATALOG@@,${XML_DEFAULT_CATALOG},g"
-.include "../../mk/bsd.prefs.mk"
.if !empty(LOWER_OPSYS:Mirix5*)
# needs glob.h
. include "../../pkgtools/libnbcompat/buildlink3.mk"