summaryrefslogtreecommitdiff
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2002-04-02 05:24:33 +0000
committerKris Kennaway <kris@FreeBSD.org>2002-04-02 05:24:33 +0000
commit59ac30e126d6a46d3836998f17a6d6446a4cc2c7 (patch)
tree48c94f2f373361301446e17982a0ff9272603338 /Mk/bsd.port.mk
parentssh_askpass2 is built only when X11 is installed. Support (diff)
Fix a fetch bug in MASTER_SITES_NN introduced in rev 1.396.
Submitted by: lioux PR: ports/36078 (part of)
Notes
Notes: svn path=/head/; revision=57180
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r--Mk/bsd.port.mk12
1 files changed, 6 insertions, 6 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 098f784668d8..35e282603b47 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1360,22 +1360,22 @@ _PATCH_SITE_SUBDIR_DEFAULT+= ${_S:C@^(.*)/:[^/:]+$@\1@}
# XXX simpler/faster solution but not the best space wise, suggestions please
.for _S in ${MASTER_SITES}
_S_TEMP= ${_S:S/^${_S:C@/:[^/:]+$@/@}//:S/^://}
-MASTER_SITES_TMP=
. if !empty(_S_TEMP)
. for _group in ${_S_TEMP:S/,/ /g}
. if defined(_MASTER_SITE_SUBDIR_${_group})
+MASTER_SITES_TMP=
. for dir in ${_MASTER_SITE_SUBDIR_${_group}}
MASTER_SITES_TMP+= ${_MASTER_SITES_${_group}:S^%SUBDIR%^${dir}^}
. endfor
. else
-MASTER_SITES_TMP+= ${_MASTER_SITES_${_group}:S^%SUBDIR%/^^}
+MASTER_SITES_TMP= ${_MASTER_SITES_${_group}:S^%SUBDIR%/^^}
. endif
_MASTER_SITES_${_group}:= ${MASTER_SITES_TMP}
. endfor
. endif
.endfor
-MASTER_SITES_TMP=
.if defined(_MASTER_SITE_SUBDIR_DEFAULT)
+MASTER_SITES_TMP=
. for dir in ${_MASTER_SITE_SUBDIR_DEFAULT}
MASTER_SITES_TMP+= ${_MASTER_SITES_DEFAULT:S^%SUBDIR%^${dir}^}
. endfor
@@ -1386,22 +1386,22 @@ _MASTER_SITES_DEFAULT:= ${MASTER_SITES_TMP}
MASTER_SITES_TMP=
.for _S in ${PATCH_SITES}
_S_TEMP= ${_S:S/^${_S:C@/:[^/:]+$@/@}//:S/^://}
-PATCH_SITES_TMP=
. if !empty(_S_TEMP)
. for _group in ${_S_TEMP:S/,/ /g}
. if defined(_PATCH_SITE_SUBDIR_${_group})
+PATCH_SITES_TMP=
. for dir in ${_PATCH_SITE_SUBDIR_${_group}}
PATCH_SITES_TMP+= ${_PATCH_SITES_${_group}:S^%SUBDIR%^${dir}^}
. endfor
. else
-PATCH_SITES_TMP+= ${_PATCH_SITES_${_group}:S^%SUBDIR%/^^}
+PATCH_SITES_TMP= ${_PATCH_SITES_${_group}:S^%SUBDIR%/^^}
. endif
_PATCH_SITES_${_group}:= ${PATCH_SITES_TMP}
. endfor
. endif
.endfor
-PATCH_SITES_TMP=
.if defined(_PATCH_SITE_SUBDIR_DEFAULT)
+PATCH_SITES_TMP=
. for dir in ${_PATCH_SITE_SUBDIR_DEFAULT}
PATCH_SITES_TMP+= ${_PATCH_SITES_DEFAULT:S^%SUBDIR%^${dir}^}
. endfor