summaryrefslogtreecommitdiff
path: root/graphics/mng
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-06-22 16:44:18 +0000
committerjlam <jlam@pkgsrc.org>2001-06-22 16:44:18 +0000
commit9273f351a36c789718049a00c27f834d0ab6a66f (patch)
tree128798fc65148c1b504da530e61e78d37dea7ec1 /graphics/mng
parenta0079390c9a1f8ebef15c81319d7a6348035c143 (diff)
downloadpkgsrc-9273f351a36c789718049a00c27f834d0ab6a66f.tar.gz
Add buildlink.mk file for use by other package Makefiles.
Diffstat (limited to 'graphics/mng')
-rw-r--r--graphics/mng/buildlink.mk34
1 files changed, 34 insertions, 0 deletions
diff --git a/graphics/mng/buildlink.mk b/graphics/mng/buildlink.mk
new file mode 100644
index 00000000000..23af2af912f
--- /dev/null
+++ b/graphics/mng/buildlink.mk
@@ -0,0 +1,34 @@
+# $NetBSD: buildlink.mk,v 1.1 2001/06/22 16:44:18 jlam Exp $
+#
+# This Makefile fragment is included by packages that use mng.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define MNG_REQD to the version of mng 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(MNG_BUILDLINK_MK)
+MNG_BUILDLINK_MK= # defined
+
+MNG_REQD?= 1.0.0
+DEPENDS+= mng>=${MNG_REQD}:../../graphics/mng
+
+BUILDLINK_PREFIX.mng= ${LOCALBASE}
+BUILDLINK_FILES.mng= include/libmng.h
+BUILDLINK_FILES.mng+= include/libmng_conf.h
+BUILDLINK_FILES.mng+= include/libmng_types.h
+BUILDLINK_FILES.mng+= lib/libmng.*
+
+BUILDLINK_TARGETS.mng= mng-buildlink
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.mng}
+
+pre-configure: ${BUILDLINK_TARGETS.mng}
+mng-buildlink: _BUILDLINK_USE
+
+.include "../../mk/bsd.buildlink.mk"
+
+.endif # MNG_BUILDLINK_MK