pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/buildlink3 Set the final form of the template build...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f614257ad74b
branches:  trunk
changeset: 462315:f614257ad74b
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Tue Sep 30 10:17:30 2003 +0000

description:
Set the final form of the template buildlink3.mk file, after I've had a
strong cup of coffee.  This now works the way it was intended: the
buildlink3.mk file sets a variable that can be checked within itself to
see whether it's already been included or not.

diffstat:

 mk/buildlink3/bsd.buildlink3.mk |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (29 lines):

diff -r 1e78303cb389 -r f614257ad74b mk/buildlink3/bsd.buildlink3.mk
--- a/mk/buildlink3/bsd.buildlink3.mk   Tue Sep 30 09:43:59 2003 +0000
+++ b/mk/buildlink3/bsd.buildlink3.mk   Tue Sep 30 10:17:30 2003 +0000
@@ -1,13 +1,12 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.21 2003/09/30 00:32:57 jlam Exp $
+# $NetBSD: bsd.buildlink3.mk,v 1.22 2003/09/30 10:17:30 jlam Exp $
 #
 # An example package buildlink3.mk file:
 #
 # -------------8<-------------8<-------------8<-------------8<-------------
 # BUILDLINK_DEPTH:=    ${BUILDLINK_DEPTH}+
+# FOO_BUILDLINK3_MK:=  ${FOO_BUILDLINK3_MK}+
 #
-# .if !defined(FOO_BUILDLINK3_MK)
-# FOO_BUILDLINK3_MK=   YES
-#
+# .if !empty(FOO_BUILDLINK3_MK:M\+)
 # BUILDLINK_DEPENDS.foo?=      foo-lib>=1.0
 # BUILDLINK_PKGSRCDIR.foo?=    ../../category/foo-lib
 # .endif # FOO_BUILDLINK3_MK
@@ -16,7 +15,7 @@
 # BUILDLINK_DEPENDS+=  foo
 # .endif
 #
-# .if !defined(FOO_BUILDLINK3_MK)
+# .if !empty(FOO_BUILDLINK3_MK:M\+)
 # BUILDLINK_PACKAGES+=         foo
 #
 # # We want "-lbar" to eventually resolve to "-lfoo".



Home | Main Index | Thread Index | Old Index