2022-06-21 04:40:39 +00:00
|
|
|
PORTNAME= duckdb
|
|
|
|
DISTVERSIONPREFIX= v
|
2024-11-08 14:58:13 +00:00
|
|
|
DISTVERSION= 1.1.3
|
2022-06-21 04:40:39 +00:00
|
|
|
CATEGORIES= databases
|
|
|
|
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
|
|
COMMENT= In-process SQL OLAP database management system
|
2024-11-08 14:58:13 +00:00
|
|
|
WWW= https://duckdb.org/ \
|
|
|
|
https://github.com/duckdb/duckdb
|
2022-06-21 04:40:39 +00:00
|
|
|
|
|
|
|
LICENSE= MIT
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
2022-09-20 23:22:06 +00:00
|
|
|
USES= cmake:testing compiler:c++11-lang ssl
|
2022-06-21 04:40:39 +00:00
|
|
|
USE_GITHUB= yes
|
2024-11-08 14:58:13 +00:00
|
|
|
GH_TUPLE= duckdb:duckdb_inet:51d7ad789f34eecb36a2071bac5aef0e12747d70:inet/extension/inet \
|
|
|
|
duckdb:duckdb_spatial:7ea79b614755d2bdee4be468691e4e17b39b8dbc:spatial/extension/spatial \
|
2024-10-15 02:35:44 +00:00
|
|
|
duckdb:sqlite_scanner:d5d62657702d33cb44a46cddc7ffc4b67bf7e961:sqlite/extension/sqlite_scanner \
|
|
|
|
duckdb:duckdb_sqlsmith:d6d62c1cba6b1369ba79db4bff3c67f24aaa95c2:sqlsmith/extension/sqlsmith \
|
2024-11-08 14:58:13 +00:00
|
|
|
duckdb:duckdb_vss:96374099476b3427c9ab43c1821e610b0465c864:vss/extension/vss
|
2024-05-23 15:57:15 +00:00
|
|
|
# the list of out-of-tree extensions is here: .github/config/out_of_tree_extensions.cmake
|
2022-06-21 04:40:39 +00:00
|
|
|
|
2024-09-16 14:55:58 +00:00
|
|
|
CXXFLAGS+= -I${WRKSRC}/extension/inet/src/include \
|
|
|
|
-I${WRKSRC}/extension/sqlsmith/src/include # https://github.com/duckdb/duckdb/issues/13971
|
2022-06-21 04:40:39 +00:00
|
|
|
CMAKE_ON= BUILD_SHARED_LIBS
|
|
|
|
CMAKE_OFF= BUILD_UNITTESTS
|
2024-04-19 18:24:19 +00:00
|
|
|
CMAKE_ARGS= -DOVERRIDE_GIT_DESCRIBE=v${DISTVERSION}-0-g0000000000
|
2024-09-16 14:55:58 +00:00
|
|
|
CMAKE_TESTING_ON= BUILD_UNITTESTS # 1 test fails, Signal 11 during tests, see https://github.com/duckdb/duckdb/issues/13972
|
2022-06-21 04:40:39 +00:00
|
|
|
CMAKE_TESTING_TARGET= ${ALL_TARGET} # hack: works as empty target
|
|
|
|
|
|
|
|
BINARY_ALIAS= git=false
|
|
|
|
|
2022-11-16 07:11:20 +00:00
|
|
|
OPTIONS_DEFINE= TPCE
|
|
|
|
OPTIONS_DEFAULT= TPCE
|
2022-06-21 04:40:39 +00:00
|
|
|
OPTIONS_GROUP= EXTENSIONS
|
2024-10-15 00:04:55 +00:00
|
|
|
OPTIONS_GROUP_EXTENSIONS= AUTOCOMPLETE FTS HTTPFS ICU INET JSON PARQUET SQLSMITH TPCDS TPCH \
|
2024-10-15 02:35:44 +00:00
|
|
|
SQLITE_SCANNER VSS
|
2022-06-21 04:40:39 +00:00
|
|
|
|
|
|
|
EXTENSIONS_DESC= Extensions:
|
|
|
|
|
|
|
|
.for opt in ${OPTIONS_GROUP_EXTENSIONS}
|
|
|
|
. if "${${opt}_BROKEN}" == ""
|
|
|
|
OPTIONS_DEFAULT+= ${opt}
|
2022-06-21 07:06:25 +00:00
|
|
|
. endif
|
|
|
|
${opt}_DESC= Build the ${opt} extension
|
2024-10-15 00:04:55 +00:00
|
|
|
DUCKDB_EXTENSIONS+= ${PORT_OPTIONS:M${opt}:S/${opt}/;${opt:tl}/}
|
|
|
|
${opt}_PLIST_FILES= ${PORT_OPTIONS:M${opt}:S/${opt}/lib\/lib${opt:tl}_extension.a/}
|
2022-06-21 04:40:39 +00:00
|
|
|
.endfor
|
|
|
|
|
2024-04-19 18:24:19 +00:00
|
|
|
CMAKE_ARGS+= -DBUILD_EXTENSIONS="${DUCKDB_EXTENSIONS:tW:S/ //g:S/^;//}" \
|
2023-11-16 06:37:35 +00:00
|
|
|
-DDUCKDB_MAJOR_VERSION=${PORTVERSION:R:R} \
|
|
|
|
-DDUCKDB_MINOR_VERSION=${PORTVERSION:R:E} \
|
|
|
|
-DDUCKDB_PATCH_VERSION=${PORTVERSION:E}
|
2024-10-15 00:04:55 +00:00
|
|
|
CMAKE_ARGS+= -DSKIP_EXTENSIONS=jemalloc # temporary? see https://github.com/duckdb/duckdb/issues/14363#issuecomment-2412095766
|
2023-11-16 06:37:35 +00:00
|
|
|
|
|
|
|
SQLITE_SCANNER_CXXFLAGS= -I${WRKSRC}/extension/sqlite_scanner/src/include # workaround for the header not being found
|
2023-11-16 02:27:00 +00:00
|
|
|
|
2022-11-16 07:11:20 +00:00
|
|
|
TPCE_DESC= Enable building of the TPC-E tool
|
|
|
|
TPCE_CMAKE_BOOL= BUILD_TPCE
|
|
|
|
|
2024-10-15 02:35:44 +00:00
|
|
|
VSS_CXXFLAGS= -I${WRKSRC}/extension/vss/src/include # workaround for the header not being found
|
|
|
|
|
2024-10-15 00:04:55 +00:00
|
|
|
post-extract: # remove the jemalloc extension directory just in case
|
|
|
|
@${RM} -r ${WRKSRC}/extension/jemalloc
|
|
|
|
|
2022-06-21 04:40:39 +00:00
|
|
|
post-test: # run tests
|
|
|
|
@cd ${TEST_WRKSRC} && test/unittest
|
|
|
|
|
2024-11-08 14:58:13 +00:00
|
|
|
# tests as of 1.1.3: All tests passed (53 skipped tests, 458453 assertions in 3305 test cases)
|
2024-10-15 02:35:44 +00:00
|
|
|
|
2022-06-21 04:40:39 +00:00
|
|
|
.include <bsd.port.mk>
|