From 326fa0d030243afa48e8024f02388ae68d938143 Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Sun, 13 Apr 2003 10:37:17 +0000 Subject: [PATCH] add xslt support --- textproc/xmlwrapp/Makefile | 8 ++++++++ textproc/xmlwrapp/pkg-plist | 14 +++++++------- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/textproc/xmlwrapp/Makefile b/textproc/xmlwrapp/Makefile index 9e4b7e0a751b..e2da7f0ab102 100644 --- a/textproc/xmlwrapp/Makefile +++ b/textproc/xmlwrapp/Makefile @@ -22,4 +22,12 @@ HAS_CONFIGURE= yes CONFIGURE_SCRIPT= configure.pl INSTALLS_SHLIB= yes +.if defined(WITH_XSLT) +LIB_DEPENDS+= xslt.1:${PORTSDIR}/textproc/libxslt +PLIST_SUB+= XSLT="" +.else +CONFIGURE_ARGS+= --disable-xslt +PLIST_SUB+= XSLT="@comment " +.endif + .include diff --git a/textproc/xmlwrapp/pkg-plist b/textproc/xmlwrapp/pkg-plist index 8b373ab011ea..a74e09e68358 100644 --- a/textproc/xmlwrapp/pkg-plist +++ b/textproc/xmlwrapp/pkg-plist @@ -7,15 +7,15 @@ include/xmlwrapp/init.h include/xmlwrapp/node.h include/xmlwrapp/tree_parser.h include/xmlwrapp/xmlwrapp.h -include/xsltwrapp/xsltwrapp.h -include/xsltwrapp/stylesheet.h -include/xsltwrapp/init.h @dirrm include/xmlwrapp -@dirrm include/xsltwrapp +%%XSLT%%include/xsltwrapp/xsltwrapp.h +%%XSLT%%include/xsltwrapp/stylesheet.h +%%XSLT%%include/xsltwrapp/init.h +%%XSLT%%@dirrm include/xsltwrapp lib/libxmlwrapp.a lib/libxmlwrapp.so lib/libxmlwrapp.so.4 -lib/libxsltwrapp.a -lib/libxsltwrapp.so -lib/libxsltwrapp.so.1 +%%XSLT%%lib/libxsltwrapp.a +%%XSLT%%lib/libxsltwrapp.so +%%XSLT%%lib/libxsltwrapp.so.1 lib/pkgconfig/xmlwrapp.pc