summaryrefslogtreecommitdiff
path: root/archivers/zstd
diff options
context:
space:
mode:
authornros <nros@pkgsrc.org>2021-03-31 13:26:06 +0000
committernros <nros@pkgsrc.org>2021-03-31 13:26:06 +0000
commit585735575bbf370e53b83300934e6408dca18b98 (patch)
tree87da5b0d9e189710e36ea8b107ee12093df264ff /archivers/zstd
parent280fd490daa1bddb243d290933889e5c25208365 (diff)
downloadpkgsrc-585735575bbf370e53b83300934e6408dca18b98.tar.gz
zstd: get rid of coreutils dependency
Set BUILD_DIR, with this HASH is unused and there is no need to depend on coreutils to get gmd5sum. Eases dependency load on all platforms.
Diffstat (limited to 'archivers/zstd')
-rw-r--r--archivers/zstd/Makefile20
1 files changed, 9 insertions, 11 deletions
diff --git a/archivers/zstd/Makefile b/archivers/zstd/Makefile
index e0b2d57baf7..8ac88fe7461 100644
--- a/archivers/zstd/Makefile
+++ b/archivers/zstd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.38 2021/02/27 16:40:59 wiz Exp $
+# $NetBSD: Makefile,v 1.39 2021/03/31 13:26:06 nros Exp $
DISTNAME= zstd-1.4.8
CATEGORIES= archivers
@@ -24,16 +24,14 @@ MAKE_JOBS_SAFE= no
.include "../../mk/bsd.prefs.mk"
-# see HASH in lib/Makefile
-.if ${OPSYS} == "NetBSD"
-# https://github.com/facebook/zstd/pull/2492
-MAKE_ENV+= HASH="md5 -n"
-.elif ${OPSYS} != "Linux" && \
- ${OPSYS} != "Darwin" && \
- ${OPSYS} != "OpenBSD"
-TOOL_DEPENDS+= coreutils>=0:../../sysutils/coreutils
-MAKE_ENV+= HASH=gmd5sum
-.endif
+# See HASH and BUILD_DIR in lib/Makefile and programs/Makefile.
+# Set BUILD_DIR so that HASH is not needed and there is no
+# need for coreutils as a dependency.
+# HASH is set to false because programs/Makefile try to
+# execute HASH in order to see if it exists but the result
+# is unused when BUILD_DIR is set.
+MAKE_ENV+= BUILD_DIR=obj
+MAKE_ENV+= HASH=${FALSE}
USE_LANGUAGES= c c++
USE_TOOLS+= ggrep gmake pkg-config