The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / berkeleydb / berkeleydb.mk
1 ################################################################################
2 #
3 # berkeleydb
4 #
5 ################################################################################
6
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
22
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         )
44 endef
45
46 ifneq ($(BR2_PACKAGE_BERKELEYDB_TOOLS),y)
47
48 define BERKELEYDB_REMOVE_TOOLS
49         rm -f $(addprefix $(TARGET_DIR)/usr/bin/, $(BERKELEYDB_BINARIES))
50 endef
51
52 BERKELEYDB_POST_INSTALL_TARGET_HOOKS += BERKELEYDB_REMOVE_TOOLS
53
54 endif
55
56 define BERKELEYDB_REMOVE_DOCS
57         rm -rf $(TARGET_DIR)/usr/docs
58 endef
59
60 BERKELEYDB_POST_INSTALL_TARGET_HOOKS += BERKELEYDB_REMOVE_DOCS
61
62 $(eval $(autotools-package))