pullup 3232
[pkgsrcv2.git] / mk / x11.version.mk
1 # $NetBSD: x11.version.mk,v 1.9 2007/09/30 12:25:48 rillig Exp $
2 #
3 # This file must not be included directly.
4 #
5 # XXX: How is it used then?
6 #
7 # User-settable variables:
8 #
9 # X11_TYPE
10 #       The X11 distribution that is used for building X11 packages.
11 #
12 #       Possible:
13 #       * native: use the native X11 distribution
14 #       * modular: use modular Xorg from pkgsrc
15 #
16 #       Default: native, unless defined for a specific operating system
17 #       in mk/platform/${OPSYS}.mk.
18 #
19 # Variables provided by this file:
20 #
21 # X11_PKGSRCDIR.${X11_TYPE}
22 #       The directory where the buildlink3.mk or builtin.mk files can
23 #       be found for the X11 distribution.
24 #
25 # BUILTIN_X11_TYPE.${X11_TYPE}
26 #       The X11_TYPE of the native X11 distribution detected on the
27 #       system.
28 #
29 # Variables that _may_ be defined by this file.  These variables
30 # should be checked to exist before they are used:
31 #
32 # BUILTIN_X11_VERSION.${X11_TYPE}
33 #       The version number of the native X11 distribution detected on
34 #       the system.
35 #
36
37 _VARGROUPS+=    x11
38 _USER_VARS.x11= X11_TYPE X11BASE
39 _PKG_VARS.x11=  USE_X11BASE
40 _SYS_VARS.x11=  X11_PKGSRCDIR.${X11_TYPE} BUILTIN_X11_TYPE.${X11_TYPE} BUILTIN_X11_VERSION.${X11_TYPE}
41
42 X11_PKGSRCDIR.native=   ../../pkgtools/x11-links
43
44 .include "${X11_PKGSRCDIR.${X11_TYPE}}/version.mk"