Add DEV_WARNING when misusing USES=mate/USES=gnome.

Differential Revision:	https://reviews.freebsd.org/D16828
This commit is contained in:
Mathieu Arnold 2018-08-28 12:19:06 +00:00
parent dbbadf1a9b
commit 10f4bcf2b6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=478304

View File

@ -1416,11 +1416,13 @@ USES+= apache:${USE_APACHE:C/2([0-9])/2.\1/g}
.include "${PORTSDIR}/Mk/bsd.gecko.mk"
.endif
.if defined(USE_GNOME) || defined(INSTALLS_ICONS)
.if (defined(USE_GNOME) || defined(INSTALLS_ICONS)) && empty(USES:Mgnome)
DEV_WARNING+= "Using USE_GNOME alone is deprecated, please add USES=gnome."
USES+= gnome
.endif
.if defined(USE_MATE)
.if defined(USE_MATE) && empty(USES:Mmate)
DEV_WARNING+= "Using USE_MATE alone is deprecated, please add USES=mate."
USES+= mate
.endif