Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149713730
D36057.1790768810.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D36057.1790768810.diff
View Options
diff --git a/Mk/Uses/gl.mk b/Mk/Uses/gl.mk
--- a/Mk/Uses/gl.mk
+++ b/Mk/Uses/gl.mk
@@ -13,6 +13,7 @@
.if !defined(_INCLUDE_USES_GL_MK)
_INCLUDE_USES_GL_MK=yes
+_GL_dri_BUILD_DEPENDS= ${LOCALBASE}/include/GL/internal/dri_interface.h:graphics/${DRI_DEFAULT}
_GL_egl_LIB_DEPENDS= libEGL.so:graphics/libglvnd
_GL_gbm_LIB_DEPENDS= libgbm.so:graphics/${GL_DEFAULT}
_GL_gl_LIB_DEPENDS= libGL.so:graphics/libglvnd
@@ -37,9 +38,11 @@
. endif
. for _component in ${USE_GL}
-. if !defined(_GL_${_component}_LIB_DEPENDS)
+. if ! (defined(_GL_${_component}_BUILD_DEPENDS) \
+ || defined(_GL_${_component}_LIB_DEPENDS))
IGNORE= uses unknown GL component
. else
+BUILD_DEPENDS+= ${_GL_${_component}_BUILD_DEPENDS}
USE_XORG+= ${_GL_${_component}_USE_XORG}
LIB_DEPENDS+= ${_GL_${_component}_LIB_DEPENDS}
. endif
diff --git a/Mk/bsd.default-versions.mk b/Mk/bsd.default-versions.mk
--- a/Mk/bsd.default-versions.mk
+++ b/Mk/bsd.default-versions.mk
@@ -54,6 +54,11 @@
. endif
# Possible values: mesa-libs, mesa-devel
GL_DEFAULT?= mesa-libs
+. if ${GL_DEFAULT} == "mesa-devel"
+DRI_DEFAULT= mesa-devel
+. else
+DRI_DEFAULT= mesa-dri
+. endif
# Possible values: 7, 8, 9, agpl
GHOSTSCRIPT_DEFAULT?= agpl
# Possible values: 1.18, 1.19, 1.20-devel
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 30, 11:46 AM (12 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30036637
Default Alt Text
D36057.1790768810.diff (1 KB)
Attached To
Mode
D36057: Mk/Uses/gl.mk: add dri
Attached
Detach File
Event Timeline
Log In to Comment