View | Details | Raw Unified | Return to bug 247100 | Differences between
and this patch

Collapse All | Expand All

(-)b/archivers/zstd/Makefile (-11 / +20 lines)
Lines 2-9 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	zstd
4
PORTNAME=	zstd
5
PORTVERSION=	1.4.5
6
DISTVERSIONPREFIX=	v
5
DISTVERSIONPREFIX=	v
6
DISTVERSION=	1.4.5
7
PORTREVISION=	1
7
CATEGORIES=	archivers
8
CATEGORIES=	archivers
8
9
9
MAINTAINER=	sunpoet@FreeBSD.org
10
MAINTAINER=	sunpoet@FreeBSD.org
Lines 11-37 COMMENT= Fast real-time compression algorithm Link Here
11
12
12
LICENSE=	BSD3CLAUSE GPLv2
13
LICENSE=	BSD3CLAUSE GPLv2
13
LICENSE_COMB=	dual
14
LICENSE_COMB=	dual
14
LICENSE_FILE_BSD3CLAUSE=${WRKSRC}/LICENSE
15
LICENSE_FILE_BSD3CLAUSE=${WRKSRC}/../../LICENSE
15
LICENSE_FILE_GPLv2=	${WRKSRC}/COPYING
16
LICENSE_FILE_GPLv2=	${WRKSRC}/../../COPYING
16
17
17
OPTIONS_DEFINE=	LZ4
18
TEST_DEPENDS=	gmd5sum:sysutils/coreutils
19
20
USES=		meson pkgconfig python:3.4+,build shebangfix
21
22
SHEBANG_FILES=	GetZstdLibraryVersion.py \
23
		InstallSymlink.py \
24
25
OPTIONS_DEFINE=	LZ4 OPTIMIZED_CFLAGS TEST
18
OPTIONS_DEFAULT=LZ4
26
OPTIONS_DEFAULT=LZ4
19
27
20
USES=		gmake
28
MESON_ARGS=	-Ddefault_library=both
21
29
22
ALL_TARGET=	default
30
USE_GITHUB=	yes
23
TEST_TARGET=	test
31
GH_ACCOUNT=	facebook
24
USE_LDCONFIG=	yes
32
USE_LDCONFIG=	yes
25
33
34
WRKSRC_SUBDIR=	build/meson
35
26
PLIST_SUB=	PORTVERSION=${PORTVERSION}
36
PLIST_SUB=	PORTVERSION=${PORTVERSION}
27
37
28
GH_ACCOUNT=	facebook
38
OPTIMIZED_CFLAGS_VARS=	CFLAGS+=-O3
29
USE_GITHUB=	yes
30
39
31
LZ4_LIB_DEPENDS=	liblz4.so:archivers/liblz4
40
LZ4_LIB_DEPENDS=	liblz4.so:archivers/liblz4
32
LZ4_USES=		localbase:ldflags
41
LZ4_USES=		localbase:ldflags
42
LZ4_MESON_ENABLED=	lz4
33
43
34
post-patch:
44
TEST_MESON_TRUE=	bin_tests
35
	@${REINPLACE_CMD} -e 's|INSTALL_|BSD_&|' ${WRKSRC}/lib/Makefile ${WRKSRC}/programs/Makefile
36
45
37
.include <bsd.port.mk>
46
.include <bsd.port.mk>
(-)b/archivers/zstd/files/patch-tests_meson.build (+19 lines)
Added Link Here
1
--- tests/meson.build.orig	2020-06-08 14:30:42 UTC
2
+++ tests/meson.build
3
@@ -143,16 +143,6 @@ checkTag = executable('checkTag',
4
 # Tests (Use "meson test --list" to list all tests)
5
 # =============================================================================
6
 
7
-if tests_supported_oses.contains(host_machine_os)
8
-  valgrind_prog = find_program('valgrind', ['/usr/bin/valgrind'], required: true)
9
-  valgrindTest_py = files('valgrindTest.py')
10
-  test('valgrindTest',
11
-    valgrindTest_py,
12
-    args: [valgrind_prog.path(), zstd, datagen, fuzzer, fullbench],
13
-    depends: [zstd, datagen, fuzzer, fullbench],
14
-    timeout: 600) # Timeout should work on HDD drive
15
-endif
16
-
17
 if host_machine_os != os_windows
18
   playTests_sh = find_program(join_paths(zstd_rootdir, 'tests/playTests.sh'), required: true)
19
   test('test-zstd',
(-)b/archivers/zstd/pkg-plist (-1 / +2 lines)
Lines 1-5 Link Here
1
bin/unzstd
1
bin/unzstd
2
bin/zstd
2
bin/zstd
3
bin/zstd-frugal
3
bin/zstdcat
4
bin/zstdcat
4
bin/zstdgrep
5
bin/zstdgrep
5
bin/zstdless
6
bin/zstdless
Lines 18-20 man/man1/zstd.1.gz Link Here
18
man/man1/zstdcat.1.gz
19
man/man1/zstdcat.1.gz
19
man/man1/zstdgrep.1.gz
20
man/man1/zstdgrep.1.gz
20
man/man1/zstdless.1.gz
21
man/man1/zstdless.1.gz
21
- 
22
man/man1/zstdmt.1.gz

Return to bug 247100