2002-08-10 10:51:42 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# berkeley db
|
|
|
|
#
|
|
|
|
#############################################################
|
2012-06-08 05:56:24 +02:00
|
|
|
BERKELEYDB_VERSION = 5.3.21
|
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 \
|
|
|
|
--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
|
|
|
ifneq ($(BR2_HAVE_DOCUMENTATION),y)
|
2002-08-10 10:51:42 +02:00
|
|
|
|
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
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|