2010-02-19 00:14:01 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2009-2010 OpenWrt.org
|
2009-09-28 07:09:58 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=db47
|
|
|
|
PKG_VERSION:=4.7.25.NC
|
2010-02-19 00:14:01 +00:00
|
|
|
PKG_RELEASE:=6
|
2009-09-28 07:09:58 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/db-$(PKG_VERSION)
|
|
|
|
PKG_SOURCE:=db-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://download.oracle.com/berkeley-db/
|
|
|
|
PKG_MD5SUM:=073ab7f20d24b3872a51ca762f5090e7
|
|
|
|
|
2010-02-19 00:14:01 +00:00
|
|
|
PKG_FIXUP:=libtool
|
|
|
|
PKG_LIBTOOL_PATHS:=. build_unix
|
2010-09-07 10:04:42 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2010-02-19 00:14:01 +00:00
|
|
|
|
2009-09-28 07:09:58 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libdb47
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
DEPENDS:=+libxml2
|
|
|
|
TITLE:=Berkeley DB library (4.7)
|
|
|
|
URL:=http://www.sleepycat.com/products/db.shtml
|
2010-11-02 16:19:12 +00:00
|
|
|
MAINTAINER:=W. Michael Petullo <mike@flyn.org>
|
2009-09-28 07:09:58 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libdb47/description
|
|
|
|
Berkeley DB library (4.7).
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
(cd $(PKG_BUILD_DIR)/build_unix; rm -f config.cache; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
CPPFLAGS="$(TARGET_CPPFLAGS)" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
|
|
../dist/configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--program-prefix="" \
|
|
|
|
--program-suffix="" \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--includedir=/usr/include \
|
|
|
|
--infodir=/usr/share/info \
|
|
|
|
--libdir=/usr/lib \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--sbindir=/usr/sbin \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
$(DISABLE_NLS) \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--disable-java \
|
2009-12-15 20:11:28 +00:00
|
|
|
--disable-cxx \
|
2009-11-14 23:38:41 +00:00
|
|
|
--with-mutex=UNIX/fcntl \
|
2009-09-28 07:09:58 +00:00
|
|
|
--disable-tcl \
|
|
|
|
--disable-rpc \
|
|
|
|
--enable-compat185 \
|
2009-12-16 23:25:12 +00:00
|
|
|
--enable-smallbuild \
|
|
|
|
--disable-debug \
|
2009-09-28 07:09:58 +00:00
|
|
|
--enable-cryptography \
|
|
|
|
);
|
|
|
|
endef
|
|
|
|
|
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
|
|
|
define Build/Compile
|
2010-09-07 10:04:42 +00:00
|
|
|
$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/build_unix \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" all
|
2009-09-28 07:09:58 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/build_unix \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libdb47/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdb-*.so $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2009-11-23 00:38:39 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/db.h $(1)/usr/include/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
2009-11-23 00:38:39 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdb*.{a,so} $(1)/usr/lib
|
2009-09-28 07:09:58 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libdb47))
|