pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Provided the usual header comment.
details: https://anonhg.NetBSD.org/pkgsrc/rev/7bf9fea575b0
branches: trunk
changeset: 521393:7bf9fea575b0
user: rillig <rillig%pkgsrc.org@localhost>
date: Fri Nov 10 20:48:41 2006 +0000
description:
Provided the usual header comment.
diffstat:
mk/alternatives.mk | 30 ++++++++++++++++++++----------
1 files changed, 20 insertions(+), 10 deletions(-)
diffs (48 lines):
diff -r 68dc1a3c92be -r 7bf9fea575b0 mk/alternatives.mk
--- a/mk/alternatives.mk Fri Nov 10 20:15:17 2006 +0000
+++ b/mk/alternatives.mk Fri Nov 10 20:48:41 2006 +0000
@@ -1,24 +1,34 @@
-# $NetBSD: alternatives.mk,v 1.7 2006/06/15 22:13:59 jlam Exp $
+# $NetBSD: alternatives.mk,v 1.8 2006/11/10 20:48:41 rillig Exp $
#
# This Makefile fragment handles the alternatives system, registering a
# package in the database.
#
-# The ALTERNATIVES_SRC variable contains the path to a file listing the
-# alternatives provided by the package. It defaults to the ALTERNATIVES
-# file in the current directory if found. If this variable is empty, no
-# actions are taken by this file.
+# User-settable variables:
+#
+# (none)
+#
+# Package-settable variables:
+#
+# ALTERNATIVES_SRC
+# A _single_ file that contains the alternatives provided by the
+# package.
+#
+# Default value: The name of the ALTERNATIVES file in the package
+# directory, if it exists. Otherwise, nothing.
+#
+# Variables defined by this file:
+#
+# PKG_ALTERNATIVES
+# The path to the pkg_alternatives command.
#
.if !defined(ALTERNATIVES_MK)
ALTERNATIVES_MK= # defined
-.if !defined(ALTERNATIVES_SRC)
-. if exists(${.CURDIR}/ALTERNATIVES)
+.if exists(${.CURDIR}/ALTERNATIVES)
ALTERNATIVES_SRC?= ${.CURDIR}/ALTERNATIVES
-. else
-ALTERNATIVES_SRC?=
-. endif
.endif
+ALTERNATIVES_SRC?= # none
.if !empty(ALTERNATIVES_SRC)
Home |
Main Index |
Thread Index |
Old Index