summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2001-07-20 02:00:47 +0000
committerjlam <jlam>2001-07-20 02:00:47 +0000
commitf041ab647e0073be7ad2c1b685845727de1b6e2a (patch)
treeda9200187903f1935efd5b4f65e2909018f811e9
parent7ebd2603f16501741c4242435382ae18a28bcb7f (diff)
downloadpkgsrc-f041ab647e0073be7ad2c1b685845727de1b6e2a.tar.gz
Make the example buildlink.mk file more complete by showing how
dependencies on the package are added through buildlink. Also show how to use EVAL_PREFIX to set BUILDLINK_PREFIX.foo.
-rw-r--r--Packages.txt7
-rw-r--r--mk/bsd.buildlink.mk7
2 files changed, 10 insertions, 4 deletions
diff --git a/Packages.txt b/Packages.txt
index f40dd63bbc6..fea12b6cb5b 100644
--- a/Packages.txt
+++ b/Packages.txt
@@ -1,4 +1,4 @@
-# $NetBSD: Packages.txt,v 1.173 2001/07/17 21:19:37 jlam Exp $
+# $NetBSD: Packages.txt,v 1.174 2001/07/20 02:00:47 jlam Exp $
###########################################################################
==========================
@@ -1557,7 +1557,10 @@ for a mythical package foo follows:
> .include "../../mk/bsd.buildlink.mk"
>
-> BUILDLINK_PREFIX.foo= ${LOCALBASE}
+> BUILDLINK_DEPENDS.foo?= foo>=1.0
+> DEPENDS+= ${BUILDLINK_DEPENDS.foo}:../../category/foo
+>
+> EVAL_PREFIX+= BUILDLINK_PREFIX.foo=foo
> BUILDLINK_FILES.foo= include/foo.h
> BUILDLINK_FILES.foo+= include/bar.h
> BUILDLINK_FILES.foo+= lib/libfoo.*
diff --git a/mk/bsd.buildlink.mk b/mk/bsd.buildlink.mk
index 583ae0e4a81..3b2a33593df 100644
--- a/mk/bsd.buildlink.mk
+++ b/mk/bsd.buildlink.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink.mk,v 1.23 2001/07/06 18:45:15 tron Exp $
+# $NetBSD: bsd.buildlink.mk,v 1.24 2001/07/20 02:00:48 jlam Exp $
#
# This Makefile fragment is included by package buildlink.mk files. This
# file does the following things:
@@ -64,7 +64,10 @@
#
# .include "../../mk/bsd.buildlink.mk"
#
-# BUILDLINK_PREFIX.foo= ${LOCALBASE}
+# BUILDLINK_DEPENDS.foo?= foo>=1.0
+# DEPENDS+= ${BUILDLINK_DEPENDS.foo}:../../category/foo
+#
+# EVAL_PREFIX+= BUILDLINK_PREFIX.foo=foo
# BUILDLINK_FILES.foo= include/foo.h
# BUILDLINK_FILES.foo+= include/bar.h
# BUILDLINK_FILES.foo+= lib/libfoo.*