git: 5a53d73ecdba - main - archivers/pecl-zstd: Add pecl-zstd 0.13.3
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 04 Aug 2024 17:21:39 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5a53d73ecdbad4a28132c43641258090d86e23ec
commit 5a53d73ecdbad4a28132c43641258090d86e23ec
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-08-04 16:43:57 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-08-04 17:13:50 +0000
archivers/pecl-zstd: Add pecl-zstd 0.13.3
Zstd extension for PHP provides compression and decompression with Zstandard
library.
---
archivers/Makefile | 1 +
archivers/pecl-zstd/Makefile | 23 +++++++++++++++++++++++
archivers/pecl-zstd/distinfo | 3 +++
archivers/pecl-zstd/pkg-descr | 2 ++
4 files changed, 29 insertions(+)
diff --git a/archivers/Makefile b/archivers/Makefile
index 058dac53721e..1cceff5e3bd0 100644
--- a/archivers/Makefile
+++ b/archivers/Makefile
@@ -154,6 +154,7 @@
SUBDIR += peazip
SUBDIR += pecl-lzf
SUBDIR += pecl-rar
+ SUBDIR += pecl-zstd
SUBDIR += php-brotli
SUBDIR += php-horde_lz4
SUBDIR += php-lz4
diff --git a/archivers/pecl-zstd/Makefile b/archivers/pecl-zstd/Makefile
new file mode 100644
index 000000000000..bf62f5c31777
--- /dev/null
+++ b/archivers/pecl-zstd/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= zstd
+PORTVERSION= 0.13.3
+CATEGORIES= archivers
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Compression and decompression with Zstandard library
+WWW= https://pecl.php.net/package/zstd \
+ https://github.com/kjdev/php-ext-zstd
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= libzstd.so:archivers/zstd
+
+USES= php:pecl pkgconfig
+
+CONFIGURE_ARGS= --with-libzstd
+
+post-patch:
+# Clean up bundled libraries
+ @${RM} -r ${WRKSRC}/zstd/
+
+.include <bsd.port.mk>
diff --git a/archivers/pecl-zstd/distinfo b/archivers/pecl-zstd/distinfo
new file mode 100644
index 000000000000..7ed8a5559a82
--- /dev/null
+++ b/archivers/pecl-zstd/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1722711119
+SHA256 (PECL/zstd-0.13.3.tgz) = e4dfa6e5501736f2f5dbfedd33b214c0c47fa98708f0a7d8c65baa95fd6d7e06
+SIZE (PECL/zstd-0.13.3.tgz) = 452523
diff --git a/archivers/pecl-zstd/pkg-descr b/archivers/pecl-zstd/pkg-descr
new file mode 100644
index 000000000000..59f1ed72e9c5
--- /dev/null
+++ b/archivers/pecl-zstd/pkg-descr
@@ -0,0 +1,2 @@
+Zstd extension for PHP provides compression and decompression with Zstandard
+library.