# This file is part of MXE.
# See index.html for further information.
PKG := db
$(PKG)_IGNORE :=
$(PKG)_VERSION := 6.1.26
$(PKG)_CHECKSUM := 0986c3c60e2a7cfb5bfa25177ef7cadb2afb13a6
$(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
$(WGET) -q -O- 'http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html' | \
$(SED) -n 's,.*/db-\([0-9\.]\+\)\.tar.gz.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)/build_unix' && ../dist/configure \
$(MXE_CONFIGURE_OPTS) \
--enable-mingw \
--enable-cxx \
--enable-cryptography \
--disable-replication
$(MAKE) -C '$(1)/build_unix' -j '$(JOBS)'
$(MAKE) -C '$(1)/build_unix' -j 1 install $(MXE_DISABLE_DOCS)
endef