summaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2018-10-17 08:59:16 +0000
committerjperkin <jperkin@pkgsrc.org>2018-10-17 08:59:16 +0000
commit23e8711daeeb0351243f04a952626e717f0bf55f (patch)
tree78e1a101f26d1d098833589cc48e173b32323ce8 /archivers
parentd16d745a5d4bbbffdacd4159ab96ee2ef0d0c520 (diff)
downloadpkgsrc-23e8711daeeb0351243f04a952626e717f0bf55f.tar.gz
zstd: Fix build on SunOS. Requires GNU grep.
Diffstat (limited to 'archivers')
-rw-r--r--archivers/zstd/Makefile4
-rw-r--r--archivers/zstd/distinfo3
-rw-r--r--archivers/zstd/patches/patch-zlibWrapper_examples_minigzip.c12
3 files changed, 16 insertions, 3 deletions
diff --git a/archivers/zstd/Makefile b/archivers/zstd/Makefile
index 70923d42b64..e5675508c09 100644
--- a/archivers/zstd/Makefile
+++ b/archivers/zstd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2018/10/07 06:25:30 adam Exp $
+# $NetBSD: Makefile,v 1.19 2018/10/17 08:59:16 jperkin Exp $
DISTNAME= zstd-1.3.6
CATEGORIES= archivers
@@ -11,7 +11,7 @@ COMMENT= Fast real-time compression algorithm
LICENSE= modified-bsd OR gnu-gpl-v2
USE_LANGUAGES= c c++
-USE_TOOLS+= gmake pkg-config
+USE_TOOLS+= ggrep gmake pkg-config
PKGCONFIG_OVERRIDE+= lib/libzstd.pc.in
MAKE_FLAGS= MANDIR=${PREFIX}/${PKGMANDIR}
MAKE_FLAGS+= mandir=${PREFIX}/${PKGMANDIR}
diff --git a/archivers/zstd/distinfo b/archivers/zstd/distinfo
index 606d4f1d603..f3c4db815e8 100644
--- a/archivers/zstd/distinfo
+++ b/archivers/zstd/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.15 2018/10/07 06:25:30 adam Exp $
+$NetBSD: distinfo,v 1.16 2018/10/17 08:59:16 jperkin Exp $
SHA1 (zstd-1.3.6.tar.gz) = 9b58237274176910537815452a37eb9ab7ded408
RMD160 (zstd-1.3.6.tar.gz) = fcbbf826ef6061be1593b8b47389dba18dd580f9
@@ -6,3 +6,4 @@ SHA512 (zstd-1.3.6.tar.gz) = 2a0144cab77954f00a8e876747be9c8b9773cde7c22ad9bfea4
Size (zstd-1.3.6.tar.gz) = 1823482 bytes
SHA1 (patch-Makefile) = daf9d1946513ee24a4c4c187ec80878e9a578744
SHA1 (patch-lib_Makefile) = 7ab83f2ec7f0fe0c2dd2ad06984cf1cd7e182812
+SHA1 (patch-zlibWrapper_examples_minigzip.c) = 4ed0cb648bdd6efa61b3f66ba6eb1ea74b7767ec
diff --git a/archivers/zstd/patches/patch-zlibWrapper_examples_minigzip.c b/archivers/zstd/patches/patch-zlibWrapper_examples_minigzip.c
new file mode 100644
index 00000000000..9b34810c0bb
--- /dev/null
+++ b/archivers/zstd/patches/patch-zlibWrapper_examples_minigzip.c
@@ -0,0 +1,12 @@
+$NetBSD: patch-zlibWrapper_examples_minigzip.c,v 1.1 2018/10/17 08:59:16 jperkin Exp $
+
+Set _POSIX_SOURCE correctly.
+
+--- zlibWrapper/examples/minigzip.c.orig 2018-10-05 16:34:52.000000000 +0000
++++ zlibWrapper/examples/minigzip.c
+@@ -20,3 +20,5 @@
+
++#if !defined(__sun) || (__STDC_VERSION__-0 < 199901L)
+ #define _POSIX_SOURCE /* fileno */
++#endif
+