2020-10-05 12:19:51 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# timescaledb
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-12-30 08:55:09 +01:00
|
|
|
TIMESCALEDB_VERSION = 2.5.1
|
2020-10-05 12:19:51 +02:00
|
|
|
TIMESCALEDB_SITE = $(call github,timescale,timescaledb,$(TIMESCALEDB_VERSION))
|
|
|
|
TIMESCALEDB_LICENSE = Apache-2.0
|
|
|
|
TIMESCALEDB_LICENSE_FILES = LICENSE
|
|
|
|
|
|
|
|
TIMESCALEDB_DEPENDENCIES = postgresql
|
|
|
|
|
|
|
|
# The PG_CPPFLAGS, PG_CFLAGS, PG_LDFLAGS and PG_LIBS variables must be
|
|
|
|
# non-empty, otherwise CMake will call the pg_config script, and our
|
|
|
|
# pg_config replacement doesn't implement --cppflags --cflags
|
|
|
|
# --ldflags and --libs.
|
|
|
|
TIMESCALEDB_CONF_OPTS = \
|
2021-08-10 10:23:36 +02:00
|
|
|
-DTAP_CHECKS=OFF \
|
2020-10-05 12:19:51 +02:00
|
|
|
-DREGRESS_CHECKS=OFF \
|
2021-01-12 07:10:25 +01:00
|
|
|
-DWARNINGS_AS_ERRORS=OFF \
|
2020-10-05 12:19:51 +02:00
|
|
|
-DPG_PKGLIBDIR=lib/postgresql \
|
|
|
|
-DPG_SHAREDIR=share/postgresql \
|
|
|
|
-DPG_BINDIR=bin \
|
|
|
|
-DPG_CPPFLAGS="$(TARGET_CPPFLAGS) " \
|
|
|
|
-DPG_CFLAGS="$(TARGET_CFLAGS) " \
|
|
|
|
-DPG_LDFLAGS="$(TARGET_LDFLAGS) " \
|
|
|
|
-DPG_LIBS=" "
|
|
|
|
|
|
|
|
# There's no dependency on the OpenSSL package, because USE_OPENSSL
|
|
|
|
# only tells if postgresql was built with OpenSSL support or not.
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
TIMESCALEDB_CONF_OPTS += -DUSE_OPENSSL=1
|
|
|
|
else
|
|
|
|
TIMESCALEDB_CONF_OPTS += -DUSE_OPENSSL=0
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(cmake-package))
|