diff options
Diffstat (limited to 'mk/x11.version.mk')
-rw-r--r-- | mk/x11.version.mk | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/mk/x11.version.mk b/mk/x11.version.mk new file mode 100644 index 00000000000..883823bbb20 --- /dev/null +++ b/mk/x11.version.mk @@ -0,0 +1,31 @@ +# $NetBSD: x11.version.mk,v 1.1 2005/06/01 18:03:06 jlam Exp $ +# +# The following variables may be set in /etc/mk.conf: +# +# X11_TYPE sets the X11 distribution used when building X11 packages. +# Possible values are "xorg" (use x11/xorg-libs), "XFree86" (use +# x11/XFree86-libs), or "native" (use the native X11 distribution). +# The default X11_TYPE is "native". +# +# The following variables are provided by this file: +# +# 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. +# +# BUILTIN_X11_TYPE.${X11_TYPE} is the X11_TYPE of the native X11 +# distribution detected on the system. +# +# BUILTIN_X11_VERSION.${X11_TYPE} is the version number of the native +# X11 distribution detected on the system. +# + +X11_TYPE?= native +X11_PKGSRCDIR.native= ../../pkgtools/x11-links +X11_PKGSRCDIR.XFree86= ../../x11/XFree86-libs +X11_PKGSRCDIR.xorg= ../../x11/xorg-libs + +# Makefiles that include this file can access the version of the X11 +# distribution as ${BUILTIN_X11_VERSION.${X11_TYPE}}. +# +.sinclude "${X11_PKGSRCDIR.${X11_TYPE}}/version.mk" |