Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/gl.mk
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# Use OpenGL and related libraries and ports | # Use OpenGL and related libraries and ports | ||||
# | # | ||||
# Feature: gl | # Feature: gl | ||||
# Usage: USES=gl | # Usage: USES=gl | ||||
# USE_GL=egl gbm gl glesv2 glew glu glut | # USE_GL=egl gbm gl glesv2 glew glu glut | ||||
# | # | ||||
# USE_GL specifies which GL components to add as dependencies. | # USE_GL specifies which GL components to add as dependencies. | ||||
# Not specifying USE_GL with USES=gl is an error. | # Not specifying USE_GL with USES=gl is an error. | ||||
# USE_GL=yes implies USE_GL=glu. This is deprecated | # USE_GL=yes implies USE_GL=glu. This is deprecated | ||||
# | # | ||||
# MAINTAINER: x11@FreeBSD.org | # MAINTAINER: x11@FreeBSD.org | ||||
EGL_PORT?= graphics/libglvnd | |||||
GBM_PORT?= graphics/mesa-libs | |||||
GL_PORT?= graphics/libglvnd | |||||
GLESV2_PORT?= graphics/libglvnd | |||||
.if !defined(_INCLUDE_USES_GL_MK) | .if !defined(_INCLUDE_USES_GL_MK) | ||||
_INCLUDE_USES_GL_MK=yes | _INCLUDE_USES_GL_MK=yes | ||||
_GL_egl_LIB_DEPENDS= libEGL.so:graphics/mesa-libs | _GL_egl_LIB_DEPENDS= libEGL.so:${EGL_PORT} | ||||
_GL_gbm_LIB_DEPENDS= libgbm.so:graphics/mesa-libs | _GL_gbm_LIB_DEPENDS= libgbm.so:${GBM_PORT} | ||||
_GL_gl_LIB_DEPENDS= libGL.so:graphics/mesa-libs | _GL_gl_LIB_DEPENDS= libGL.so:${GL_PORT} | ||||
_GL_gl_USE_XORG= xorgproto | _GL_gl_USE_XORG= xorgproto | ||||
_GL_glesv2_LIB_DEPENDS= libGLESv2.so:graphics/mesa-libs | _GL_glesv2_LIB_DEPENDS= libGLESv2.so:${GLESV2_PORT} | ||||
_GL_glew_LIB_DEPENDS= libGLEW.so:graphics/glew | _GL_glew_LIB_DEPENDS= libGLEW.so:graphics/glew | ||||
_GL_glu_LIB_DEPENDS= libGLU.so:graphics/libGLU | _GL_glu_LIB_DEPENDS= libGLU.so:graphics/libGLU | ||||
_GL_glu_USE_XORG= xorgproto | _GL_glu_USE_XORG= xorgproto | ||||
_GL_glut_LIB_DEPENDS= libglut.so:graphics/freeglut | _GL_glut_LIB_DEPENDS= libglut.so:graphics/freeglut | ||||
.if !empty(gl_ARGS) | .if !empty(gl_ARGS) | ||||
IGNORE= USES=gl takes no arguments | IGNORE= USES=gl takes no arguments | ||||
.endif | .endif | ||||
Show All 27 Lines |