View | Details | Raw Unified | Return to bug 230692
Collapse All | Expand All

(-)Mk/Uses/gl.mk (+42 lines)
Line 0 Link Here
1
# $FreeBSD$
2
# 
3
# Use OpenGL and related libraries and ports
4
# 
5
# Feature:	gl
6
# Usage:	USES=gl:componet:[argument]
7
# 
8
# MAINTAINER:	x11@FreeBSD.org
9
10
.if !defined(_INCLUDE_USES_GL_MK)
11
_INCLUDE_USES_GL_MK=yes
12
13
_GL_gbm_LIB_DEPENDS=		libgbm.so:graphics/mesa-libs
14
_GL_glesv2_LIB_DEPENDS=		libGLESv2.so:graphics/mesa-libs
15
_GL_egl_LIB_DEPENDS=		libEGL.so:graphics/mesa-libs
16
_GL_gl_LIB_DEPENDS=		libGL.so:graphics/mesa-libs
17
_GL_gl_USE_XORG=		xorgproto
18
_GL_glew_LIB_DEPENDS=		libGLEW.so:graphics/glew
19
_GL_glu_LIB_DEPENDS=		libGLU.so:graphics/libGLU
20
_GL_glu_USE_XORG=		xorgproto
21
_GL_glw_LIB_DEPENDS=		libGLw.so:graphics/libGLw
22
_GL_glut_LIB_DEPENDS=		libglut.so:graphics/freeglut
23
24
.if !empty(gl_ARGS)
25
IGNORE=	USES=gl takes no arguments
26
.endif
27
28
.if !defined(USE_GL) || ${USE_GL:tl} == "yes"
29
USE_GL=		gl
30
.endif
31
32
.for _component in ${USE_GL}
33
.if !defined(_GL_${_component}_LIB_DEPENDS)
34
IGNORE=		uses unknown GL component
35
.else
36
USE_XORG+=	${_GL_${_component}_USE_XORG}
37
LIB_DEPENDS+=	${_GL_${_component}_LIB_DEPENDS}
38
.endif
39
.endfor
40
41
# _INCLUDE_USES_GL_MK
42
.endif
(-)Mk/bsd.port.mk (-31 / +5 lines)
Lines 365-371 Link Here
365
##
365
##
366
# USE_GL		- A list of Mesa or GL related dependencies needed by the port.
366
# USE_GL		- A list of Mesa or GL related dependencies needed by the port.
367
#				  Supported components are: egl, glesv2, glut, glu, glw, and gl.
367
#				  Supported components are: egl, glesv2, glut, glu, glw, and gl.
368
#				  If set to "yes", this is equivalent to "glu". Note that
368
#				  If set to "yes", this is equivalent to "gl". Note that
369
#				  glew and glut depend on glu, glw and glu depend on gl.
369
#				  glew and glut depend on glu, glw and glu depend on gl.
370
##
370
##
371
# USE_SDL		- If set, this port uses the sdl libraries.
371
# USE_SDL		- If set, this port uses the sdl libraries.
Lines 1424-1429 Link Here
1424
USES+=	mate
1424
USES+=	mate
1425
.endif
1425
.endif
1426
1426
1427
.if defined(USE_GL)
1428
USES+=	gl
1429
.endif
1430
1427
.if defined(USE_MYSQL)
1431
.if defined(USE_MYSQL)
1428
USE_MYSQL:=		${USE_MYSQL:N[yY][eE][sS]:Nclient}
1432
USE_MYSQL:=		${USE_MYSQL:N[yY][eE][sS]:Nclient}
1429
.if defined(WANT_MYSQL_VER)
1433
.if defined(WANT_MYSQL_VER)
Lines 1888-1923 Link Here
1888
1892
1889
PKG_IGNORE_DEPENDS?=		'this_port_does_not_exist'
1893
PKG_IGNORE_DEPENDS?=		'this_port_does_not_exist'
1890
1894
1891
_GL_gbm_LIB_DEPENDS=		libgbm.so:graphics/mesa-libs
1892
_GL_glesv2_BUILD_DEPENDS=	${LOCALBASE}/lib/libGLESv2.so:graphics/mesa-libs
1893
_GL_glesv2_RUN_DEPENDS=		${LOCALBASE}/lib/libGLESv2.so:graphics/mesa-libs
1894
_GL_egl_BUILD_DEPENDS=		${LOCALBASE}/lib/libEGL.so:graphics/mesa-libs
1895
_GL_egl_RUN_DEPENDS=		${LOCALBASE}/lib/libEGL.so:graphics/mesa-libs
1896
_GL_gl_BUILD_DEPENDS=		${LOCALBASE}/lib/libGL.so:graphics/mesa-libs
1897
_GL_gl_RUN_DEPENDS=			${LOCALBASE}/lib/libGL.so:graphics/mesa-libs
1898
_GL_gl_USE_XORG=			xorgproto
1899
_GL_glew_LIB_DEPENDS=		libGLEW.so:graphics/glew
1900
_GL_glu_LIB_DEPENDS=		libGLU.so:graphics/libGLU
1901
_GL_glu_USE_XORG=			xorgproto
1902
_GL_glw_LIB_DEPENDS=		libGLw.so:graphics/libGLw
1903
_GL_glut_LIB_DEPENDS=		libglut.so:graphics/freeglut
1904
.if defined(USE_GL)
1905
. if ${USE_GL:tl} == "yes"
1906
USE_GL=		glu
1907
. endif
1908
. for _component in ${USE_GL}
1909
.  if !defined(_GL_${_component}_LIB_DEPENDS) && \
1910
		!defined(_GL_${_component}_RUN_DEPENDS)
1911
IGNORE=		uses unknown GL component
1912
.  else
1913
USE_XORG+=	${_GL_${_component}_USE_XORG}
1914
BUILD_DEPENDS+=	${_GL_${_component}_BUILD_DEPENDS}
1915
LIB_DEPENDS+=	${_GL_${_component}_LIB_DEPENDS}
1916
RUN_DEPENDS+=	${_GL_${_component}_RUN_DEPENDS}
1917
.  endif
1918
. endfor
1919
.endif
1920
1921
.if defined(_DESTDIR_VIA_ENV)
1895
.if defined(_DESTDIR_VIA_ENV)
1922
MAKE_ENV+=	${DESTDIRNAME}=${STAGEDIR}
1896
MAKE_ENV+=	${DESTDIRNAME}=${STAGEDIR}
1923
.else
1897
.else

Return to bug 230692