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/d949c94262aa
branches:  trunk
changeset: 462287:d949c94262aa
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Tue Sep 30 00:32:57 2003 +0000

description:
Set the final form of the template buildlink3.mk file as a guideline for
buildlink3.mk writers.

diffstat:

 mk/buildlink3/bsd.buildlink3.mk |  22 +++++++++++++++-------
 1 files changed, 15 insertions(+), 7 deletions(-)

diffs (47 lines):

diff -r 5716f7c48acd -r d949c94262aa mk/buildlink3/bsd.buildlink3.mk
--- a/mk/buildlink3/bsd.buildlink3.mk   Tue Sep 30 00:08:56 2003 +0000
+++ b/mk/buildlink3/bsd.buildlink3.mk   Tue Sep 30 00:32:57 2003 +0000
@@ -1,28 +1,36 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.20 2003/09/28 12:51:46 jlam Exp $
+# $NetBSD: bsd.buildlink3.mk,v 1.21 2003/09/30 00:32:57 jlam Exp $
 #
 # An example package buildlink3.mk file:
 #
 # -------------8<-------------8<-------------8<-------------8<-------------
-# BUILDLINK_DEPTH:=    ${BUILDLINK_DEPTH}+             # push
+# BUILDLINK_DEPTH:=    ${BUILDLINK_DEPTH}+
+#
+# .if !defined(FOO_BUILDLINK3_MK)
+# FOO_BUILDLINK3_MK=   YES
 #
 # BUILDLINK_DEPENDS.foo?=      foo-lib>=1.0
 # BUILDLINK_PKGSRCDIR.foo?=    ../../category/foo-lib
+# .endif # FOO_BUILDLINK3_MK
 #
 # .if !empty(BUILDLINK_DEPTH:M\+)
 # BUILDLINK_DEPENDS+=  foo
 # .endif
 #
-# .if !defined(BUILDLINK_PACKAGES) || empty(BUILDLINK_PACKAGES:Mfoo)
+# .if !defined(FOO_BUILDLINK3_MK)
 # BUILDLINK_PACKAGES+=         foo
 #
 # # We want "-lbar" to eventually resolve to "-lfoo".
 # BUILDLINK_TRANSFORM+=                l:bar:foo
-# .endif
+#
+# .  include "../../category/baz/buildlink3.mk"
+# .endif # FOO_BUILDLINK3_MK
 #
-# .include "../../category/baz/buildlink3.mk"
+# BUILDLINK_DEPTH:=    ${BUILDLINK_DEPTH:C/\+$//}
+# -------------8<-------------8<-------------8<-------------8<-------------
 #
-# BUILDLINK_DEPTH:=    ${BUILDLINK_DEPTH:C/\+$//}      # pop
-# -------------8<-------------8<-------------8<-------------8<-------------
+# Most of the buildlink3.mk file is protected against multiple inclusion,
+# except for the parts related to manipulating BUILDLINK_DEPTH and adding
+# to BUILDLINK_DEPENDS.
 #
 # Note that if a buildlink3.mk file is included, then the package Makefile
 # has the expectation that it can use the value of BUILDLINK_PREFIX.<pkg>.



Home | Main Index | Thread Index | Old Index