Fixup fromcvs/togit conversion
[pkgsrcv2.git] / pkgtools / x11-links / version.mk
1 # $NetBSD: version.mk,v 1.4 2011/01/08 21:46:56 dholland Exp $
2 #
3 # This Makefile fragment is included by Makefiles that need to access
4 # the X11_TYPE and version number of a native X11 distribution.
5 #
6 # The following variables are provided by this file:
7 #
8 #    BUILTIN_X11_TYPE.native is the X11_TYPE of the native X11
9 #       distribution detected on the system.
10 #
11 #    BUILTIN_X11_VERSION.native is the version number, where applicable,
12 #       of the native X11 distribution detected on the system.
13 #
14
15 .if !defined(BUILTIN_X11_VERSION.native)
16 .  include "xorg-version.mk"
17 .  include "xfree-version.mk"
18
19 .  if defined(BUILTIN_X11_VERSION.xorg)
20 BUILTIN_X11_TYPE.native=        ${BUILTIN_X11_TYPE.xorg}
21 BUILTIN_X11_VERSION.native=     ${BUILTIN_X11_VERSION.xorg}
22 .  elif defined(BUILTIN_X11_VERSION.XFree86)
23 BUILTIN_X11_TYPE.native=        ${BUILTIN_X11_TYPE.XFree86}
24 BUILTIN_X11_VERSION.native=     ${BUILTIN_X11_VERSION.XFree86}
25 .  elif !empty(X11BASE:M*openwin)
26 BUILTIN_X11_TYPE.native=        openwin
27 .  elif ${OPSYS} == "IRIX"
28 BUILTIN_X11_TYPE.native=        xsgi
29 .  elif ${OPSYS} == "OSF1"
30 BUILTIN_X11_TYPE.native=        xdec
31 .  else
32 BUILTIN_X11_TYPE.native=        unknown
33 .  endif
34 .endif
35 MAKEVARS+=      BUILTIN_X11_VERSION.native BUILTIN_X11_TYPE.native