summaryrefslogtreecommitdiff
path: root/graphics/lcms
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-06-22 16:39:00 +0000
committerjlam <jlam@pkgsrc.org>2001-06-22 16:39:00 +0000
commita6abca172990cc272e2ca397d928c7ccbe7cbd55 (patch)
tree76fb2edbc1fba6edc3c2643669947ade5a67bc6a /graphics/lcms
parent2b08fa4da36a0b9dbe13d58ca22ad9c641e01998 (diff)
downloadpkgsrc-a6abca172990cc272e2ca397d928c7ccbe7cbd55.tar.gz
Add buildlink.mk file for use by other package Makefiles.
Diffstat (limited to 'graphics/lcms')
-rw-r--r--graphics/lcms/buildlink.mk32
1 files changed, 32 insertions, 0 deletions
diff --git a/graphics/lcms/buildlink.mk b/graphics/lcms/buildlink.mk
new file mode 100644
index 00000000000..4bbccfecd0d
--- /dev/null
+++ b/graphics/lcms/buildlink.mk
@@ -0,0 +1,32 @@
+# $NetBSD: buildlink.mk,v 1.1 2001/06/22 16:39:00 jlam Exp $
+#
+# This Makefile fragment is included by packages that use lcms.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define LCMS_REQD to the version of lcms 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(LCMS_BUILDLINK_MK)
+LCMS_BUILDLINK_MK= # defined
+
+LCMS_REQD?= 1.06
+DEPENDS+= lcms>=${LCMS_REQD}:../../graphics/lcms
+
+BUILDLINK_PREFIX.lcms= ${LOCALBASE}
+BUILDLINK_FILES.lcms= include/lcms/*
+BUILDLINK_FILES.lcms+= lib/liblcms.*
+
+BUILDLINK_TARGETS.lcms= lcms-buildlink
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.lcms}
+
+pre-configure: ${BUILDLINK_TARGETS.lcms}
+lcms-buildlink: _BUILDLINK_USE
+
+.include "../../mk/bsd.buildlink.mk"
+
+.endif # LCMS_BUILDLINK_MK