pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/buildlink3 Update the template buildlink3.mk file s...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/88461a5aca99
branches:  trunk
changeset: 462233:88461a5aca99
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sun Sep 28 12:51:46 2003 +0000

description:
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:

 mk/buildlink3/bsd.buildlink3.mk |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (37 lines):

diff -r 096ae6e3b70f -r 88461a5aca99 mk/buildlink3/bsd.buildlink3.mk
--- a/mk/buildlink3/bsd.buildlink3.mk   Sun Sep 28 12:45:04 2003 +0000
+++ b/mk/buildlink3/bsd.buildlink3.mk   Sun Sep 28 12:51:46 2003 +0000
@@ -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



Home | Main Index | Thread Index | Old Index