source: packages/libs/tokyocabinet/Makefile @ 27144

Last change on this file since 27144 was 27144, checked in by swalker, 5 years ago

[packages] tokyocabinet: correct section value

File size: 1.8 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=tokyocabinet
11PKG_VERSION:=1.4.47
12PKG_RELEASE:=2
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://fallabs.com/tokyocabinet
16PKG_MD5SUM:=3d94fe2aebf5d9ff0478ed895bc46fc9
17
18include $(INCLUDE_DIR)/package.mk
19
20define 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
27  MAINTAINER:=Obinou <obconseil@gmail.com>
28endef
29
30define 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.
42endef
43
44CONFIGURE_ARGS += --prefix=/usr
45   
46define Build/Compile
47        $(MAKE) -C $(PKG_BUILD_DIR)
48        $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
49endef
50
51define Build/InstallDev
52        $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(1)" install
53endef
54
55define 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
60endef
61
62$(eval $(call BuildPackage,tokyocabinet))
Note: See TracBrowser for help on using the repository browser.