mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-16 03:24:07 +00:00
Avoid fstat(/usr/bin/soeliminate) for every port when building INDEX.
Approved by: portmgr (implicit)
This commit is contained in:
parent
979361e277
commit
1d74731d38
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=462455
@ -108,11 +108,6 @@ XZ_CMD?= /usr/bin/xz ${XZ}
|
||||
|
||||
MD5?= /sbin/md5
|
||||
SHA256?= /sbin/sha256
|
||||
.if exists(/usr/bin/soeliminate)
|
||||
SOELIM?= /usr/bin/soeliminate
|
||||
.else
|
||||
SOELIM?= /usr/bin/soelim
|
||||
.endif
|
||||
|
||||
# ECHO is defined in /usr/share/mk/sys.mk, which can either be "echo",
|
||||
# or "true" if the make flag -s is given. Use ECHO_CMD where you mean
|
||||
@ -134,3 +129,11 @@ PKG_ADD?= ${PKG_BIN} add
|
||||
PKG_QUERY?= ${PKG_BIN} query
|
||||
|
||||
.endif
|
||||
|
||||
.if defined(OSVERSION)
|
||||
.if ${OSVERSION} < 1100000
|
||||
SOELIM?= /usr/bin/soeliminate
|
||||
.else
|
||||
SOELIM?= /usr/bin/soelim
|
||||
.endif
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user