summaryrefslogtreecommitdiff
path: root/graphics/mesa/Makefile
blob: 0dd4e6517e83c0d7892447e0566d6f5041ab4649 (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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103

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

COMMENT =	the Mesa 3D Graphics Library 

DPB_PROPERTIES = parallel

GH_ACCOUNT = 	jonathangray
GH_PROJECT =	mesa
GH_COMMIT =	3727f7e6ab90ac34f6e1f1d49b5e9afd1f04b0b8
DISTNAME =	mesa-23.3.6

SHARED_LIBS =	EGL 2.0 gbm 0.6 glapi 1.0 GL 19.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 LLVM 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 xcb-keysyms \
			Xxf86vm c++ c++abi elf xcb-randr drm_amdgpu \
			drm_intel udev wayland-client wayland-server

BUILD_DEPENDS =		sysutils/libdrm \
			devel/xorgproto \
			graphics/pixman \
			graphics/glslang \
			multimedia/libva \
			wayland/wayland-protocols \
			www/py-mako,python3 \
			devel/bison \
			x11/fontconfig \
			x11/libXrandr

LIB_DEPENDS =		sysutils/libdrm \
			sysutils/libudev-openbsd \
			wayland/wayland \
			x11/libX11 \
			x11/libxcb \
			x11/xcb-util-keysyms \
			x11/libXext \
			x11/libXfixes \
			x11/libXxf86vm \
			x11/libxshmfence

SEPARATE_BUILD =	Yes 

DRI_DRIVERS =           swrast
GALLIUM_DRIVERS =       swrast
WITH_LLVM =             false

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

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

CONFIGURE_ENV = 	"MESA_GIT_SHA1_OVERRIDE=''"

CONFIGURE_ARGS =      -Dgallium-drivers=${GALLIUM_DRIVERS} \
        -Dvulkan-drivers=${VULKAN_DRIVERS} \
        -Dgallium-xa=disabled \
	-Dgallium-va=enabled \
	-Dgallium-vdpau=disabled \
	-Dmicrosoft-clc=disabled \
	-Dandroid-libbacktrace=disabled \
	-Dlibunwind=disabled \
	-Dlmsensors=disabled \
        -Dplatforms=x11,wayland \
        -Ddri3=enabled \
        -Dgles1=enabled \
        -Dgles2=enabled \
        -Dgbm=enabled \
        -Dosmesa=true \
        -Dshared-glapi=enabled \
        -Dzstd=disabled \
        -Dexecmem=false \
	-Dcpp_rtti=false \
	-Dvalgrind=false \
        -Db_ndebug=true \
        -Ddri-drivers-path=${X11BASE}/lib/modules/dri \
        -Ddri-search-path=${X11BASE}/lib/modules/dri

DEBUG_PACKAGES = ${BUILD_PACKAGES}

.include <bsd.port.mk>