summaryrefslogtreecommitdiff
path: root/print/teTeX-bin
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2002-05-20 13:43:49 +0000
committerwiz <wiz@pkgsrc.org>2002-05-20 13:43:49 +0000
commit4c90ada21f2eedd07c59d0e60cff773db192b16a (patch)
tree42b6ae65d3c8dd6de1f01ccd23f2eac0921cfd27 /print/teTeX-bin
parentcbba3ef09a9ac9dc30d7f3d06c18c82c23502e34 (diff)
downloadpkgsrc-4c90ada21f2eedd07c59d0e60cff773db192b16a.tar.gz
Add buildlink.mk for kpathsea library, based on pkg/16906 by Ingolf Steinbach,
with some changes.
Diffstat (limited to 'print/teTeX-bin')
-rw-r--r--print/teTeX-bin/kpathsea.buildlink.mk34
1 files changed, 34 insertions, 0 deletions
diff --git a/print/teTeX-bin/kpathsea.buildlink.mk b/print/teTeX-bin/kpathsea.buildlink.mk
new file mode 100644
index 00000000000..2d6fa987b09
--- /dev/null
+++ b/print/teTeX-bin/kpathsea.buildlink.mk
@@ -0,0 +1,34 @@
+# $NetBSD: kpathsea.buildlink.mk,v 1.1 2002/05/20 13:43:49 wiz Exp $
+#
+# This Makefile fragment is included by packages that use libkpathsea.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define BUILDLINK_DEPENDS.kpathsea to the dependency pattern
+# for the version of libkpathsea 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(KPATHSEA_BUILDLINK_MK)
+KPATHSEA_BUILDLINK_MK= # defined
+
+.include "../../mk/bsd.buildlink.mk"
+
+BUILDLINK_DEPENDS.kpathsea?= teTeX-bin>=1.0.7nb2
+BUILD_DEPENDS+= ${BUILDLINK_DEPENDS.kpathsea}:../../print/teTeX-bin
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.kpathsea=teTeX-bin
+BUILDLINK_PREFIX.kpathsea_DEFAULT= ${LOCALBASE}
+BUILDLINK_FILES.kpathsea= include/kpathsea/*
+BUILDLINK_FILES.kpathsea+= lib/libkpathsea.a
+
+BUILDLINK_TARGETS.kpathsea= kpathsea-buildlink
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.kpathsea}
+
+pre-configure: ${BUILDLINK_TARGETS}
+kpathsea-buildlink: _BUILDLINK_USE
+
+.endif # KPATHSEA_BUILDLINK_MK