diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2014-07-23 01:31:30 -0400 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2014-08-08 15:10:46 -0400 |
commit | 1dec09b341f61836147d87656aea7f7be02aab6d (patch) | |
tree | bda4c72a414edf94b91537eb2fe9c6da5c6942b8 /depends/packages/bdb.mk | |
parent | 36065cc529bb9be5655fcaaad2746edb7b6f4ddb (diff) |
depends: add shared dependency builder
See the README's in depends for documentation
Diffstat (limited to 'depends/packages/bdb.mk')
-rw-r--r-- | depends/packages/bdb.mk | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/depends/packages/bdb.mk b/depends/packages/bdb.mk new file mode 100644 index 0000000000..503409c5e5 --- /dev/null +++ b/depends/packages/bdb.mk @@ -0,0 +1,29 @@ +package=bdb +$(package)_version=4.8.30 +$(package)_download_path=http://download.oracle.com/berkeley-db +$(package)_file_name=db-$($(package)_version).NC.tar.gz +$(package)_sha256_hash=12edc0df75bf9abd7f82f821795bcee50f42cb2e5f76a6a281b85732798364ef +$(package)_build_subdir=build_unix + +define $(package)_set_vars +$(package)_config_opts=--disable-shared --enable-cxx +$(package)_config_opts_mingw32=--enable-mingw +$(package)_config_opts_x86_64_linux=--with-pic +$(package)_config_opts_arm_linux=--with-pic +endef + +define $(package)_preprocess_cmds + sed -i.old 's/__atomic_compare_exchange/__atomic_compare_exchange_db/' dbinc/atomic.h +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 |