Add comment about USES+=xorg in mk files

Add a comment clarifying why USES+=xorg is used in a couple of Mk/Uses/*
files, even though it does not provide any immediate functionality.
This commit is contained in:
Niclas Zeising 2019-11-07 18:49:58 +00:00
parent cc36f3229d
commit 9b8fced079
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=517002
3 changed files with 9 additions and 3 deletions

View File

@ -45,7 +45,9 @@ LIB_DEPENDS+= ${_GL_${_component}_LIB_DEPENDS}
.endif
.endfor
# We only need USES=xorg if we want USE_XORG modules
# We only need to include xorg.mk if we want USE_XORG modules
# USES+=xorg does not provide any functionality, it just silences an error
# message about USES=xorg not being set
.if defined(USE_XORG) && !empty(USE_XORG)
USES+= xorg
.include "${USESDIR}/xorg.mk"

View File

@ -27,7 +27,9 @@ LIB_DEPENDS+= libXm.so.4:x11-toolkits/open-motif
MOTIFLIB?= -L${LOCALBASE}/lib -lXm
MAKE_ENV+= MOTIFLIB="${MOTIFLIB}"
# We only need USES=xorg if we want USE_XORG modules
# We only need to include xorg.mk if we want USE_XORG modules
# USES+=xorg does not provide any functionality, it just silences an error
# message about USES=xorg not being set
.if defined(USE_XORG) && !empty(USE_XORG)
USES+= xorg
.include "${USESDIR}/xorg.mk"

View File

@ -177,7 +177,9 @@ USE_XORG+= fontutil
. endif # ${_XORG_CAT} == <category>
# We only need USES=xorg if we want USE_XORG modules
# We only need to include xorg.mk if we want USE_XORG modules
# USES+=xorg does not provide any functionality, it just silences an error
# message about USES=xorg not being set
. if defined(USE_XORG) && !empty(USE_XORG)
USES+= xorg
.include "${USESDIR}/xorg.mk"