mirror of https://github.com/lukechilds/komodo.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.3 KiB
41 lines
1.3 KiB
package=bdb
|
|
$(package)_version=6.2.23
|
|
$(package)_download_path=http://download.oracle.com/berkeley-db
|
|
$(package)_file_name=db-$($(package)_version).tar.gz
|
|
$(package)_sha256_hash=47612c8991aa9ac2f6be721267c8d3cdccf5ac83105df8e50809daea24e95dc7
|
|
$(package)_build_subdir=build_unix
|
|
|
|
define $(package)_set_vars
|
|
$(package)_config_opts=--disable-shared --enable-cxx --disable-replication
|
|
$(package)_config_opts_mingw32=--enable-mingw
|
|
$(package)_config_opts_linux=--with-pic
|
|
$(package)_cxxflags=-std=c++11
|
|
endef
|
|
|
|
define $(package)_preprocess_cmds
|
|
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
|
|
endef
|
|
|
|
define $(package)_config_cmds
|
|
../dist/$($(package)_autoconf)
|
|
endef
|
|
|
|
|
|
ifeq ($(build_os),darwin)
|
|
define $(package)_preprocess_cmds
|
|
sed -i -e "s/WinIoCtl.h/winioctl.h/g" src/dbinc/win_db.h
|
|
endef
|
|
else ifeq ($(host_os),mingw32)
|
|
define $(package)_preprocess_cmds
|
|
sed -i "s/WinIoCtl.h/winioctl.h/g" src/dbinc/win_db.h
|
|
endef
|
|
endif
|
|
|
|
define $(package)_build_cmds
|
|
$(MAKE) libdb_cxx-6.2.a libdb-6.2.a
|
|
endef
|
|
|
|
define $(package)_stage_cmds
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install_lib install_include
|
|
endef
|
|
|