2014-07-23 07:31:30 +02:00
|
|
|
package=bdb
|
2021-08-22 00:45:41 +02:00
|
|
|
$(package)_version=5.3.28
|
2014-07-23 07:31:30 +02:00
|
|
|
$(package)_download_path=http://download.oracle.com/berkeley-db
|
|
|
|
$(package)_file_name=db-$($(package)_version).NC.tar.gz
|
2021-08-22 00:45:41 +02:00
|
|
|
$(package)_sha256_hash=76a25560d9e52a198d37a31440fd07632b5f1f8f9f2b6d5438f4bc3e7c9013ef
|
2014-07-23 07:31:30 +02:00
|
|
|
$(package)_build_subdir=build_unix
|
|
|
|
|
|
|
|
define $(package)_set_vars
|
2014-10-02 19:39:32 +02:00
|
|
|
$(package)_config_opts=--disable-shared --enable-cxx --disable-replication
|
2014-07-23 07:31:30 +02:00
|
|
|
$(package)_config_opts_mingw32=--enable-mingw
|
2014-11-12 00:21:23 +01:00
|
|
|
$(package)_config_opts_linux=--with-pic
|
2016-04-21 22:23:40 +02:00
|
|
|
$(package)_cxxflags=-std=c++11
|
2014-07-23 07:31:30 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_preprocess_cmds
|
2015-06-25 00:08:12 +02:00
|
|
|
sed -i.old 's/__atomic_compare_exchange/__atomic_compare_exchange_db/' src/dbinc/atomic.h && \
|
|
|
|
sed -i.old 's/atomic_init/atomic_init_db/' src/dbinc/atomic.h src/mp/mp_region.c src/mp/mp_mvcc.c src/mp/mp_fget.c src/mutex/mut_method.c src/mutex/mut_tas.c && \
|
|
|
|
sed -i.old 's/WinIoCtl\.h/winioctl\.h/g' src/dbinc/win_db.h && \
|
2016-06-10 08:56:42 +02:00
|
|
|
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub dist
|
2014-07-23 07:31:30 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_config_cmds
|
|
|
|
../dist/$($(package)_autoconf)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
2021-08-22 00:45:41 +02:00
|
|
|
$(MAKE) libdb_cxx-5.3.a libdb-5.3.a
|
2014-07-23 07:31:30 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install_lib install_include
|
|
|
|
endef
|