blob: 4d34c045c97729ba57a9d765c4ba4589fa1dd5e5 (
plain) (
blame)
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
|
# $FreeBSD$
#
# Use OpenGL and related libraries and ports
#
# Feature: gl
# Usage: USES=gl
# USE_GL=egl gbm gl glesv2 glew glu glut glw
#
# USE_GL specifies which GL components to add as dependencies.
# Not specifying USE_GL with USES=gl is an error.
# USE_GL=yes implies USE_GL=glu. This is deprecated
#
# MAINTAINER: x11@FreeBSD.org
.if !defined(_INCLUDE_USES_GL_MK)
_INCLUDE_USES_GL_MK=yes
_GL_egl_LIB_DEPENDS= libEGL.so:graphics/mesa-libs
_GL_gbm_LIB_DEPENDS= libgbm.so:graphics/mesa-libs
_GL_gl_LIB_DEPENDS= libGL.so:graphics/mesa-libs
_GL_gl_USE_XORG= xorgproto
_GL_glesv2_LIB_DEPENDS= libGLESv2.so:graphics/mesa-libs
_GL_glew_LIB_DEPENDS= libGLEW.so:graphics/glew
_GL_glu_LIB_DEPENDS= libGLU.so:graphics/libGLU
_GL_glu_USE_XORG= xorgproto
_GL_glut_LIB_DEPENDS= libglut.so:graphics/freeglut
_GL_glw_LIB_DEPENDS= libGLw.so:graphics/libGLw
.if !empty(gl_ARGS)
IGNORE= USES=gl takes no arguments
.endif
.if !defined(USE_GL)
IGNORE= need to specify gl component with USE_GL
.elif ${USE_GL:tl} == yes
DEV_WARNING+= "USE_GL=yes is deprecated, please add USE_GL=glu (default) or specify component"
USE_GL= glu
.endif
.for _component in ${USE_GL}
.if !defined(_GL_${_component}_LIB_DEPENDS)
IGNORE= uses unknown GL component
.else
USE_XORG+= ${_GL_${_component}_USE_XORG}
LIB_DEPENDS+= ${_GL_${_component}_LIB_DEPENDS}
.endif
.endfor
# _INCLUDE_USES_GL_MK
.endif
|