PORTNAME= duckdb DISTVERSIONPREFIX= v DISTVERSION= 1.0.0 CATEGORIES= databases MAINTAINER= yuri@FreeBSD.org COMMENT= In-process SQL OLAP database management system WWW= https://duckdb.org/ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE USES= cmake:testing compiler:c++11-lang ssl USE_GITHUB= yes GH_TUPLE= duckdb:sqlite_scanner:50b7870:sqlite/extension/sqlite_scanner # the list of out-of-tree extensions is here: .github/config/out_of_tree_extensions.cmake CMAKE_ON= BUILD_SHARED_LIBS CMAKE_OFF= BUILD_UNITTESTS CMAKE_ARGS= -DOVERRIDE_GIT_DESCRIBE=v${DISTVERSION}-0-g0000000000 CMAKE_TESTING_ON= BUILD_UNITTESTS # 2 tests fail, see https://github.com/duckdb/duckdb/issues/11744 CMAKE_TESTING_TARGET= ${ALL_TARGET} # hack: works as empty target BINARY_ALIAS= git=false OPTIONS_DEFINE= TPCE OPTIONS_DEFAULT= TPCE OPTIONS_GROUP= EXTENSIONS OPTIONS_GROUP_EXTENSIONS= AUTOCOMPLETE FTS HTTPFS ICU INET JEMALLOC JSON PARQUET SQLSMITH TPCDS TPCH \ SQLITE_SCANNER EXTENSIONS_DESC= Extensions: .for opt in ${OPTIONS_GROUP_EXTENSIONS} . if "${${opt}_BROKEN}" == "" OPTIONS_DEFAULT+= ${opt} . endif ${opt}_DESC= Build the ${opt} extension DUCKDB_EXTENSIONS+= ;${opt:tl} ${opt}_PLIST_FILES= lib/lib${opt:tl}_extension.a .endfor CMAKE_ARGS+= -DBUILD_EXTENSIONS="${DUCKDB_EXTENSIONS:tW:S/ //g:S/^;//}" \ -DDUCKDB_MAJOR_VERSION=${PORTVERSION:R:R} \ -DDUCKDB_MINOR_VERSION=${PORTVERSION:R:E} \ -DDUCKDB_PATCH_VERSION=${PORTVERSION:E} SQLITE_SCANNER_CXXFLAGS= -I${WRKSRC}/extension/sqlite_scanner/src/include # workaround for the header not being found TPCE_DESC= Enable building of the TPC-E tool TPCE_CMAKE_BOOL= BUILD_TPCE post-test: # run tests @cd ${TEST_WRKSRC} && test/unittest .include