summaryrefslogtreecommitdiff
path: root/textproc/libxml
diff options
context:
space:
mode:
authorjlam <jlam>2001-06-19 04:51:25 +0000
committerjlam <jlam>2001-06-19 04:51:25 +0000
commit0c4dc4bb829fb31723294516383e28c50ef7ec2b (patch)
tree8f8c15eeabbefbd02010929e3c447902e60b3028 /textproc/libxml
parent1f16e00903576e3fd9e6e5f15f6c3803e48b89c0 (diff)
downloadpkgsrc-0c4dc4bb829fb31723294516383e28c50ef7ec2b.tar.gz
Add buildlink.mk file for use by other package Makefiles
Diffstat (limited to 'textproc/libxml')
-rw-r--r--textproc/libxml/buildlink.mk44
1 files changed, 44 insertions, 0 deletions
diff --git a/textproc/libxml/buildlink.mk b/textproc/libxml/buildlink.mk
new file mode 100644
index 00000000000..6add6bc6b04
--- /dev/null
+++ b/textproc/libxml/buildlink.mk
@@ -0,0 +1,44 @@
+# $NetBSD: buildlink.mk,v 1.1 2001/06/19 04:51:25 jlam Exp $
+#
+# This Makefile fragment is included by packages that use libxml.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define LIBXML_REQD to the version of libxml desired.
+# (2) Include this Makefile fragment in the package Makefile,
+# (3) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header
+# search path, and
+# (4) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search
+# path.
+
+.if !defined(LIBXML_BUILDLINK_MK)
+LIBXML_BUILDLINK_MK= # defined
+
+LIBXML_REQD?= 1.8.11
+DEPENDS+= libxml>=${LIBXML_REQD}:../../textproc/libxml
+
+BUILDLINK_PREFIX.libxml= ${LOCALBASE}
+BUILDLINK_FILES.libxml= include/gnome-xml/*
+BUILDLINK_FILES.libxml+= lib/libxml.*
+BUILDLINK_FILES.libxml+= lib/xmlConf.sh
+
+.include "../../devel/zlib/buildlink.mk"
+
+BUILDLINK_TARGETS.libxml= libxml-buildlink
+BUILDLINK_TARGETS.libxml+= libxml-buildlink-config-wrapper
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.libxml}
+
+BUILDLINK_CONFIG.libxml= ${LOCALBASE}/bin/xml-config
+BUILDLINK_CONFIG_WRAPPER.libxml= ${BUILDLINK_DIR}/bin/xml-config
+
+.if defined(USE_CONFIG_WRAPPER) && defined(GNU_CONFIGURE)
+CONFIGURE_ENV+= XML_CONFIG="${BUILDLINK_CONFIG_WRAPPER.libxml}"
+.endif
+
+pre-configure: ${BUILDLINK_TARGETS.libxml}
+libxml-buildlink: _BUILDLINK_USE
+libxml-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE
+
+.include "../../mk/bsd.buildlink.mk"
+
+.endif # LIBXML_BUILDLINK_MK