summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-10-01 07:21:44 +0000
committerrillig <rillig@pkgsrc.org>2007-10-01 07:21:44 +0000
commit78c28d49527c81ce2474502feb6da39c2caed365 (patch)
tree6274bafc13b4501fcfbaecb9d550e3ae314c5a8f /mk
parent4012aa7ca2d8502f1e4ca6cfe97d65534140be42 (diff)
downloadpkgsrc-78c28d49527c81ce2474502feb6da39c2caed365.tar.gz
Fixed the comments a little bit.
Hey Joerg, since you made the non-modular Xorg obsolete, you could have at least changed the comments in this file, reflecting the change to modular Xorg. Now, please document here how these files are really meant to be used, since you know it better than me.
Diffstat (limited to 'mk')
-rw-r--r--mk/x11.buildlink3.mk8
-rw-r--r--mk/x11.version.mk45
2 files changed, 30 insertions, 23 deletions
diff --git a/mk/x11.buildlink3.mk b/mk/x11.buildlink3.mk
index e197c0a268c..beb709853d7 100644
--- a/mk/x11.buildlink3.mk
+++ b/mk/x11.buildlink3.mk
@@ -1,8 +1,8 @@
-# $NetBSD: x11.buildlink3.mk,v 1.8 2007/08/17 20:27:30 joerg Exp $
+# $NetBSD: x11.buildlink3.mk,v 1.9 2007/10/01 07:21:44 rillig Exp $
#
-# This Makefile fragment is meant to be included by packages that
-# require an X11 distribution. x11.buildlink3.mk will include the
-# buildlink3.mk file from the appropriate X11 distribution.
+# This file should only be included from the buildlink3.mk files from
+# the modular Xorg packages and only in the case that the native X11
+# distribution should be used.
#
X11_BUILDLINK3_MK:= ${X11_BUILDLINK3_MK}+
diff --git a/mk/x11.version.mk b/mk/x11.version.mk
index 08126e6c0eb..43ac8b136b8 100644
--- a/mk/x11.version.mk
+++ b/mk/x11.version.mk
@@ -1,27 +1,37 @@
-# $NetBSD: x11.version.mk,v 1.9 2007/09/30 12:25:48 rillig Exp $
+# $NetBSD: x11.version.mk,v 1.10 2007/10/01 07:21:44 rillig Exp $
#
-# The following variables may be set in /etc/mk.conf:
+# This file must not be included directly.
#
-# X11_TYPE sets the X11 distribution used when building X11 packages.
-# Possible values are "xorg" (use x11/xorg-libs), or "native"
-# (use the native X11 distribution).
-# The default X11_TYPE is "native" unless defined for a specific
-# operating system in mk/platform/${OPSYS}.mk.
+# XXX: How is it used then?
#
-# The following variables are provided by this file:
+# User-settable variables:
#
-# X11_PKGSRCDIR.${X11_TYPE} sets the pkgsrc directory location for
-# the package which manages/represents ${X11_TYPE}. It can be
-# used to find the relevant buildlink3.mk or builtin.mk files.
+# X11_TYPE
+# The X11 distribution that is used for building X11 packages.
#
-# BUILTIN_X11_TYPE.${X11_TYPE} is the X11_TYPE of the native X11
-# distribution detected on the system.
+# Possible:
+# * native: use the native X11 distribution
+# * modular: use modular Xorg from pkgsrc
#
-# The following variables may be defined by this file. These variables
+# Default: native, unless defined for a specific operating system
+# in mk/platform/${OPSYS}.mk.
+#
+# Variables provided by this file:
+#
+# X11_PKGSRCDIR.${X11_TYPE}
+# The directory where the buildlink3.mk or builtin.mk files can
+# be found for the X11 distribution.
+#
+# BUILTIN_X11_TYPE.${X11_TYPE}
+# The X11_TYPE of the native X11 distribution detected on the
+# system.
+#
+# Variables that _may_ be defined by this file. These variables
# should be checked to exist before they are used:
#
-# BUILTIN_X11_VERSION.${X11_TYPE} is the version number of the native
-# X11 distribution detected on the system.
+# BUILTIN_X11_VERSION.${X11_TYPE}
+# The version number of the native X11 distribution detected on
+# the system.
#
_VARGROUPS+= x11
@@ -31,7 +41,4 @@ _SYS_VARS.x11= X11_PKGSRCDIR.${X11_TYPE} BUILTIN_X11_TYPE.${X11_TYPE} BUILTIN_X1
X11_PKGSRCDIR.native= ../../pkgtools/x11-links
-# Makefiles that include this file can access the version of the X11
-# distribution as ${BUILTIN_X11_VERSION.${X11_TYPE}}.
-#
.include "${X11_PKGSRCDIR.${X11_TYPE}}/version.mk"