neon: moved to github
[packages.git] / libs / tokyocabinet / Makefile
1 #
2 # Copyright (C) 2007-2011 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
10 PKG_NAME:=tokyocabinet
11 PKG_VERSION:=1.4.47
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://fallabs.com/tokyocabinet
16 PKG_MD5SUM:=3d94fe2aebf5d9ff0478ed895bc46fc9
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/tokyocabinet
21   SUBMENU:=database
22   SECTION:=libs
23   CATEGORY:=Libraries
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>
28 endef
29
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.
38
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.
42 endef
43
44 CONFIGURE_ARGS += --prefix=/usr
45
46 define Build/Compile
47         $(MAKE) -C $(PKG_BUILD_DIR)
48         $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
49 endef
50
51 define Build/InstallDev
52         $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(1)" install
53 endef
54
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
60 endef
61
62 $(eval $(call BuildPackage,tokyocabinet))