Lines 3-37
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= zstd |
4 |
PORTNAME= zstd |
5 |
PORTVERSION= 1.4.5 |
5 |
PORTVERSION= 1.4.5 |
6 |
DISTVERSIONPREFIX= v |
6 |
PORTREVISION= 1 |
7 |
CATEGORIES= archivers |
7 |
CATEGORIES= archivers |
|
|
8 |
MASTER_SITES= https://github.com/facebook/zstd/releases/download/v${DISTVERSION}/ |
8 |
|
9 |
|
9 |
MAINTAINER= sunpoet@FreeBSD.org |
10 |
MAINTAINER= sunpoet@FreeBSD.org |
10 |
COMMENT= Fast real-time compression algorithm |
11 |
COMMENT= Fast real-time compression algorithm |
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 |
|
|
23 |
TEST_TARGET= test |
24 |
USE_LDCONFIG= yes |
30 |
USE_LDCONFIG= yes |
25 |
|
31 |
|
|
|
32 |
WRKSRC_SUBDIR= build/meson |
33 |
|
26 |
PLIST_SUB= PORTVERSION=${PORTVERSION} |
34 |
PLIST_SUB= PORTVERSION=${PORTVERSION} |
27 |
|
35 |
|
28 |
GH_ACCOUNT= facebook |
36 |
OPTIMIZED_CFLAGS_VARS= CFLAGS+=-O3 |
29 |
USE_GITHUB= yes |
|
|
30 |
|
37 |
|
31 |
LZ4_LIB_DEPENDS= liblz4.so:archivers/liblz4 |
38 |
LZ4_LIB_DEPENDS= liblz4.so:archivers/liblz4 |
32 |
LZ4_USES= localbase:ldflags |
39 |
LZ4_USES= localbase:ldflags |
|
|
40 |
LZ4_MESON_ENABLED= lz4 |
33 |
|
41 |
|
34 |
post-patch: |
42 |
TEST_MESON_TRUE= bin_tests |
35 |
@${REINPLACE_CMD} -e 's|INSTALL_|BSD_&|' ${WRKSRC}/lib/Makefile ${WRKSRC}/programs/Makefile |
|
|
36 |
|
43 |
|
37 |
.include <bsd.port.mk> |
44 |
.include <bsd.port.mk> |