2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2002-08-10 10:51:42 +02:00
|
|
|
#
|
2013-06-06 01:53:29 +02:00
|
|
|
# berkeleydb
|
2002-08-10 10:51:42 +02:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2013-10-07 21:36:01 +02:00
|
|
|
# Since BerkeleyDB version 6 and above are licensed under the Affero
|
|
|
|
# GPL (AGPL), we want to keep this 'bdb' package at version 5.x to
|
|
|
|
# avoid licensing issues.
|
|
|
|
# BerkeleyDB version 6 or above should be provided by a dedicated
|
|
|
|
# package instead.
|
2013-12-02 04:11:02 +01:00
|
|
|
BERKELEYDB_VERSION = 5.3.28
|
2012-04-25 15:37:25 +02:00
|
|
|
BERKELEYDB_SITE = http://download.oracle.com/berkeley-db
|
|
|
|
BERKELEYDB_SOURCE = db-$(BERKELEYDB_VERSION).NC.tar.gz
|
|
|
|
BERKELEYDB_SUBDIR = build_unix
|
2012-05-17 19:33:21 +02:00
|
|
|
BERKELEYDB_LICENSE = BerkeleyDB License
|
|
|
|
BERKELEYDB_LICENSE_FILES = LICENSE
|
2010-06-16 13:47:08 +02:00
|
|
|
BERKELEYDB_INSTALL_STAGING = YES
|
2012-04-25 06:30:33 +02:00
|
|
|
BERKELEYDB_BINARIES = db_archive db_checkpoint db_deadlock db_dump \
|
|
|
|
db_hotbackup db_load db_log_verify db_printlog db_recover db_replicate \
|
|
|
|
db_stat db_tuner db_upgrade db_verify
|
2010-06-16 13:47:08 +02:00
|
|
|
|
2012-04-25 15:37:25 +02:00
|
|
|
# build directory can't be the directory where configure are there, so..
|
2010-06-16 13:47:08 +02:00
|
|
|
define BERKELEYDB_CONFIGURE_CMDS
|
|
|
|
(cd $(@D)/build_unix; rm -rf config.cache; \
|
2003-03-04 20:16:19 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2009-10-01 21:24:42 +02:00
|
|
|
../dist/configure $(QUIET) \
|
2003-01-17 09:03:59 +01:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
2003-03-04 20:16:19 +01:00
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
2003-01-17 09:03:59 +01:00
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
2003-03-01 23:00:42 +01:00
|
|
|
--with-gnu-ld \
|
2012-04-25 15:59:07 +02:00
|
|
|
$(if $(BR2_INSTALL_LIBSTDCPP),--enable-cxx,--disable-cxx) \
|
2003-03-01 23:00:42 +01:00
|
|
|
--disable-java \
|
|
|
|
--disable-tcl \
|
2013-12-02 01:29:15 +01:00
|
|
|
$(if $(BR2_PACKAGE_BERKELEYDB_COMPAT185),--enable-compat185,--disable-compat185) \
|
2011-06-20 17:59:55 +02:00
|
|
|
$(SHARED_STATIC_LIBS_OPTS) \
|
2003-03-01 23:00:42 +01:00
|
|
|
--with-pic \
|
2012-04-25 06:30:32 +02:00
|
|
|
--enable-o_direct \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2010-06-16 13:47:08 +02:00
|
|
|
$(SED) 's/\.lo/.o/g' $(@D)/build_unix/Makefile
|
|
|
|
endef
|
2002-08-10 10:51:42 +02:00
|
|
|
|
2012-04-25 06:30:33 +02:00
|
|
|
ifneq ($(BR2_PACKAGE_BERKELEYDB_TOOLS),y)
|
|
|
|
|
|
|
|
define BERKELEYDB_REMOVE_TOOLS
|
|
|
|
rm -f $(addprefix $(TARGET_DIR)/usr/bin/, $(BERKELEYDB_BINARIES))
|
|
|
|
endef
|
|
|
|
|
|
|
|
BERKELEYDB_POST_INSTALL_TARGET_HOOKS += BERKELEYDB_REMOVE_TOOLS
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2011-06-21 13:46:34 +02:00
|
|
|
define BERKELEYDB_REMOVE_DOCS
|
|
|
|
rm -rf $(TARGET_DIR)/usr/docs
|
2010-06-16 13:47:08 +02:00
|
|
|
endef
|
2002-08-10 10:51:42 +02:00
|
|
|
|
2011-06-21 13:46:34 +02:00
|
|
|
BERKELEYDB_POST_INSTALL_TARGET_HOOKS += BERKELEYDB_REMOVE_DOCS
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|