pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/xmlcatmgr Add a buildlink3.mk file for xmlcat...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b2552da6e9e7
branches:  trunk
changeset: 467470:b2552da6e9e7
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sun Feb 01 10:11:39 2004 +0000

description:
Add a buildlink3.mk file for xmlcatmgr and teach catalogs.mk to use the
buildlink3.mk file if USE_BUILDLINK3 is "yes".

diffstat:

 textproc/xmlcatmgr/buildlink3.mk |  41 ++++++++++++++++++++++++++++++++++++++++
 textproc/xmlcatmgr/catalogs.mk   |   9 +++++--
 2 files changed, 47 insertions(+), 3 deletions(-)

diffs (67 lines):

diff -r 282f64a16a2e -r b2552da6e9e7 textproc/xmlcatmgr/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/xmlcatmgr/buildlink3.mk  Sun Feb 01 10:11:39 2004 +0000
@@ -0,0 +1,41 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/02/01 10:11:39 jlam Exp $
+#
+# This Makefile fragment is included by packages that use xmlcatmgr.
+#
+# The following variables are automatically defined for free use in packages:
+#    XMLCATMGR            - Path to the xmlcatmgr program.
+#    SGML_DEFAULT_CATALOG - Path to the system-wide (tunable) SGML catalog.
+#    XML_DEFAULT_CATALOG  - Path to the system-wide (tunable) XML catalog.
+#
+# Packages that recognize a system-wide catalog file should be configured
+# to use SGML_DEFAULT_CATALOG or XML_DEFAULT_CATALOG, depending on the
+# type of tool they are.
+#
+
+BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH}+
+XMLCATMGR_BUILDLINK3_MK:=      ${XMLCATMGR_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+=    xmlcatmgr
+.endif
+
+.if !empty(XMLCATMGR_BUILDLINK3_MK:M+)
+BUILDLINK_PACKAGES+=                   xmlcatmgr
+BUILDLINK_DEPENDS.xmlcatmgr+=          xmlcatmgr>=0.2
+BUILDLINK_RECOMMENDED.xmlcatmgr+=      xmlcatmgr>=2.0beta1
+BUILDLINK_PKGSRCDIR.xmlcatmgr?=                ../../textproc/xmlcatmgr
+
+# Location of the xmlcatmgr binary program.
+XMLCATMGR=     ${BUILDLINK_PREFIX.xmlcatmgr}/bin/xmlcatmgr
+
+# System-wide configurable catalogs.
+.  if defined(PKG_SYSCONFDIR.xmlcatmgr) && !empty(PKG_SYSCONFDIR.xmlcatmgr)
+SGML_DEFAULT_CATALOG=  ${PKG_SYSCONFDIR.xmlcatmgr}/sgml/catalog
+XML_DEFAULT_CATALOG=   ${PKG_SYSCONFDIR.xmlcatmgr}/xml/catalog
+.  else
+SGML_DEFAULT_CATALOG=  ${PKG_SYSCONFBASEDIR}/sgml/catalog
+XML_DEFAULT_CATALOG=   ${PKG_SYSCONFBASEDIR}/xml/catalog
+.  endif
+.endif # XMLCATMGR_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:=     ${BUILDLINK_DEPTH:S/+$//}
diff -r 282f64a16a2e -r b2552da6e9e7 textproc/xmlcatmgr/catalogs.mk
--- a/textproc/xmlcatmgr/catalogs.mk    Sun Feb 01 10:09:26 2004 +0000
+++ b/textproc/xmlcatmgr/catalogs.mk    Sun Feb 01 10:11:39 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: catalogs.mk,v 1.2 2003/07/22 18:25:09 jmmv Exp $
+# $NetBSD: catalogs.mk,v 1.3 2004/02/01 10:11:39 jlam Exp $
 #
 # This Makefile fragment is intended to be included by packages that install
 # catalog files or DTDs.  It takes care of registering them into the right
@@ -54,7 +54,10 @@
 USE_PKGINSTALL=        YES
 .endif # !empty(SGML_ENTRIES) || !empty(XML_ENTRIES)
 
-USE_BUILDLINK2=        YES
-.include "../../textproc/xmlcatmgr/buildlink2.mk"
+.if !empty(USE_BUILDLINK3:[yY][eE][sS])
+.  include "../../textproc/xmlcatmgr/buildlink3.mk"
+.elif empty(USE_BUILDLINK2:[nN][oO])
+.  include "../../textproc/xmlcatmgr/buildlink2.mk"
+.endif
 
 .endif # XMLCATMGR_CATALOGS_MK



Home | Main Index | Thread Index | Old Index