pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/archivers/zstd zstd: get rid of coreutils dependency
details: https://anonhg.NetBSD.org/pkgsrc/rev/29883dadca14
branches: trunk
changeset: 449487:29883dadca14
user: nros <nros%pkgsrc.org@localhost>
date: Wed Mar 31 13:26:06 2021 +0000
description:
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:
archivers/zstd/Makefile | 20 +++++++++-----------
1 files changed, 9 insertions(+), 11 deletions(-)
diffs (34 lines):
diff -r 6d7dec1237fa -r 29883dadca14 archivers/zstd/Makefile
--- a/archivers/zstd/Makefile Wed Mar 31 12:31:33 2021 +0000
+++ b/archivers/zstd/Makefile Wed Mar 31 13:26:06 2021 +0000
@@ -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 @@
.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
Home |
Main Index |
Thread Index |
Old Index