2004-01-24 02:31:45 +01:00
|
|
|
# $NetBSD: buildlink2.mk,v 1.7 2004/01/24 01:31:45 rh Exp $
|
2003-01-10 20:24:48 +01:00
|
|
|
#
|
|
|
|
# This Makefile fragment is included by packages that use xmlcatmgr.
|
|
|
|
#
|
2003-07-22 20:25:09 +02:00
|
|
|
# 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.
|
2003-01-10 20:24:48 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
.if !defined(XMLCATMGR_BUILDLINK2_MK)
|
|
|
|
XMLCATMGR_BUILDLINK2_MK= # defined
|
|
|
|
|
|
|
|
BUILDLINK_PACKAGES+= xmlcatmgr
|
2004-01-24 02:31:45 +01:00
|
|
|
BUILDLINK_DEPENDS.xmlcatmgr?= xmlcatmgr>=0.2
|
|
|
|
BUILDLINK_RECOMMENDED.xmlcatmgr?= xmlcatmgr>=2.0beta1
|
2003-01-10 20:24:48 +01:00
|
|
|
BUILDLINK_PKGSRCDIR.xmlcatmgr?= ../../textproc/xmlcatmgr
|
|
|
|
|
|
|
|
EVAL_PREFIX+= BUILDLINK_PREFIX.xmlcatmgr=xmlcatmgr
|
|
|
|
BUILDLINK_PREFIX.xmlcatmgr_DEFAULT= ${LOCALBASE}
|
|
|
|
|
|
|
|
BUILDLINK_TARGETS+= xmlcatmgr-buildlink
|
|
|
|
|
2003-07-22 20:25:09 +02:00
|
|
|
# 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
|
2004-01-07 03:21:16 +01:00
|
|
|
SGML_DEFAULT_CATALOG= ${PKG_SYSCONFBASEDIR}/sgml/catalog
|
|
|
|
XML_DEFAULT_CATALOG= ${PKG_SYSCONFBASEDIR}/xml/catalog
|
2003-07-22 20:25:09 +02:00
|
|
|
.endif
|
|
|
|
|
2003-01-10 20:24:48 +01:00
|
|
|
xmlcatmgr-buildlink: _BUILDLINK_USE
|
|
|
|
|
|
|
|
.endif # XMLCATMGR_BUILDLINK2_MK
|