summaryrefslogtreecommitdiff
path: root/devel/g-wrap
diff options
context:
space:
mode:
authormjl <mjl>2002-08-23 11:26:14 +0000
committermjl <mjl>2002-08-23 11:26:14 +0000
commit452454200b5de5924a120d1c33452e38230d3e90 (patch)
treed685150f4c3b609f8d0c5366ab1821a3770cef24 /devel/g-wrap
parent2856736b68e770eb582e2f1cd5cd7d49d13ac513 (diff)
downloadpkgsrc-452454200b5de5924a120d1c33452e38230d3e90.tar.gz
Add buildlink.mk
Diffstat (limited to 'devel/g-wrap')
-rw-r--r--devel/g-wrap/buildlink.mk45
1 files changed, 45 insertions, 0 deletions
diff --git a/devel/g-wrap/buildlink.mk b/devel/g-wrap/buildlink.mk
new file mode 100644
index 00000000000..00c48a49b93
--- /dev/null
+++ b/devel/g-wrap/buildlink.mk
@@ -0,0 +1,45 @@
+# $NetBSD: buildlink.mk,v 1.1 2002/08/23 11:26:14 mjl Exp $
+#
+# This Makefile fragment is included by packages that use g-wrap.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define BUILDLINK_DEPENDS.g-wrap to the dependency pattern
+# for the version of g-wrap 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(G_WRAP_BUILDLINK_MK)
+G_WRAP_BUILDLINK_MK= # defined
+
+.include "../../mk/bsd.buildlink.mk"
+
+BUILDLINK_DEPENDS.g-wrap?= g-wrap>=1.2.1
+DEPENDS+= ${BUILDLINK_DEPENDS.g-wrap}:../../devel/g-wrap
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.g-wrap=g-wrap
+BUILDLINK_PREFIX.g-wrap_DEFAULT=${X11PREFIX}
+BUILDLINK_FILES.g-wrap+= include/g-wrap-runtime-guile.h
+BUILDLINK_FILES.g-wrap+= lib/libg-wrap*
+
+BUILDLINK_TARGETS.g-wrap= g-wrap-buildlink
+BUILDLINK_TARGETS.g-wrap+= g-wrap-buildlink-config-wrapper
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.g-wrap}
+
+BUILDLINK_CONFIG.g-wrap= ${BUILDLINK_PREFIX.g-wrap}/bin/g-wrap-config
+BUILDLINK_CONFIG_WRAPPER.g-wrap=${BUILDLINK_DIR}/bin/g-wrap-config
+
+.if defined(USE_CONFIG_WRAPPER)
+G_WRAP_CONFIG?= ${BUILDLINK_CONFIG_WRAPPER.g-wrap}
+CONFIGURE_ENV+= G_WRAP_CONFIG="${G_WRAP_CONFIG}"
+MAKE_ENV+= G_WRAP_CONFIG="${G_WRAP_CONFIG}"
+.endif
+
+pre-configure: ${BUILDLINK_TARGETS.g-wrap}
+g-wrap-buildlink: _BUILDLINK_USE
+g-wrap-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE
+
+.endif # G_WRAP_BUILDLINK_MK