iptables: bump to version 1.6.1
[buildroot-gz.git] / package / berkeleydb / berkeleydb.mk
blobe5c11bddcf1e5969e14f2c9b06a5851b47bea0c7
1 ################################################################################
3 # berkeleydb
5 ################################################################################
7 # Since BerkeleyDB version 6 and above are licensed under the Affero
8 # GPL (AGPL), we want to keep this 'bdb' package at version 5.x to
9 # avoid licensing issues.
10 # BerkeleyDB version 6 or above should be provided by a dedicated
11 # package instead.
12 BERKELEYDB_VERSION = 5.3.28
13 BERKELEYDB_SITE = http://download.oracle.com/berkeley-db
14 BERKELEYDB_SOURCE = db-$(BERKELEYDB_VERSION).NC.tar.gz
15 BERKELEYDB_SUBDIR = build_unix
16 BERKELEYDB_LICENSE = BerkeleyDB License
17 BERKELEYDB_LICENSE_FILES = LICENSE
18 BERKELEYDB_INSTALL_STAGING = YES
19 BERKELEYDB_BINARIES = db_archive db_checkpoint db_deadlock db_dump \
20 db_hotbackup db_load db_log_verify db_printlog db_recover db_replicate \
21 db_stat db_tuner db_upgrade db_verify
23 # build directory can't be the directory where configure are there, so..
24 define BERKELEYDB_CONFIGURE_CMDS
25 (cd $(@D)/build_unix; rm -rf config.cache; \
26 $(TARGET_CONFIGURE_OPTS) \
27 $(TARGET_CONFIGURE_ARGS) \
28 ../dist/configure $(QUIET) \
29 --target=$(GNU_TARGET_NAME) \
30 --host=$(GNU_TARGET_NAME) \
31 --build=$(GNU_HOST_NAME) \
32 --prefix=/usr \
33 --exec-prefix=/usr \
34 --sysconfdir=/etc \
35 --with-gnu-ld \
36 $(if $(BR2_INSTALL_LIBSTDCPP),--enable-cxx,--disable-cxx) \
37 --disable-java \
38 --disable-tcl \
39 $(if $(BR2_PACKAGE_BERKELEYDB_COMPAT185),--enable-compat185,--disable-compat185) \
40 $(SHARED_STATIC_LIBS_OPTS) \
41 --with-pic \
42 --enable-o_direct \
43 $(if $(BR2_TOOLCHAIN_HAS_THREADS),--enable-mutexsupport,--disable-mutexsupport) \
45 endef
47 ifneq ($(BR2_PACKAGE_BERKELEYDB_TOOLS),y)
49 define BERKELEYDB_REMOVE_TOOLS
50 rm -f $(addprefix $(TARGET_DIR)/usr/bin/, $(BERKELEYDB_BINARIES))
51 endef
53 BERKELEYDB_POST_INSTALL_TARGET_HOOKS += BERKELEYDB_REMOVE_TOOLS
55 endif
57 define BERKELEYDB_REMOVE_DOCS
58 rm -rf $(TARGET_DIR)/usr/docs
59 endef
61 BERKELEYDB_POST_INSTALL_TARGET_HOOKS += BERKELEYDB_REMOVE_DOCS
63 $(eval $(autotools-package))