2014-12-31 17:49:12 +01:00
|
|
|
package=bdb
|
|
|
|
$(package)_version=4.8.30
|
2019-05-22 13:39:26 +02:00
|
|
|
$(package)_download_path=https://download.oracle.com/berkeley-db
|
2014-12-31 17:49:12 +01:00
|
|
|
$(package)_file_name=db-$($(package)_version).NC.tar.gz
|
|
|
|
$(package)_sha256_hash=12edc0df75bf9abd7f82f821795bcee50f42cb2e5f76a6a281b85732798364ef
|
|
|
|
$(package)_build_subdir=build_unix
|
2021-09-01 19:47:04 +02:00
|
|
|
$(package)_patches=clang_cxx_11.patch
|
2014-12-31 17:49:12 +01:00
|
|
|
|
|
|
|
define $(package)_set_vars
|
2019-10-18 21:40:22 +02:00
|
|
|
$(package)_config_opts=--disable-shared --enable-cxx --disable-replication --enable-option-checking
|
2014-12-31 17:49:12 +01:00
|
|
|
$(package)_config_opts_mingw32=--enable-mingw
|
|
|
|
$(package)_config_opts_linux=--with-pic
|
2023-06-30 17:51:32 +02:00
|
|
|
$(package)_config_opts_freebsd=--with-pic
|
2022-02-14 21:16:56 +01:00
|
|
|
$(package)_config_opts_netbsd=--with-pic
|
2023-06-30 18:00:24 +02:00
|
|
|
$(package)_config_opts_openbsd=--with-pic
|
2020-12-04 15:11:27 +01:00
|
|
|
$(package)_config_opts_android=--with-pic
|
2022-08-02 12:52:13 +02:00
|
|
|
$(package)_cflags+=-Wno-error=implicit-function-declaration -Wno-error=format-security
|
2024-08-06 19:42:48 +02:00
|
|
|
$(package)_cxxflags+=-std=c++17
|
2022-11-28 14:27:30 +01:00
|
|
|
$(package)_cppflags_freebsd=-D_XOPEN_SOURCE=600
|
|
|
|
$(package)_cppflags_netbsd=-D_XOPEN_SOURCE=600
|
|
|
|
$(package)_cppflags_openbsd=-D_XOPEN_SOURCE=600
|
2019-01-03 23:41:58 +01:00
|
|
|
$(package)_cppflags_mingw32=-DUNICODE -D_UNICODE
|
2014-12-31 17:49:12 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_preprocess_cmds
|
2021-09-01 19:47:04 +02:00
|
|
|
patch -p1 < $($(package)_patch_dir)/clang_cxx_11.patch && \
|
2016-06-13 07:57:21 +02:00
|
|
|
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub dist
|
2014-12-31 17:49:12 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_config_cmds
|
|
|
|
../dist/$($(package)_autoconf)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
|
|
|
$(MAKE) libdb_cxx-4.8.a libdb-4.8.a
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install_lib install_include
|
|
|
|
endef
|