1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# timescaledb 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunTIMESCALEDB_VERSION = 2.4.2 8*4882a593SmuzhiyunTIMESCALEDB_SITE = $(call github,timescale,timescaledb,$(TIMESCALEDB_VERSION)) 9*4882a593SmuzhiyunTIMESCALEDB_LICENSE = Apache-2.0 10*4882a593SmuzhiyunTIMESCALEDB_LICENSE_FILES = LICENSE 11*4882a593Smuzhiyun 12*4882a593SmuzhiyunTIMESCALEDB_DEPENDENCIES = postgresql 13*4882a593Smuzhiyun 14*4882a593Smuzhiyun# The PG_CPPFLAGS, PG_CFLAGS, PG_LDFLAGS and PG_LIBS variables must be 15*4882a593Smuzhiyun# non-empty, otherwise CMake will call the pg_config script, and our 16*4882a593Smuzhiyun# pg_config replacement doesn't implement --cppflags --cflags 17*4882a593Smuzhiyun# --ldflags and --libs. 18*4882a593SmuzhiyunTIMESCALEDB_CONF_OPTS = \ 19*4882a593Smuzhiyun -DTAP_CHECKS=OFF \ 20*4882a593Smuzhiyun -DREGRESS_CHECKS=OFF \ 21*4882a593Smuzhiyun -DWARNINGS_AS_ERRORS=OFF \ 22*4882a593Smuzhiyun -DPG_PKGLIBDIR=lib/postgresql \ 23*4882a593Smuzhiyun -DPG_SHAREDIR=share/postgresql \ 24*4882a593Smuzhiyun -DPG_BINDIR=bin \ 25*4882a593Smuzhiyun -DPG_CPPFLAGS="$(TARGET_CPPFLAGS) " \ 26*4882a593Smuzhiyun -DPG_CFLAGS="$(TARGET_CFLAGS) " \ 27*4882a593Smuzhiyun -DPG_LDFLAGS="$(TARGET_LDFLAGS) " \ 28*4882a593Smuzhiyun -DPG_LIBS=" " 29*4882a593Smuzhiyun 30*4882a593Smuzhiyun# There's no dependency on the OpenSSL package, because USE_OPENSSL 31*4882a593Smuzhiyun# only tells if postgresql was built with OpenSSL support or not. 32*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_OPENSSL),y) 33*4882a593SmuzhiyunTIMESCALEDB_CONF_OPTS += -DUSE_OPENSSL=1 34*4882a593Smuzhiyunelse 35*4882a593SmuzhiyunTIMESCALEDB_CONF_OPTS += -DUSE_OPENSSL=0 36*4882a593Smuzhiyunendif 37*4882a593Smuzhiyun 38*4882a593Smuzhiyun$(eval $(cmake-package)) 39