summaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-06-23 19:46:22 +0000
committerjlam <jlam@pkgsrc.org>2001-06-23 19:46:22 +0000
commit4c6dce5402bde356a2c4a9cdb5237897db37df7d (patch)
tree175d67822d8ace77d93e121e66f4401344fea862 /archivers
parent806a25ed07f13f6e0f032d797563c64d83ec87a2 (diff)
downloadpkgsrc-4c6dce5402bde356a2c4a9cdb5237897db37df7d.tar.gz
Add buildlink.mk file for use by other package Makefiles.
Diffstat (limited to 'archivers')
-rw-r--r--archivers/liblzo/buildlink.mk33
1 files changed, 33 insertions, 0 deletions
diff --git a/archivers/liblzo/buildlink.mk b/archivers/liblzo/buildlink.mk
new file mode 100644
index 00000000000..49fcdcd1364
--- /dev/null
+++ b/archivers/liblzo/buildlink.mk
@@ -0,0 +1,33 @@
+# $NetBSD: buildlink.mk,v 1.1 2001/06/23 19:46:22 jlam Exp $
+#
+# This Makefile fragment is included by packages that use liblzo.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define BUILDLINK_DEPENDS.liblzo to the dependency pattern
+# for the version of liblzo 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(liblzo_BUILDLINK_MK)
+liblzo_BUILDLINK_MK= # defined
+
+BUILDLINK_DEPENDS.liblzo?= liblzo>=1.04
+DEPENDS+= ${BUILDLINK_DEPENDS.liblzo}:../../archivers/liblzo
+
+BUILDLINK_PREFIX.liblzo= ${LOCALBASE}
+BUILDLINK_FILES.liblzo= include/liblzo.h
+BUILDLINK_FILES.liblzo+= lib/libliblzo.*
+
+BUILDLINK_TARGETS.liblzo= liblzo-buildlink
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.liblzo}
+
+pre-configure: ${BUILDLINK_TARGETS.liblzo}
+liblzo-buildlink: _BUILDLINK_USE
+
+.include "../../mk/bsd.buildlink.mk"
+
+.endif # liblzo_BUILDLINK_MK