| @@ -1,34 +1,23 @@ | | | @@ -1,34 +1,23 @@ |
1 | # $NetBSD: options.mk,v 1.51 2017/03/02 05:37:22 maya Exp $ | | 1 | # $NetBSD: options.mk,v 1.52 2017/03/02 06:00:03 maya Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.MesaLib | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.MesaLib |
4 | PKG_SUPPORTED_OPTIONS= llvm dri | | 4 | PKG_SUPPORTED_OPTIONS= llvm dri |
5 | PKG_SUGGESTED_OPTIONS= | | 5 | PKG_SUGGESTED_OPTIONS= |
6 | | | 6 | |
7 | # The LLVM option enables JIT accelerated software rendering and | | 7 | # The LLVM option enables JIT accelerated software rendering and |
8 | # is also required to support the latest RADEON GPUs, so enable it | | 8 | # is also required to support the latest RADEON GPUs, so enable it |
9 | # by default on platforms where such GPUs might be encountered. | | 9 | # by default on platforms where such GPUs might be encountered. |
10 | .if \ | | 10 | .if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") |
11 | !empty(MACHINE_PLATFORM:MNetBSD-[789].*-i386) || \ | | | |
12 | !empty(MACHINE_PLATFORM:MNetBSD-[789].*-x86_64) || \ | | | |
13 | !empty(MACHINE_PLATFORM:MNetBSD-[789].*-sparc64) || \ | | | |
14 | !empty(MACHINE_PLATFORM:MNetBSD-[789].*-*arm*) | | | |
15 | PKG_SUGGESTED_OPTIONS+= llvm | | | |
16 | .endif | | | |
17 | | | | |
18 | .if (!empty(MACHINE_PLATFORM:MLinux-*-i386) || \ | | | |
19 | !empty(MACHINE_PLATFORM:MLinux-*-x86_64)) && \ | | | |
20 | (!empty(CC_VERSION:Mgcc-4.[89].*) || \ | | | |
21 | !empty(CC_VERSION:Mgcc-[56].*)) | | | |
22 | PKG_SUGGESTED_OPTIONS+= llvm | | 11 | PKG_SUGGESTED_OPTIONS+= llvm |
23 | .endif | | 12 | .endif |
24 | | | 13 | |
25 | .if ${OPSYS} == "FreeBSD" || ${OPSYS} == "OpenBSD" || \ | | 14 | .if ${OPSYS} == "FreeBSD" || ${OPSYS} == "OpenBSD" || \ |
26 | ${OPSYS} == "DragonFly" || ${OPSYS} == "Linux" || \ | | 15 | ${OPSYS} == "DragonFly" || ${OPSYS} == "Linux" || \ |
27 | ${OPSYS} == "SunOS" || ${OPSYS} == "NetBSD" || \ | | 16 | ${OPSYS} == "SunOS" || ${OPSYS} == "NetBSD" || \ |
28 | ${OPSYS} == "Darwin" | | 17 | ${OPSYS} == "Darwin" |
29 | PKG_SUGGESTED_OPTIONS+= dri | | 18 | PKG_SUGGESTED_OPTIONS+= dri |
30 | .endif | | 19 | .endif |
31 | | | 20 | |
32 | .include "../../mk/bsd.options.mk" | | 21 | .include "../../mk/bsd.options.mk" |
33 | | | 22 | |
34 | # gallium | | 23 | # gallium |