summaryrefslogtreecommitdiff
path: root/graphics/mesa/Makefile
blob: 40ada404caaff0a80044abd45feac35721452ab7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84

#ONLY_FOR_ARCHS =	???
#NOT_FOR_ARCHS =	???

COMMENT =	the Mesa 3D Graphics Library 

DPB_PROPERTIES = parallel

DISTNAME =	mesa-22.3.7

SHARED_LIBS =	EGL 2.0 gbm 0.6 glapi 1.0 GL 18.0 GLESv1_CM 3.0 GLESv2 3.0 \
                OSMesa 13.0

CATEGORIES =	graphics

HOMEPAGE =	https://mesa3d.org/

MAINTAINER =	xenocara@openbsd.org

# MIT
PERMIT_PACKAGE =	Yes

MODULES =		devel/meson xenocara

WANTLIB =		drm drm_radeon m pthread z expat \
			xcb xcb-shm X11-xcb X11 \
			xcb-dri3 xcb-xfixes xcb-present xcb-sync \
			xshmfence Xext Xfixes xcb-glx xcb-dri2 \
			Xxf86vm c++ c++abi LLVM elf xcb-randr drm_amdgpu \
			zstd 

MASTER_SITES =		https://mesa.freedesktop.org/archive/
EXTRACT_SUFX =		.tar.xz

BUILD_DEPENDS =		sysutils/libdrm \
			devel/xorgproto \
			graphics/glslang \
			www/py-mako,python3 \
			devel/bison

LIB_DEPENDS =		archivers/zstd \
			sysutils/libdrm \
			x11/libX11 \
			x11/libxcb \
			x11/libXext \
			x11/libXfixes \
			x11/libXxf86vm \
			x11/libxshmfence

RUN_DEPENDS =		x11/xrandr

SEPARATE_BUILD =	Yes 

DRI_DRIVERS =           swrast
GALLIUM_DRIVERS =       swrast
WITH_LLVM =             false

.if ${MACHINE} == i386 || ${MACHINE} == amd64
GALLIUM_DRIVERS =       swrast,r300,r600,iris,radeonsi
VULKAN_DRIVERS =        amd,intel
WITH_LLVM =             enabled
.endif

.if ${MACHINE} == arm64 || ${MACHINE} == loongson || \
    ${MACHINE} == macppc || ${MACHINE} == sparc64
DRI_DRIVERS =           r100,r200
GALLIUM_DRIVERS =       swrast,r300,r600
.endif

CONFIGURE_ARGS =      -Dgallium-drivers=${GALLIUM_DRIVERS} \
		      -Dvulkan-drivers=${VULKAN_DRIVERS} \
                      -Dplatforms=x11 \
		      -Dgallium-vdpau=disabled \
			-Dmicrosoft-clc=disabled \
			-Dintel-clc=disabled \
			-Dcpp_rtti=false \
                      -Dosmesa=true \
                      -Ddri3=enabled \
                      -Dllvm=${WITH_LLVM} \
		      -Ddri-drivers-path=${X11BASE}/lib/modules/dri 

DEBUG_PACKAGES = ${BUILD_PACKAGES}

.include <bsd.port.mk>