127feae876
v1.5.2 (Jan, 2022) perf: Regain Minimal memset()-ing During Reuse of Compression Contexts (@Cyan4973, #2969) build: Build Zstd with `noexecstack` on All Architectures (@felixhandte, #2964) doc: Clarify Licensing (@terrelln, #2981)
52 lines
1.6 KiB
Makefile
52 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.45 2022/01/23 22:04:33 wiz Exp $
|
|
|
|
DISTNAME= zstd-1.5.2
|
|
CATEGORIES= archivers
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=facebook/}
|
|
GITHUB_TAG= v${PKGVERSION_NOREV}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://facebook.github.io/zstd/
|
|
COMMENT= Fast real-time compression algorithm
|
|
LICENSE= modified-bsd OR gnu-gpl-v2
|
|
|
|
CHECK_PORTABILITY_SKIP+= tests/playTests.sh
|
|
|
|
# 1.4.8
|
|
# ld: ../lib/libzstd.a: error adding symbols: no more archived files
|
|
# ld:../lib/libzstd.a: file format not recognized; treating as linker script
|
|
# ld:../lib/libzstd.a:1: syntax error
|
|
# or
|
|
# ld: ../lib/libzstd.a: error adding symbols: file format not recognized
|
|
# reported as
|
|
# https://github.com/facebook/zstd/issues/2453
|
|
#MAKE_JOBS_SAFE= no
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
# See HASH and BUILD_DIR in lib/Makefile and programs/Makefile.
|
|
# Set BUILD_DIR so that HASH is not needed and there is no
|
|
# need for coreutils as a dependency.
|
|
# HASH is set to false because programs/Makefile try to
|
|
# execute HASH in order to see if it exists but the result
|
|
# is unused when BUILD_DIR is set.
|
|
MAKE_ENV+= BUILD_DIR=obj
|
|
MAKE_ENV+= HASH=${FALSE}
|
|
|
|
USE_LANGUAGES= c c++
|
|
USE_TOOLS+= ggrep gmake pkg-config
|
|
PKGCONFIG_OVERRIDE+= lib/libzstd.pc.in
|
|
MAKE_FLAGS= MANDIR=${PREFIX}/${PKGMANDIR}
|
|
MAKE_FLAGS+= mandir=${PREFIX}/${PKGMANDIR}
|
|
MAKE_FLAGS+= INSTALL=${INSTALL:Q}
|
|
|
|
BUILD_TARGET= allmost
|
|
TEST_TARGET= test
|
|
|
|
# Needed for nanosleep() on Solaris 10, PR pkg/56225
|
|
LDFLAGS.SunOS+= -lrt
|
|
|
|
.include "../../archivers/lz4/buildlink3.mk"
|
|
.include "../../archivers/xz/buildlink3.mk"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|