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