Changeset View
Standalone View
Mk/bsd.port.mk
Show First 20 Lines • Show All 356 Lines • ▼ Show 20 Lines | |||||
# USE_GCC - If set, this port requires this version of gcc, either in | # USE_GCC - If set, this port requires this version of gcc, either in | ||||
# the system or installed from a port. | # the system or installed from a port. | ||||
# USE_CSTD - Override the default C language standard (gnu89, gnu99) | # USE_CSTD - Override the default C language standard (gnu89, gnu99) | ||||
# USE_CXXSTD Override the default C++ language standard | # USE_CXXSTD Override the default C++ language standard | ||||
# USE_BINUTILS - Use binutils suite from port instead of the version in base. | # USE_BINUTILS - Use binutils suite from port instead of the version in base. | ||||
# CFLAGS_${ARCH} Append the cflags to CFLAGS only on the specified architecture | # CFLAGS_${ARCH} Append the cflags to CFLAGS only on the specified architecture | ||||
# CXXFLAGS_${ARCH} | # CXXFLAGS_${ARCH} | ||||
# Append the cxxflags to CXXFLAGS only on the specified architecture | # Append the cxxflags to CXXFLAGS only on the specified architecture | ||||
## | ## | ||||
# USE_GL - A list of Mesa or GL related dependencies needed by the port. | |||||
# Supported components are: egl, glesv2, glut, glu, glw, and gl. | |||||
# If set to "yes", this is equivalent to "glu". Note that | |||||
# glew and glut depend on glu, glw and glu depend on gl. | |||||
## | |||||
# USE_SDL - If set, this port uses the sdl libraries. | # USE_SDL - If set, this port uses the sdl libraries. | ||||
mat: This whole bit should be moved to `Mk/Uses/gl.mk`. | |||||
# See bsd.sdl.mk for more information. | # See bsd.sdl.mk for more information. | ||||
## | ## | ||||
# USE_OPENLDAP - If set, this port uses the OpenLDAP libraries. | # USE_OPENLDAP - If set, this port uses the OpenLDAP libraries. | ||||
# Implies: WANT_OPENLDAP_VER?=24 | # Implies: WANT_OPENLDAP_VER?=24 | ||||
# WANT_OPENLDAP_VER | # WANT_OPENLDAP_VER | ||||
# - Legal values are: 23, 24 | # - Legal values are: 23, 24 | ||||
# If set to an unknown value, the port is marked BROKEN. | # If set to an unknown value, the port is marked BROKEN. | ||||
# WANT_OPENLDAP_SASL | # WANT_OPENLDAP_SASL | ||||
▲ Show 20 Lines • Show All 1,041 Lines • ▼ Show 20 Lines | |||||
USES+= gnome | USES+= gnome | ||||
.endif | .endif | ||||
.if defined(USE_MATE) && empty(USES:Mmate) | .if defined(USE_MATE) && empty(USES:Mmate) | ||||
DEV_WARNING+= "Using USE_MATE alone is deprecated, please add USES=mate." | DEV_WARNING+= "Using USE_MATE alone is deprecated, please add USES=mate." | ||||
USES+= mate | USES+= mate | ||||
.endif | .endif | ||||
.if defined(USE_GL) && (!defined(USES) || !${USES:Mgl}) | |||||
DEV_WARNING+= "Setting USE_GL without USES=gl is deprecated" | |||||
Done Inline ActionsThe variable is called DEV_WARNING. mat: The variable is called `DEV_WARNING`. | |||||
USES+= gl | |||||
Done Inline ActionsYou should add a check testing that USES does not already contains gl. Also, add a DEV_WARNING saying that using USE_GL without USES=gl is wrong. mat: You should add a check testing that `USES` does not already contains `gl`.
Also, add a… | |||||
Done Inline ActionsThis should only be a compat shim, so it should only add gl if it is not already in USES. It should also add a DEV_WARNING saying that it is invalid to use USE_GL without USES=gl. mat: This should only be a compat shim, so it should only add gl if it is not already in `USES`. It… | |||||
Done Inline ActionsOk, however, USE_GL= is not a compat shim, it's still needed to specify which GL components to bring in. But perhaps I'm misunderstanding what you mean? zeising: Ok, however, USE_GL= is not a compat shim, it's still needed to specify which GL components to… | |||||
Done Inline ActionsThank you for your input, I worded it wrong. It should only add if USES does not include gl. Then it needs to have a warning like this: DEV_WARNINGS+= "Using USE_GL alone is deprecated, please add USES=gl." mat: Thank you for your input, I worded it wrong.
It should only add if `USES` does not include… | |||||
Done Inline ActionsThank you very much for the clarification. zeising: Thank you very much for the clarification. | |||||
Done Inline ActionsThis breaks previous behavior (yes used to imply glu, not gl) antoine: This breaks previous behavior (yes used to imply glu, not gl) | |||||
.endif | |||||
.if defined(USE_MYSQL) | .if defined(USE_MYSQL) | ||||
USE_MYSQL:= ${USE_MYSQL:N[yY][eE][sS]:Nclient} | USE_MYSQL:= ${USE_MYSQL:N[yY][eE][sS]:Nclient} | ||||
.if defined(WANT_MYSQL_VER) | .if defined(WANT_MYSQL_VER) | ||||
.if empty(USE_MYSQL) | .if empty(USE_MYSQL) | ||||
USE_MYSQL:=${WANT_MYSQL_VER} | USE_MYSQL:=${WANT_MYSQL_VER} | ||||
.else | .else | ||||
USE_MYSQL:=${USE_MYSQL},${WANT_MYSQL_VER} | USE_MYSQL:=${USE_MYSQL},${WANT_MYSQL_VER} | ||||
.endif | .endif | ||||
▲ Show 20 Lines • Show All 447 Lines • ▼ Show 20 Lines | |||||
.if defined(USE_LDCONFIG) && ${USE_LDCONFIG:tl} == "yes" | .if defined(USE_LDCONFIG) && ${USE_LDCONFIG:tl} == "yes" | ||||
USE_LDCONFIG= ${PREFIX}/lib | USE_LDCONFIG= ${PREFIX}/lib | ||||
.endif | .endif | ||||
.if defined(USE_LDCONFIG32) && ${USE_LDCONFIG32:tl} == "yes" | .if defined(USE_LDCONFIG32) && ${USE_LDCONFIG32:tl} == "yes" | ||||
IGNORE= has USE_LDCONFIG32 set to yes, which is not correct | IGNORE= has USE_LDCONFIG32 set to yes, which is not correct | ||||
.endif | .endif | ||||
PKG_IGNORE_DEPENDS?= 'this_port_does_not_exist' | PKG_IGNORE_DEPENDS?= 'this_port_does_not_exist' | ||||
_GL_gbm_LIB_DEPENDS= libgbm.so:graphics/mesa-libs | |||||
_GL_glesv2_BUILD_DEPENDS= ${LOCALBASE}/lib/libGLESv2.so:graphics/mesa-libs | |||||
_GL_glesv2_RUN_DEPENDS= ${LOCALBASE}/lib/libGLESv2.so:graphics/mesa-libs | |||||
_GL_egl_BUILD_DEPENDS= ${LOCALBASE}/lib/libEGL.so:graphics/mesa-libs | |||||
_GL_egl_RUN_DEPENDS= ${LOCALBASE}/lib/libEGL.so:graphics/mesa-libs | |||||
_GL_gl_BUILD_DEPENDS= ${LOCALBASE}/lib/libGL.so:graphics/mesa-libs | |||||
_GL_gl_RUN_DEPENDS= ${LOCALBASE}/lib/libGL.so:graphics/mesa-libs | |||||
_GL_gl_USE_XORG= xorgproto | |||||
_GL_glew_LIB_DEPENDS= libGLEW.so:graphics/glew | |||||
_GL_glu_LIB_DEPENDS= libGLU.so:graphics/libGLU | |||||
_GL_glu_USE_XORG= xorgproto | |||||
_GL_glw_LIB_DEPENDS= libGLw.so:graphics/libGLw | |||||
_GL_glut_LIB_DEPENDS= libglut.so:graphics/freeglut | |||||
.if defined(USE_GL) | |||||
. if ${USE_GL:tl} == "yes" | |||||
USE_GL= glu | |||||
. endif | |||||
. for _component in ${USE_GL} | |||||
. if !defined(_GL_${_component}_LIB_DEPENDS) && \ | |||||
!defined(_GL_${_component}_RUN_DEPENDS) | |||||
IGNORE= uses unknown GL component | |||||
. else | |||||
USE_XORG+= ${_GL_${_component}_USE_XORG} | |||||
BUILD_DEPENDS+= ${_GL_${_component}_BUILD_DEPENDS} | |||||
LIB_DEPENDS+= ${_GL_${_component}_LIB_DEPENDS} | |||||
RUN_DEPENDS+= ${_GL_${_component}_RUN_DEPENDS} | |||||
. endif | |||||
. endfor | |||||
.endif | |||||
.if defined(_DESTDIR_VIA_ENV) | .if defined(_DESTDIR_VIA_ENV) | ||||
MAKE_ENV+= ${DESTDIRNAME}=${STAGEDIR} | MAKE_ENV+= ${DESTDIRNAME}=${STAGEDIR} | ||||
.else | .else | ||||
MAKE_ARGS+= ${DESTDIRNAME}=${STAGEDIR} | MAKE_ARGS+= ${DESTDIRNAME}=${STAGEDIR} | ||||
.endif | .endif | ||||
.if defined(NO_PREFIX_RMDIR) | .if defined(NO_PREFIX_RMDIR) | ||||
▲ Show 20 Lines • Show All 3,494 Lines • Show Last 20 Lines |
This whole bit should be moved to Mk/Uses/gl.mk.