summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authormjl <mjl@pkgsrc.org>2002-08-26 19:21:19 +0000
committermjl <mjl@pkgsrc.org>2002-08-26 19:21:19 +0000
commit19b0b8e12ae85798a6a3e4fada663fcdc8aa162c (patch)
treef903cf50c6f4383fdcb711cc24d59ae456185bf4 /math
parentfdddecaaa8439db267249e35cd873f247755c150 (diff)
downloadpkgsrc-19b0b8e12ae85798a6a3e4fada663fcdc8aa162c.tar.gz
Add buildlink.mk, needed for gnucash
Diffstat (limited to 'math')
-rw-r--r--math/guppi/buildlink.mk35
1 files changed, 35 insertions, 0 deletions
diff --git a/math/guppi/buildlink.mk b/math/guppi/buildlink.mk
new file mode 100644
index 00000000000..59f425f43db
--- /dev/null
+++ b/math/guppi/buildlink.mk
@@ -0,0 +1,35 @@
+# $NetBSD: buildlink.mk,v 1.1 2002/08/26 19:21:19 mjl Exp $
+#
+# This Makefile fragment is included by packages that use guppi.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define BUILDLINK_DEPENDS.guppi to the dependency pattern
+# for the version of gupp 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(GUPPI_BUILDLINK_MK)
+GUPPI_BUILDLINK_MK= # defined
+
+.include "../../mk/bsd.buildlink.mk"
+
+BUILDLINK_DEPENDS.guppi?= guppi>=0.40.3
+DEPENDS+= ${BUILDLINK_DEPENDS.guppi}:../../math/guppi
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.guppi=guppi
+BUILDLINK_PREFIX.guppi= ${LOCALBASE}
+BUILDLINK_FILES.guppi+= include/gnome-1.0/libguppi/*
+BUILDLINK_FILES.guppi+= include/gnome-1.0/libguppitank/*
+BUILDLINK_FILES.guppi+= lib/libguppi*
+
+BUILDLINK_TARGETS.guppi= guppi-buildlink
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.guppi}
+
+pre-configure: ${BUILDLINK_TARGETS.guppi}
+guppi-buildlink: _BUILDLINK_USE
+
+.endif # GUPPI_BUILDLINK_MK