2020-10-25 05:33:27 +01:00
|
|
|
# $NetBSD: Makefile,v 1.15 2020/10/25 04:33:27 nia Exp $
|
2017-09-26 19:38:22 +02:00
|
|
|
|
2020-09-09 09:06:56 +02:00
|
|
|
DISTNAME= blosc-1.20.1
|
2017-09-26 19:38:22 +02:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=Blosc/}
|
|
|
|
GITHUB_PROJECT= c-blosc
|
|
|
|
GITHUB_TAG= v${PKGVERSION_NOREV}
|
|
|
|
|
|
|
|
MAINTAINER= minskim@NetBSD.org
|
2020-01-25 17:54:23 +01:00
|
|
|
HOMEPAGE= https://blosc.org/
|
2017-09-26 19:38:22 +02:00
|
|
|
COMMENT= Blocking, shuffling, and lossless compression library
|
|
|
|
LICENSE= modified-bsd
|
|
|
|
|
|
|
|
USE_CMAKE= yes
|
2020-10-21 21:44:56 +02:00
|
|
|
# error: 'for' loop initial declarations are only allowed in C99 mode
|
|
|
|
USE_LANGUAGES= c99 c++
|
2019-06-14 17:12:40 +02:00
|
|
|
USE_TOOLS+= pkg-config
|
2019-08-28 12:29:37 +02:00
|
|
|
TEST_ENV+= LD_LIBRARY_PATH=${WRKSRC}/blosc
|
|
|
|
TEST_TARGET= test
|
2017-09-26 19:38:22 +02:00
|
|
|
|
|
|
|
CMAKE_ARGS+= -DPREFER_EXTERNAL_LZ4=ON
|
|
|
|
CMAKE_ARGS+= -DPREFER_EXTERNAL_SNAPPY=ON
|
|
|
|
CMAKE_ARGS+= -DPREFER_EXTERNAL_ZLIB=ON
|
|
|
|
CMAKE_ARGS+= -DPREFER_EXTERNAL_ZSTD=ON
|
|
|
|
|
2020-10-25 05:33:27 +01:00
|
|
|
# Needed to use posix_memalign, see tests/test_common.h
|
|
|
|
CFLAGS+= -D_POSIX_C_SOURCE=200112
|
|
|
|
|
2018-04-05 11:33:48 +02:00
|
|
|
CFLAGS.SunOS+= -D__EXTENSIONS__
|
|
|
|
|
2017-09-26 19:38:22 +02:00
|
|
|
PKGCONFIG_OVERRIDE+= blosc.pc.in
|
|
|
|
|
|
|
|
.include "../../archivers/lz4/buildlink3.mk"
|
|
|
|
.include "../../archivers/zstd/buildlink3.mk"
|
|
|
|
.include "../../devel/snappy/buildlink3.mk"
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|