Changeset View
Changeset View
Standalone View
Standalone View
graphics/mesa-dri/Makefile
# Created by: Eric Anholt <anholt@FreeBSD.org> | # Created by: Eric Anholt <anholt@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= mesa-dri | PORTNAME= mesa-dri | ||||
PORTVERSION= ${MESAVERSION} | PORTVERSION= ${MESAVERSION} | ||||
PORTREVISION= 1 | PORTREVISION= 2 | ||||
CATEGORIES= graphics | CATEGORIES= graphics | ||||
COMMENT= OpenGL hardware acceleration drivers for DRI2+ | COMMENT= OpenGL hardware acceleration drivers for DRI2+ | ||||
USES= xorg | USES= xorg | ||||
USE_XORG= xorgproto x11 xdamage xext xfixes xshmfence xv xvmc | USE_XORG= xorgproto x11 xdamage xext xfixes xshmfence xv xvmc | ||||
OPTIONS_DEFINE= VAAPI VDPAU WAYLAND | OPTIONS_DEFINE= VAAPI VDPAU WAYLAND | ||||
Show All 10 Lines | |||||
WAYLAND_DESC= Enable support for the Wayland platform in Vulkan drivers | WAYLAND_DESC= Enable support for the Wayland platform in Vulkan drivers | ||||
WAYLAND_BUILD_DEPENDS= wayland-protocols>=1.8:graphics/wayland-protocols | WAYLAND_BUILD_DEPENDS= wayland-protocols>=1.8:graphics/wayland-protocols | ||||
WAYLAND_LIB_DEPENDS= libwayland-client.so:graphics/wayland | WAYLAND_LIB_DEPENDS= libwayland-client.so:graphics/wayland | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.include "${.CURDIR:H:H}/graphics/mesa-dri/Makefile.common" | .include "${.CURDIR:H:H}/graphics/mesa-dri/Makefile.common" | ||||
ALL_DRI_DRIVERS= I915 I965 RADEON R100 R200 SWRAST | ALL_DRI_DRIVERS= I915 I965 RADEON R100 R200 SWRAST | ||||
ALL_GALLIUM_DRIVERS= FREEDRENO R300 R600 RADEONSI SVGA SWRAST VC4 | ALL_GALLIUM_DRIVERS= R300 R600 RADEONSI SVGA SWRAST | ||||
ALL_VULKAN_DRIVERS= INTEL AMD | ALL_VULKAN_DRIVERS= INTEL AMD | ||||
.if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH:Marm*} || ${ARCH} == i386 || ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} | .if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH:Marm*} || ${ARCH} == i386 || ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} | ||||
GALLIUM_DRIVERS= SWRAST # llvmpipe | GALLIUM_DRIVERS= SWRAST # llvmpipe | ||||
.else | .else | ||||
GALLIUM_DRIVERS= "" | GALLIUM_DRIVERS= "" | ||||
.endif | .endif | ||||
VULKAN_DRIVERS= # | VULKAN_DRIVERS= # | ||||
.if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH} == i386 \ | .if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH} == i386 \ | ||||
|| ${ARCH} == powerpc || ${ARCH} == powerpc64 | || ${ARCH} == powerpc || ${ARCH} == powerpc64 | ||||
DRI_DRIVERS+= R100 R200 | DRI_DRIVERS+= R100 R200 | ||||
GALLIUM_DRIVERS+= R300 R600 RADEONSI | GALLIUM_DRIVERS+= R300 R600 RADEONSI | ||||
VULKAN_DRIVERS+= AMD | VULKAN_DRIVERS+= AMD | ||||
MESON_ARGS+= -Dgallium-xvmc=true | MESON_ARGS+= -Dgallium-xvmc=true | ||||
.endif | .endif | ||||
.if ${ARCH} == amd64 || ${ARCH} == i386 | .if ${ARCH} == amd64 || ${ARCH} == i386 | ||||
DRI_DRIVERS+= I915 I965 | DRI_DRIVERS+= I915 I965 | ||||
GALLIUM_DRIVERS+= SVGA | GALLIUM_DRIVERS+= SVGA | ||||
. if ${OPSYS} == FreeBSD | . if ${OPSYS} == FreeBSD | ||||
EXTRA_PATCHES+= ${PATCHDIR}/extra-src_mesa_drivers_dri_i965_intel__screen.c | EXTRA_PATCHES+= ${PATCHDIR}/extra-src_mesa_drivers_dri_i965_intel__screen.c | ||||
. endif | . endif | ||||
VULKAN_DRIVERS+= INTEL | VULKAN_DRIVERS+= INTEL | ||||
.elif ${ARCH} == aarch64 || ${ARCH} == armv6 || ${ARCH} == armv7 | |||||
GALLIUM_DRIVERS+= FREEDRENO VC4 | |||||
. if ${ARCH} == armv6 || ${ARCH} == armv7 | |||||
EXTRA_PATCHES+= ${PATCHDIR}/extra-src_gallium_drivers_vc4_Makefile.in | |||||
. endif | |||||
.endif | .endif | ||||
.if ${VULKAN_DRIVERS} | .if ${VULKAN_DRIVERS} | ||||
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mako>0:textproc/py-mako@${PY_FLAVOR} | BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mako>0:textproc/py-mako@${PY_FLAVOR} | ||||
USE_XORG+= xcb xrandr | USE_XORG+= xcb xrandr | ||||
.endif | .endif | ||||
LDFLAGS_i386= -Wl,-znotext | LDFLAGS_i386= -Wl,-znotext | ||||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |