diff options
Diffstat (limited to 'mk')
-rw-r--r-- | mk/x11.buildlink3.mk | 8 | ||||
-rw-r--r-- | mk/x11.version.mk | 45 |
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" |