2 # Copyright (C) 2009-2010 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
11 PKG_VERSION
:=4.7.25.NC
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/db-
$(PKG_VERSION
)
15 PKG_SOURCE
:=db-
$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://download.oracle.com
/berkeley-db
/
17 PKG_MD5SUM
:=073ab7f20d24b3872a51ca762f5090e7
20 PKG_LIBTOOL_PATHS
:=. build_unix
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/libdb47
29 TITLE
:=Berkeley DB library
(4.7)
30 URL
:=http
://www.sleepycat.com
/products
/db.shtml
31 MAINTAINER
:=W. Michael Petullo
<mike@flyn.org
>
34 define Package
/libdb47
/description
35 Berkeley DB library
(4.7).
38 define Build
/Configure
39 (cd
$(PKG_BUILD_DIR
)/build_unix
; rm -f config.cache
; \
40 $(TARGET_CONFIGURE_OPTS
) \
41 CFLAGS
="$(TARGET_CFLAGS)" \
42 CPPFLAGS
="$(TARGET_CPPFLAGS)" \
43 LDFLAGS
="$(TARGET_LDFLAGS)" \
45 --target
=$(GNU_TARGET_NAME
) \
46 --host
=$(GNU_TARGET_NAME
) \
47 --build
=$(GNU_HOST_NAME
) \
53 --datadir=/usr
/share \
54 --includedir=/usr
/include \
55 --infodir=/usr
/share
/info \
57 --libexecdir
=/usr
/lib \
58 --localstatedir
=/var \
59 --mandir=/usr
/share
/man \
67 --with-mutex
=UNIX
/fcntl \
73 --enable-cryptography \
77 TARGET_CFLAGS
+= $(FPIC
)
80 $(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
)/build_unix \
81 DESTDIR
="$(PKG_INSTALL_DIR)" all
82 $(MAKE
) -C
$(PKG_BUILD_DIR
)/build_unix \
83 DESTDIR
="$(PKG_INSTALL_DIR)" install
86 define Package
/libdb47
/install
87 $(INSTALL_DIR
) $(1)/usr
/lib
88 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libdb-
*.so
$(1)/usr
/lib
/
91 define Build
/InstallDev
92 $(INSTALL_DIR
) $(1)/usr
/include
93 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/db.h
$(1)/usr
/include/
94 $(INSTALL_DIR
) $(1)/usr
/lib
/
95 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libdb
*.
{a
,so
} $(1)/usr
/lib
98 $(eval
$(call BuildPackage
,libdb47
))