freebsd-ports/archivers/zstd/Makefile
Sunpoet Po-Chuan Hsieh 479b8ebb02 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>
2020-08-19 16:26:38 +00:00

40 lines
913 B
Makefile

# Created by: John Marino <marino@FreeBSD.org>
# $FreeBSD$
PORTNAME= zstd
PORTVERSION= 1.4.5
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
TEST_DEPENDS= gmd5sum:sysutils/coreutils
USES= meson pkgconfig python:3.4+,build shebangfix
MESON_ARGS= -Ddefault_library=both
USE_LDCONFIG= yes
WRKSRC_SUBDIR= build/meson
SHEBANG_FILES= *.py
PLIST_SUB= PORTVERSION=${PORTVERSION}
OPTIONS_DEFINE= LZ4 OPTIMIZED_CFLAGS TEST
OPTIONS_DEFAULT=LZ4
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
.include <bsd.port.mk>