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.1KB

12345678910111213141516171819202122232425262728293031
  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. cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub dist
  17. endef
  18. define $(package)_config_cmds
  19. ../dist/$($(package)_autoconf)
  20. endef
  21. define $(package)_build_cmds
  22. $(MAKE) libdb_cxx-4.8.a libdb-4.8.a
  23. endef
  24. define $(package)_stage_cmds
  25. $(MAKE) DESTDIR=$($(package)_staging_dir) install_lib install_include
  26. endef