Annotation of pkgsrc/graphics/MesaLib/options.mk, Revision 1.78
1.78 ! nia 1: # $NetBSD: options.mk,v 1.77 2019/12/08 13:07:20 nia Exp $
1.1 bjs 2:
1.28 tnn 3: PKG_OPTIONS_VAR= PKG_OPTIONS.MesaLib
1.1 bjs 4:
1.76 nia 5: .include "features.mk"
6:
1.74 nia 7: PKG_SUPPORTED_OPTIONS+= llvm vulkan x11
1.1 bjs 8:
1.76 nia 9: .if ${MESALIB_SUPPORTS_DRI} == "yes"
1.71 nia 10: PKG_SUPPORTED_OPTIONS+= wayland
1.15 hasso 11: .endif
12:
1.71 nia 13: PKG_SUGGESTED_OPTIONS+= x11
1.28 tnn 14:
1.78 ! nia 15: .include "../../devel/wayland/platform.mk"
! 16:
! 17: .if ${PLATFORM_SUPPORTS_WAYLAND} == "yes"
! 18: PKG_SUGGESTED_OPTIONS+= wayland
! 19: .endif
! 20:
1.71 nia 21: # The LLVM option enables JIT accelerated software rendering and is also
22: # required to support the latest RADEON GPUs.
23: #
24: # Enable it by default on platforms where such GPUs might be encountered or
25: # LLVM-accelerated software rendering might be useful.
1.76 nia 26: .if ${MESALIB_SUPPORTS_DRI} == "yes" && \
27: ${OPSYS} != "SunOS" && \
1.73 nia 28: (${MACHINE_ARCH} == "i386" || \
29: ${MACHINE_ARCH} == "x86_64" || \
30: ${MACHINE_ARCH} == "aarch64")
1.71 nia 31: PKG_SUGGESTED_OPTIONS+= llvm
1.65 nia 32: .endif
33:
1.71 nia 34: .include "../../mk/bsd.options.mk"
1.1 bjs 35:
1.71 nia 36: # Gallium drivers requiring LLVM
37: PLIST_VARS+= r600 radeonsi
1.65 nia 38:
1.71 nia 39: # Windowing systems
40: PLIST_VARS+= wayland glx
1.65 nia 41:
1.71 nia 42: # Misc. features
43: PLIST_VARS+= vdpau
1.65 nia 44:
1.71 nia 45: #
46: # LLVM support
47: #
48: .if !empty(PKG_OPTIONS:Mllvm)
49: MESON_ARGS+= -Dllvm=true
1.74 nia 50: BUILDLINK_API_DEPENDS.libLLVM+= libLLVM>=7.0.1nb2
1.71 nia 51: . include "../../devel/libelf/buildlink3.mk"
52: . include "../../lang/libLLVM/buildlink3.mk"
1.28 tnn 53:
1.71 nia 54: . if ${OPSYS} != "Darwin" && ${OPSYS} != "Cygwin"
1.74 nia 55: # This is the latest libdrm requirement for amdgpu.
56: BUILDLINK_API_DEPENDS.libdrm+= libdrm>=2.4.99
57:
1.38 bouyer 58: PLIST.r600= yes
59: GALLIUM_DRIVERS+= r600
1.71 nia 60: PLIST.radeonsi= yes
61: GALLIUM_DRIVERS+= radeonsi
62: . endif
63: .else
64: MESON_ARGS+= -Dllvm=false
65: .endif
1.38 bouyer 66:
1.71 nia 67: #
1.74 nia 68: # Vulkan support - experimental
69: #
70: .if !empty(PKG_OPTIONS:Mvulkan)
71: MESON_ARGS+= -Dvulkan-drivers="auto"
72: .else
73: MESON_ARGS+= -Dvulkan-drivers=""
74: .endif
75:
76: #
1.71 nia 77: # X11 support
78: #
79: .if !empty(PKG_OPTIONS:Mx11)
80: MESA_PLATFORMS+= x11
81: PLIST.glx= yes
1.76 nia 82: . if ${MESALIB_SUPPORTS_DRI} == "yes"
1.71 nia 83: MESON_ARGS+= -Dglx=dri
84: . include "../../multimedia/libvdpau/available.mk"
1.75 nia 85: . if ${VDPAU_AVAILABLE} == "yes"
1.71 nia 86: MESON_ARGS+= -Dgallium-vdpau=true
87: PLIST.vdpau= yes
88: . include "../../multimedia/libvdpau/buildlink3.mk"
89: . else
90: MESON_ARGS+= -Dgallium-vdpau=false
1.65 nia 91: . endif
92: . endif
1.71 nia 93: . include "../../x11/libX11/buildlink3.mk"
94: . include "../../x11/libXdamage/buildlink3.mk"
95: . include "../../x11/libXext/buildlink3.mk"
96: . include "../../x11/libXfixes/buildlink3.mk"
97: . include "../../x11/libXrandr/buildlink3.mk"
98: . include "../../x11/libXxf86vm/buildlink3.mk"
99: . include "../../x11/libxcb/buildlink3.mk"
100: . include "../../x11/libxshmfence/buildlink3.mk"
101: . include "../../x11/xcb-proto/buildlink3.mk"
102: . include "../../x11/xorgproto/buildlink3.mk"
103: .else
104: MESON_ARGS+= -Dglx=disabled
1.68 nia 105: MESON_ARGS+= -Dgallium-vdpau=false
1.1 bjs 106: .endif
1.77 nia 107:
108: #
109: # Wayland support
110: #
111: .if !empty(PKG_OPTIONS:Mwayland)
112: MESA_PLATFORMS+= wayland
113: PLIST.wayland= yes
114: . include "../../devel/wayland/buildlink3.mk"
115: . include "../../devel/wayland-protocols/buildlink3.mk"
116: .endif
CVSweb <webmaster@jp.NetBSD.org>