2 # Copyright (C) 2007-2011 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
10 PKG_NAME:=tokyocabinet
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://fallabs.com/tokyocabinet
16 PKG_MD5SUM:=3d94fe2aebf5d9ff0478ed895bc46fc9
18 include $(INCLUDE_DIR)/package.mk
20 define Package/tokyocabinet
24 TITLE:=A library of routines to manage databases
25 URL:=http://fallabs.com/tokyocabinet/
26 DEPENDS:=+zlib +bzip2 +libpthread +librt
27 MAINTAINER:=Obinou <obconseil@gmail.com>
30 define Package/tokyocabinet/description
31 Tokyo Cabinet is a library of routines for managing a database.
32 The database is a simple data file containing records, each
33 is a pair of a key and a value. Every key and value is serial bytes
34 with variable length. Both binary data and character string can be
35 used as a key and a value. There is neither concept of data tables
36 nor data types. Records are organized in hash table, B+ tree,
37 or fixed-length array.
39 Tokyo Cabinet is developed as the successor of GDBM and QDBM on the
40 following purposes. They are achieved and Tokyo Cabinet replaces
41 conventional DBM products.
44 CONFIGURE_ARGS += --prefix=/usr
47 $(MAKE) -C $(PKG_BUILD_DIR)
48 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
51 define Build/InstallDev
52 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(1)" install
55 define Package/tokyocabinet/install
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtokyocabinet.so* $(1)/usr/lib
58 $(INSTALL_DIR) $(1)/usr/share/tokyocabinet
59 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/tokyocabinet/tokyocabinet.idl $(1)/usr/share/tokyocabinet
62 $(eval $(call BuildPackage,tokyocabinet))