summaryrefslogtreecommitdiff
path: root/converters
diff options
context:
space:
mode:
authorwiz <wiz>2001-08-06 13:57:48 +0000
committerwiz <wiz>2001-08-06 13:57:48 +0000
commit2bdc4f829d9dd036370d7842d652a0ebd454af33 (patch)
tree3ed9938af440928dddb843369798ba28423a181a /converters
parent473e0a36b440c2a186e2350589f2aedb971018d7 (diff)
downloadpkgsrc-2bdc4f829d9dd036370d7842d652a0ebd454af33.tar.gz
Add buildlink.mk, provided by Martti Kuparinen in pkg/13636.
Diffstat (limited to 'converters')
-rw-r--r--converters/psiconv/buildlink.mk38
1 files changed, 38 insertions, 0 deletions
diff --git a/converters/psiconv/buildlink.mk b/converters/psiconv/buildlink.mk
new file mode 100644
index 00000000000..93340163d83
--- /dev/null
+++ b/converters/psiconv/buildlink.mk
@@ -0,0 +1,38 @@
+# $NetBSD: buildlink.mk,v 1.1 2001/08/06 13:57:48 wiz Exp $
+#
+# This Makefile fragment is included by packages that use psiconv.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define BUILDLINK_DEPENDS.psiconv to the dependency pattern
+# for the version of psiconv 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(PSICONV_BUILDLINK_MK)
+PSICONV_BUILDLINK_MK= # defined
+
+.include "../../mk/bsd.buildlink.mk"
+
+BUILDLINK_DEPENDS.psiconv?= psiconv>=0.6.1
+DEPENDS+= ${BUILDLINK_DEPENDS.psiconv}:../../converters/psiconv
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.psiconv=psiconv
+BUILDLINK_PREFIX.psiconv_DEFAULT= ${LOCALBASE}
+
+BUILDLINK_FILES.psiconv= include/psiconv/data.h
+BUILDLINK_FILES.psiconv+= include/psiconv/list.h
+BUILDLINK_FILES.psiconv+= include/psiconv/parse.h
+BUILDLINK_FILES.psiconv+= include/psiconv/parse_routines.h
+BUILDLINK_FILES.psiconv+= lib/libpsiconv.*
+
+BUILDLINK_TARGETS.psiconv= psiconv-buildlink
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.psiconv}
+
+pre-configure: ${BUILDLINK_TARGETS.psiconv}
+psiconv-buildlink: _BUILDLINK_USE
+
+.endif # PSICONV_BUILDLINK_MK