2 # Copyright (C) 2009-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/uclibc
++.mk
12 PKG_VERSION
:=4.7.25.NC
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/db-
$(PKG_VERSION
)
16 PKG_SOURCE
:=db-
$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=http
://download.oracle.com
/berkeley-db
/
18 PKG_MD5SUM
:=073ab7f20d24b3872a51ca762f5090e7
19 PKG_MAINTAINER
:=Marcel Denia
<naoir@gmx.net
>
21 PKG_LICENSE_FILES
:=LICENSE
24 PKG_LIBTOOL_PATHS
:=. build_unix
27 include $(INCLUDE_DIR
)/package.mk
29 define Package
/libdb47
33 TITLE
:=Berkeley DB library
(4.7)
34 URL
:=http
://www.sleepycat.com
/products
/db.shtml
37 define Package
/libdb47
/description
38 Berkeley DB library
(4.7).
41 define Package
/libdb47xx
44 DEPENDS
:=+libdb47
$(CXX_DEPENDS
)
45 TITLE
:=Berkeley DB library
(4.7) for C
++
46 URL
:=http
://www.sleepycat.com
/products
/db.shtml
49 define Package
/libdb47xx
/description
50 Berkeley DB library
(4.7). C
++ wrapper.
53 CONFIGURE_PATH
= build_unix
54 CONFIGURE_CMD
= ..
/dist/configure
60 --with-mutex
=UNIX
/fcntl \
66 --enable-cryptography \
67 $(if
$(CONFIG_PACKAGE_libdb47xx
),--enable-cxx
,--disable-cxx
)
69 TARGET_CFLAGS
+= $(FPIC
)
72 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
)/build_unix \
73 DESTDIR
="$(PKG_INSTALL_DIR)" all
74 $(MAKE
) -C
$(PKG_BUILD_DIR
)/build_unix \
75 DESTDIR
="$(PKG_INSTALL_DIR)" install
78 define Package
/libdb47
/install
79 $(INSTALL_DIR
) $(1)/usr
/lib
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libdb-
*.so
$(1)/usr
/lib
/
83 define Package
/libdb47xx
/install
84 $(INSTALL_DIR
) $(1)/usr
/lib
85 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libdb_cxx-
*.so
$(1)/usr
/lib
/
88 define Build
/InstallDev
89 $(INSTALL_DIR
) $(1)/usr
/include
90 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/db.h
$(1)/usr
/include/
91 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/db_cxx.h
$(1)/usr
/include/
92 $(INSTALL_DIR
) $(1)/usr
/lib
/
93 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libdb
*.
{a
,so
} $(1)/usr
/lib
96 $(eval
$(call BuildPackage
,libdb47
))
97 $(eval
$(call BuildPackage
,libdb47xx
))