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.

bdb.mk 1.0KB

123456789101112131415161718192021222324252627282930
  1. package=bdb
  2. $(package)_version=4.8.30
  3. $(package)_download_path=http://download.oracle.com/berkeley-db
  4. $(package)_file_name=db-$($(package)_version).NC.tar.gz
  5. $(package)_sha256_hash=12edc0df75bf9abd7f82f821795bcee50f42cb2e5f76a6a281b85732798364ef
  6. $(package)_build_subdir=build_unix
  7. define $(package)_set_vars
  8. $(package)_config_opts=--disable-shared --enable-cxx --disable-replication
  9. $(package)_config_opts_mingw32=--enable-mingw
  10. $(package)_config_opts_linux=--with-pic
  11. $(package)_cxxflags=-std=c++11
  12. endef
  13. define $(package)_preprocess_cmds
  14. sed -i.old 's/__atomic_compare_exchange/__atomic_compare_exchange_db/' dbinc/atomic.h && \
  15. sed -i.old 's/atomic_init/atomic_init_db/' dbinc/atomic.h mp/mp_region.c mp/mp_mvcc.c mp/mp_fget.c mutex/mut_method.c mutex/mut_tas.c
  16. endef
  17. define $(package)_config_cmds
  18. ../dist/$($(package)_autoconf)
  19. endef
  20. define $(package)_build_cmds
  21. $(MAKE) libdb_cxx-4.8.a libdb-4.8.a
  22. endef
  23. define $(package)_stage_cmds
  24. $(MAKE) DESTDIR=$($(package)_staging_dir) install_lib install_include
  25. endef