Changeset View
Standalone View
archivers/c-blosc/Makefile
- This file was added.
# Created by: iblis <iblis@hs.ntnu.edu.tw> | |||||
# $FreeBSD$ | |||||
PORTNAME= c-blosc | |||||
PORTVERSION= 1.12.1 | |||||
DISTVERSIONPREFIX= v | |||||
CATEGORIES= archivers devel | |||||
MAINTAINER= iblis@hs.ntnu.edu.tw | |||||
COMMENT= Blocking, shuffling and loss-less compression library | |||||
LICENSE= BSD3CLAUSE | |||||
LICENSE_FILE= ${WRKSRC}/LICENSES/BLOSC.txt | |||||
USES= cmake compiler:c11 | |||||
USE_CSTD= c11 | |||||
USE_LDCONFIG= yes | |||||
USE_GITHUB= yes | |||||
GH_ACCOUNT= Blosc | |||||
mat: Default, remove. | |||||
TEST_TARGET= test | |||||
PLIST_SUB= VERSION="${PORTVERSION:R:R}" \ | |||||
SOVERSION="${PORTVERSION}" | |||||
CMAKE_ARGS= -DBUILD_SHARED=ON | |||||
OPTIONS_DEFINE= STATIC TEST AVX2 LZ4 SNAPPY ZLIB ZSTD | |||||
Not Done Inline ActionsUSE_STDC= c11 mat: USE_STDC= c11 | |||||
Not Done Inline ActionsOops, I get it wrong half the time: USE_CSTD= c11 mat: Oops, I get it wrong half the time:
USE_CSTD= c11 | |||||
Not Done Inline ActionsGot it, btw why doesn't compiler:c11 set this automagically? I can't see a good reason for requesting a standards and not also enforcing it as the USES does here. What am I missing? ultima: Got it, btw why doesn't compiler:c11 set this automagically? I can't see a good reason for… | |||||
Not Done Inline ActionsBecause they are not the same thing.
You can write C code using, say, the c99 syntax and using some c11 features, and you can write code that uses the c11 syntax and only uses basic features from the k&r times. mat: Because they are not the same thing.
* `compiler:c11` means I need a compiler that understands… | |||||
Not Done Inline ActionsThat makes sense, I am still learning C, understand the basics but don't know many of the libraries. Don't understand the difference in standards had thought the newer standards just added headers for new functions in the core language. Thanks for explanation. ultima: That makes sense, I am still learning C, understand the basics but don't know many of the… | |||||
OPTIONS_DEFAULT= STATIC LZ4 SNAPPY ZLIB ZSTD | |||||
OPTIONS_SUB= yes | |||||
AVX2_DESC= Attempt to build with AVX2 instructions | |||||
AVX2_CMAKE_BOOL_OFF= DEACTIVATE_AVX2 | |||||
Not Done Inline ActionsI think all of those could be simplified with doing: STATIC_CMAKE_BOOL= BUILD_STATIC mat: I think all of those could be simplified with doing:
STATIC_CMAKE_BOOL= BUILD_STATIC | |||||
Not Done Inline ActionsWill fix and verify. ultima: Will fix and verify. | |||||
Not Done Inline ActionsMost of them are backwards, on is off and off is on so that can't utilize the _bool option helper. ultima: Most of them are backwards, on is off and off is on so that can't utilize the _bool option… | |||||
Not Done Inline Actionsmat: [[ https://www.freebsd.org/doc/en/books/porters-handbook/makefile-options.html#options… | |||||
LZ4_CMAKE_ON= -DPREFER_EXTERNAL_LZ4=ON | |||||
LZ4_CMAKE_BOOL_OFF= DEACTIVATE_LZ4 | |||||
LZ4_LIB_DEPENDS= liblz4.so:archivers/liblz4 | |||||
SNAPPY_CMAKE_ON= -DPREFER_EXTERNAL_SNAPPY=ON | |||||
SNAPPY_CMAKE_BOOL_OFF= DEACTIVATE_SNAPPY | |||||
SNAPPY_LIB_DEPENDS= libsnappy.so:archivers/snappy | |||||
STATIC_CMAKE_BOOL= BUILD_STATIC | |||||
TEST_CMAKE_BOOL= BUILD_TESTS BUILD_BENCHMARKS | |||||
ZLIB_CMAKE_ON= -DPREFER_EXTERNAL_ZLIB=ON | |||||
ZLIB_CMAKE_BOOL_OFF= DEACTIVATE_ZLIB | |||||
ZSTD_CMAKE_ON= -DPREFER_EXTERNAL_ZSTD=ON | |||||
ZSTD_CMAKE_BOOL_OFF= DEACTIVATE_ZSTD | |||||
ZSTD_LIB_DEPENDS= libzstd.so:archivers/zstd | |||||
.include <bsd.port.mk> |
Default, remove.