aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/Uses/desktop-file-utils.mk
diff options
context:
space:
mode:
authortijl <tijl@FreeBSD.org>2014-09-29 00:36:31 +0800
committertijl <tijl@FreeBSD.org>2014-09-29 00:36:31 +0800
commite7dc30958a42e788cc3320e65536192f3476ef87 (patch)
treeaeb03f1aa94222d62e9cdc28c4130adb5b0e5327 /Mk/Uses/desktop-file-utils.mk
parentccd08de0500ddc8e427dc1bbf85fc534336cc7f8 (diff)
downloadfreebsd-ports-gnome-e7dc30958a42e788cc3320e65536192f3476ef87.tar.gz
freebsd-ports-gnome-e7dc30958a42e788cc3320e65536192f3476ef87.tar.zst
freebsd-ports-gnome-e7dc30958a42e788cc3320e65536192f3476ef87.zip
Change the way USES is handled:
- Loop over USES twice, once to define all *_ARGS variables and once to include Uses/*.mk. This allows all Uses/*.mk to examine arguments given to other USES entries. - Always define *_ARGS (possibly empty) and replace commas with spaces. Similar for _USES_POST. Adjust all Uses/*.mk: - defined(u_ARGS) becomes !empty(u_ARGS) - Eliminate helper variables like _*_ARGS=${*_ARGS:C/,/ /g} - Some Uses/*.mk used ":" as argument separator instead of ",", but no port used this form - Uses/cran.mk: remove unused variable VALID_ARGS and USES+=fortran which has no effect - Uses/twisted.mk: simplify handling of the case where neither "build" nor "run" arguments have been specified PR: 193931 Exp-run by: antoine Approved by: portmgr (antoine)
Diffstat (limited to 'Mk/Uses/desktop-file-utils.mk')
-rw-r--r--Mk/Uses/desktop-file-utils.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/Uses/desktop-file-utils.mk b/Mk/Uses/desktop-file-utils.mk
index 95fe14af64b7..73b6ceb4e3dd 100644
--- a/Mk/Uses/desktop-file-utils.mk
+++ b/Mk/Uses/desktop-file-utils.mk
@@ -11,7 +11,7 @@
.if !defined(_INCLUDE_USES_DESKTOP_FILE_UTILS_MK)
_INCLUDE_USES_DESKTOP_FILE_UTILS_MK= yes
-.if defined(desktop-file-utils_ARGS)
+.if !empty(desktop-file-utils_ARGS)
IGNORE= USES=desktop-file-utils does not require args
.endif