summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2003-09-28 12:51:46 +0000
committerjlam <jlam@pkgsrc.org>2003-09-28 12:51:46 +0000
commit9e14aa4f473411217e5a42a3ddb9644608ebf06e (patch)
treef24be2c83377d2537339d6ff8a8832f2b89bdd78 /mk
parent87ce557d03e9b2b43cea92491960bd864edb7ae9 (diff)
downloadpkgsrc-9e14aa4f473411217e5a42a3ddb9644608ebf06e.tar.gz
Update the template buildlink3.mk file so that it may be used for
non-recursive dependencies. We now use the check: .if !defined(BUILDLINK_PACKAGES) || empty(BUILDLINK_PACKAGES:Mfoo) ... .endif to replace the FOO_BUILDLINK3_MK guards.
Diffstat (limited to 'mk')
-rw-r--r--mk/buildlink3/bsd.buildlink3.mk12
1 files changed, 6 insertions, 6 deletions
diff --git a/mk/buildlink3/bsd.buildlink3.mk b/mk/buildlink3/bsd.buildlink3.mk
index a3e2d8983a5..1e09ec68cd7 100644
--- a/mk/buildlink3/bsd.buildlink3.mk
+++ b/mk/buildlink3/bsd.buildlink3.mk
@@ -1,27 +1,27 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.19 2003/09/28 12:36:52 jlam Exp $
+# $NetBSD: bsd.buildlink3.mk,v 1.20 2003/09/28 12:51:46 jlam Exp $
#
# An example package buildlink3.mk file:
#
# -------------8<-------------8<-------------8<-------------8<-------------
-# .if !defined(FOO_BUILDLINK3_MK)
-# FOO_BUILDLINK3_MK= # defined
# BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ # push
#
+# BUILDLINK_DEPENDS.foo?= foo-lib>=1.0
+# BUILDLINK_PKGSRCDIR.foo?= ../../category/foo-lib
+#
# .if !empty(BUILDLINK_DEPTH:M\+)
# BUILDLINK_DEPENDS+= foo
# .endif
#
+# .if !defined(BUILDLINK_PACKAGES) || empty(BUILDLINK_PACKAGES:Mfoo)
# BUILDLINK_PACKAGES+= foo
-# BUILDLINK_DEPENDS.foo?= foo-lib>=1.0
-# BUILDLINK_PKGSRCDIR.foo?= ../../category/foo-lib
#
# # We want "-lbar" to eventually resolve to "-lfoo".
# BUILDLINK_TRANSFORM+= l:bar:foo
+# .endif
#
# .include "../../category/baz/buildlink3.mk"
#
# BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:C/\+$//} # pop
-# .endif # FOO_BUILDLINK3_MK
# -------------8<-------------8<-------------8<-------------8<-------------
#
# Note that if a buildlink3.mk file is included, then the package Makefile