summaryrefslogtreecommitdiffstats
path: root/src/db.mk
diff options
context:
space:
mode:
authormezzovide <reza.adrian@hanza.co.id>2015-08-19 19:18:24 (GMT)
committermezzovide <reza.adrian@hanza.co.id>2015-08-19 19:18:24 (GMT)
commit2b62a5ef3d1d9199b7e12dd6a69b233e1a205555 (patch)
treecd447322f779e4a766143c8cb10b4557d4e1d58e /src/db.mk
parent1513af4a88fa268d97364b3f29f8e4fb2e1d54c4 (diff)
downloadmxe-2b62a5ef3d1d9199b7e12dd6a69b233e1a205555.zip
mxe-2b62a5ef3d1d9199b7e12dd6a69b233e1a205555.tar.gz
mxe-2b62a5ef3d1d9199b7e12dd6a69b233e1a205555.tar.bz2
change berkeleydb to db
Diffstat (limited to 'src/db.mk')
-rw-r--r--src/db.mk28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/db.mk b/src/db.mk
new file mode 100644
index 0000000..10b249b
--- /dev/null
+++ b/src/db.mk
@@ -0,0 +1,28 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := db
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 4.8.30.NC
+$(PKG)_CHECKSUM := ff754f92ccfae2f9d3527d6d6ea43add5b852456
+$(PKG)_SUBDIR := db-$($(PKG)_VERSION)
+$(PKG)_FILE := db-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL := http://download.oracle.com/berkeley-db/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
+
+define $(PKG)_UPDATE
+ echo 'TODO: Updates for package db need to be fixed.' >&2;
+ echo $($(PKG)_VERSION)
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)/build_unix' && ../dist/configure \
+ $(MXE_CONFIGURE_OPTS) \
+ --enable-mingw \
+ --enable-cxx \
+ --disable-shared \
+ --disable-replication
+
+ $(MAKE) -C '$(1)/build_unix' -j '$(JOBS)'
+ $(MAKE) -C '$(1)/build_unix' -j 1 install $(MXE_DISABLE_DOCS)
+endef