summaryrefslogtreecommitdiff
path: root/comms/jpilot
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-06-22 06:03:14 +0000
committerjlam <jlam@pkgsrc.org>2001-06-22 06:03:14 +0000
commitf38983292fa03a9acd43522fbe65e1ac0829229d (patch)
tree9fc95ceaf8d1f41c9436a07d3f65345f1cb356ec /comms/jpilot
parenta91f432fa1bc3bcf65efb2eaf6738c5741233194 (diff)
downloadpkgsrc-f38983292fa03a9acd43522fbe65e1ac0829229d.tar.gz
Add buildlink.mk file for use by other package Makefiles.
Diffstat (limited to 'comms/jpilot')
-rw-r--r--comms/jpilot/buildlink.mk31
1 files changed, 31 insertions, 0 deletions
diff --git a/comms/jpilot/buildlink.mk b/comms/jpilot/buildlink.mk
new file mode 100644
index 00000000000..9e23586f5cb
--- /dev/null
+++ b/comms/jpilot/buildlink.mk
@@ -0,0 +1,31 @@
+# $NetBSD: buildlink.mk,v 1.1 2001/06/22 06:03:14 jlam Exp $
+#
+# This Makefile fragment is included by packages that use jpilot.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define JPILOT_REQD to the version of jpilot 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(JPILOT_BUILDLINK_MK)
+JPILOT_BUILDLINK_MK= # defined
+
+JPILOT_REQD?= 0.99
+BUILD_DEPENDS+= jpilot>=${JPILOT_REQD}:../../comms/jpilot
+
+BUILDLINK_PREFIX.jpilot= ${LOCALBASE}
+BUILDLINK_FILES.jpilot= include/jpilot/*
+
+BUILDLINK_TARGETS.jpilot= jpilot-buildlink
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.jpilot}
+
+pre-configure: ${BUILDLINK_TARGETS.jpilot}
+jpilot-buildlink: _BUILDLINK_USE
+
+.include "../../mk/bsd.buildlink.mk"
+
+.endif # JPILOT_BUILDLINK_MK