mxe/src/db.mk

31 lines
1.1 KiB
Makefile
Raw Permalink Normal View History

# This file is part of MXE. See LICENSE.md for licensing information.
2015-08-19 18:32:39 +01:00
2015-08-19 20:18:24 +01:00
PKG := db
2017-03-05 03:41:39 +00:00
$(PKG)_WEBSITE := https://www.oracle.com/technetwork/database/database-technologies/berkeleydb/overview/index.html
$(PKG)_DESCR := Oracle Berkeley DB
2015-08-19 18:32:39 +01:00
$(PKG)_IGNORE :=
2015-09-02 18:19:14 +01:00
$(PKG)_VERSION := 6.1.26
$(PKG)_CHECKSUM := dd1417af5443f326ee3998e40986c3c60e2a7cfb5bfa25177ef7cadb2afb13a6
2015-08-19 18:32:39 +01:00
$(PKG)_SUBDIR := db-$($(PKG)_VERSION)
$(PKG)_FILE := db-$($(PKG)_VERSION).tar.gz
2018-11-19 21:25:29 +00:00
$(PKG)_URL := https://download.oracle.com/berkeley-db/$($(PKG)_FILE)
$(PKG)_DEPS := cc
2015-08-19 18:32:39 +01:00
define $(PKG)_UPDATE
2017-03-05 03:41:39 +00:00
$(WGET) -q -O- 'https://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html' | \
2015-09-02 09:09:48 +01:00
$(SED) -n 's,.*/db-\([0-9\.]\+\)\.tar.gz.*,\1,p' | \
head -1
2015-08-19 18:32:39 +01:00
endef
define $(PKG)_BUILD
cd '$(1)/build_unix' && ../dist/configure \
$(MXE_CONFIGURE_OPTS) \
--enable-mingw \
--enable-cxx \
--enable-cryptography \
2015-08-19 18:32:39 +01:00
--disable-replication
$(MAKE) -C '$(1)/build_unix' -j '$(JOBS)'
$(MAKE) -C '$(1)/build_unix' -j 1 install $(MXE_DISABLE_DOCS)
endef