db47: moved to github
[openwrt.org/packages.git] / libs / Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#
# Copyright (C) 2009-2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
 
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/uclibc++.mk
 
PKG_NAME:=db47
PKG_VERSION:=4.7.25.NC
PKG_RELEASE:=6
 
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
 
PKG_LICENSE:=BSD-2c
PKG_LICENSE_FILES:=LICENSE
 
PKG_FIXUP:=autoreconf
PKG_LIBTOOL_PATHS:=. build_unix
PKG_BUILD_PARALLEL:=1
 
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
  MAINTAINER:=W. Michael Petullo <mike@flyn.org>
endef
 
define Package/libdb47/description
  Berkeley DB library (4.7).
endef
 
define Package/libdb47xx
  SECTION:=libs
  CATEGORY:=Libraries
  DEPENDS:=+libdb47 $(CXX_DEPENDS)
  TITLE:=Berkeley DB library (4.7) for C++
  URL:=http://www.sleepycat.com/products/db.shtml
  MAINTAINER:=W. Michael Petullo <mike@flyn.org>
endef
 
define Package/libdb47xx/description
  Berkeley DB library (4.7).  C++ wrapper.
endef
 
CONFIGURE_PATH = build_unix
CONFIGURE_CMD = ../dist/configure
 
CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
        --disable-java \
        --with-mutex=UNIX/fcntl \
        --disable-tcl \
        --disable-rpc \
        --enable-compat185 \
        --enable-smallbuild \
        --disable-debug \
        --enable-cryptography \
        $(if $(CONFIG_PACKAGE_libdb47xx),--enable-cxx,--disable-cxx)
 
TARGET_CFLAGS += $(FPIC)
 
define Build/Compile
        +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/build_unix \
                DESTDIR="$(PKG_INSTALL_DIR)" all
        $(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 Package/libdb47xx/install
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdb_cxx-*.so $(1)/usr/lib/
endef
 
define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include
        $(CP) $(PKG_INSTALL_DIR)/usr/include/db.h $(1)/usr/include/
        $(CP) $(PKG_INSTALL_DIR)/usr/include/db_cxx.h $(1)/usr/include/
        $(INSTALL_DIR) $(1)/usr/lib/
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdb*.{a,so} $(1)/usr/lib
endef
 
$(eval $(call BuildPackage,libdb47))
$(eval $(call BuildPackage,libdb47xx))
 
 
comments