aboutsummaryrefslogtreecommitdiff
path: root/depends/packages/bdb.mk
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2014-07-23 01:31:30 -0400
committerCory Fields <cory-nospam-@coryfields.com>2014-08-08 15:10:46 -0400
commit1dec09b341f61836147d87656aea7f7be02aab6d (patch)
treebda4c72a414edf94b91537eb2fe9c6da5c6942b8 /depends/packages/bdb.mk
parent36065cc529bb9be5655fcaaad2746edb7b6f4ddb (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.mk29
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