summaryrefslogtreecommitdiff
path: root/Mk/Uses/lha.mk
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2014-09-28 16:36:31 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2014-09-28 16:36:31 +0000
commitfe837ee6c691d6b779351981a17ce6cacf012498 (patch)
treeaeb03f1aa94222d62e9cdc28c4130adb5b0e5327 /Mk/Uses/lha.mk
parentUpdate to 0.10.18. (diff)
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)
Notes
Notes: svn path=/head/; revision=369465
Diffstat (limited to 'Mk/Uses/lha.mk')
-rw-r--r--Mk/Uses/lha.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/Uses/lha.mk b/Mk/Uses/lha.mk
index 452896f754d8..cca76bc4a365 100644
--- a/Mk/Uses/lha.mk
+++ b/Mk/Uses/lha.mk
@@ -10,7 +10,7 @@ _INCLUDE_USES_LHA_MK= yes
EXTRACT_SUFX?= .lzh
-.if defined(lha_ARGS)
+.if !empty(lha_ARGS)
IGNORE= Incorrect 'USES+=lha:${lha_ARGS}' expecting 'USES+=lha'
.endif