summaryrefslogtreecommitdiff
path: root/archivers/zstd/Makefile
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2022-08-27 18:23:30 +0800
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2022-08-27 18:23:30 +0800
commit538a001f90bbf14b5bdaa556119925699adb1849 (patch)
treecd622d911ae8ffa84c1f398c0c9a9348a20e4804 /archivers/zstd/Makefile
parentprint/py-pypdf: Move print/py-pdf to print/py-pypdf (diff)
archivers/zstd: Change build system from meson to gmake
- Use BINARY_ALIAS and remove TEST_DEPENDS: md5sum from base system works fine - Remove TEST option - Bump PORTREVISION for package change from README.md [1]: make is the officially maintained build system of this project. All other build systems are "compatible" and 3rd-party maintained, they may feature small differences in advanced options. When your system allows it, prefer using make to build zstd and libzstd. Reference: https://github.com/facebook/zstd/blob/dev/README.md#build-instructions [1]
Diffstat (limited to 'archivers/zstd/Makefile')
-rw-r--r--archivers/zstd/Makefile31
1 files changed, 16 insertions, 15 deletions
diff --git a/archivers/zstd/Makefile b/archivers/zstd/Makefile
index 49255dbd1187..ed8af4b8bddf 100644
--- a/archivers/zstd/Makefile
+++ b/archivers/zstd/Makefile
@@ -1,5 +1,6 @@
PORTNAME= zstd
PORTVERSION= 1.5.2
+PORTREVISION= 1
CATEGORIES= archivers
MASTER_SITES= https://github.com/facebook/zstd/releases/download/v${PORTVERSION}/
@@ -8,29 +9,29 @@ COMMENT= Fast real-time compression algorithm
LICENSE= BSD3CLAUSE GPLv2
LICENSE_COMB= dual
-LICENSE_FILE_BSD3CLAUSE=${WRKSRC}/../../LICENSE
-LICENSE_FILE_GPLv2= ${WRKSRC}/../../COPYING
+LICENSE_FILE_BSD3CLAUSE=${WRKSRC}/LICENSE
+LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING
-TEST_DEPENDS= gmd5sum:sysutils/coreutils
+LIB_DEPENDS= liblz4.so:archivers/liblz4
-USES= meson pkgconfig python:3.7+,build shebangfix tar:zst
+USES= gmake localbase:ldflags tar:zst
-MESON_ARGS= -Ddefault_library=both
+ALL_TARGET= default
+BINARY_ALIAS= gmd5sum=md5sum
+TEST_TARGET= test
USE_LDCONFIG= yes
-WRKSRC_SUBDIR= build/meson
PLIST_SUB= PORTVERSION=${PORTVERSION}
-SHEBANG_FILES= *.py
+OPTIONS_DEFINE= OPTIMIZED_CFLAGS
-OPTIONS_DEFINE= LTO LZ4 OPTIMIZED_CFLAGS TEST
-OPTIONS_DEFAULT=LZ4
-
-LTO_MESON_TRUE= b_lto
-LZ4_LIB_DEPENDS= liblz4.so:archivers/liblz4
-LZ4_MESON_ENABLED= lz4
-LZ4_USES= localbase:ldflags
OPTIMIZED_CFLAGS_VARS= CFLAGS+=-O3
-TEST_MESON_TRUE= bin_tests
+
+post-build:
+ cd ${WRKSRC}/programs && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} zstd-frugal
+
+post-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/programs/zstd-frugal ${STAGEDIR}${PREFIX}/bin/zstd-frugal
+ ${LN} -s zstd.1.gz ${STAGEDIR}${PREFIX}/man/man1/zstdmt.1.gz
.include <bsd.port.mk>