diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2020-08-19 16:26:38 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2020-08-19 16:26:38 +0000 |
commit | 479b8ebb02052ad919f65f0f3fa24517e111cd5b (patch) | |
tree | ef9da53328c70dcbec7eaf01b6e66546c84f945d /archivers/zstd/Makefile | |
parent | Document curl vulnerability (diff) |
Change build system from gmake to meson
- Use upstream release tarball
- Add OPTIMIZED_CFLAGS and TEST options
- Remove valgrind test
- Bump PORTREVISION for package change
PR: 247100
Submitted by: Daniel Engberg <daniel.engberg.lists@pyret.net>
Notes
Notes:
svn path=/head/; revision=545439
Diffstat (limited to 'archivers/zstd/Makefile')
-rw-r--r-- | archivers/zstd/Makefile | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/archivers/zstd/Makefile b/archivers/zstd/Makefile index da1e50f50a62..97213ddb8825 100644 --- a/archivers/zstd/Makefile +++ b/archivers/zstd/Makefile @@ -3,35 +3,37 @@ PORTNAME= zstd PORTVERSION= 1.4.5 -DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= archivers +MASTER_SITES= https://github.com/facebook/zstd/releases/download/v${PORTVERSION}/ MAINTAINER= sunpoet@FreeBSD.org 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 -OPTIONS_DEFINE= LZ4 -OPTIONS_DEFAULT=LZ4 +TEST_DEPENDS= gmd5sum:sysutils/coreutils -USES= gmake +USES= meson pkgconfig python:3.4+,build shebangfix -ALL_TARGET= default -TEST_TARGET= test +MESON_ARGS= -Ddefault_library=both USE_LDCONFIG= yes +WRKSRC_SUBDIR= build/meson + +SHEBANG_FILES= *.py PLIST_SUB= PORTVERSION=${PORTVERSION} -GH_ACCOUNT= facebook -USE_GITHUB= yes +OPTIONS_DEFINE= LZ4 OPTIMIZED_CFLAGS TEST +OPTIONS_DEFAULT=LZ4 LZ4_LIB_DEPENDS= liblz4.so:archivers/liblz4 +LZ4_MESON_ENABLED= lz4 LZ4_USES= localbase:ldflags - -post-patch: - @${REINPLACE_CMD} -e 's|INSTALL_|BSD_&|' ${WRKSRC}/lib/Makefile ${WRKSRC}/programs/Makefile +OPTIMIZED_CFLAGS_VARS= CFLAGS+=-O3 +TEST_MESON_TRUE= bin_tests .include <bsd.port.mk> |