[packages] add library 'tokyocabinet' - thanks to Obinou
git-svn-id: svn://svn.openwrt.org/openwrt/packages@27123 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
cfb1d5ce0c
commit
a30bb33997
62
libs/tokyocabinet/Makefile
Normal file
62
libs/tokyocabinet/Makefile
Normal file
@ -0,0 +1,62 @@
|
||||
#
|
||||
# Copyright (C) 2007 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=tokyocabinet
|
||||
PKG_VERSION:=1.4.47
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://fallabs.com/tokyocabinet
|
||||
PKG_MD5SUM:=3d94fe2aebf5d9ff0478ed895bc46fc9
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/tokyocabinet
|
||||
SUBMENU:=database
|
||||
SECTION:=lib
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=A library of routines to manage databases
|
||||
URL:=http://fallabs.com/tokyocabinet/
|
||||
DEPENDS:=+zlib +bzip2 +libpthread
|
||||
MAINTAINER:=Obinou <obconseil@gmail.com>
|
||||
endef
|
||||
|
||||
define Package/tokyocabinet/description
|
||||
Tokyo Cabinet is a library of routines for managing a database.
|
||||
The database is a simple data file containing records, each
|
||||
is a pair of a key and a value. Every key and value is serial bytes
|
||||
with variable length. Both binary data and character string can be
|
||||
used as a key and a value. There is neither concept of data tables
|
||||
nor data types. Records are organized in hash table, B+ tree,
|
||||
or fixed-length array.
|
||||
|
||||
Tokyo Cabinet is developed as the successor of GDBM and QDBM on the
|
||||
following purposes. They are achieved and Tokyo Cabinet replaces
|
||||
conventional DBM products.
|
||||
endef
|
||||
|
||||
CONFIGURE_ARGS += --prefix=/usr
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR)
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(1)" install
|
||||
endef
|
||||
|
||||
define Package/tokyocabinet/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtokyocabinet.so* $(1)/usr/lib
|
||||
$(INSTALL_DIR) $(1)/usr/share/tokyocabinet
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/tokyocabinet/tokyocabinet.idl $(1)/usr/share/tokyocabinet
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,tokyocabinet))
|
@ -0,0 +1,75 @@
|
||||
diff -ru tokyocabinet-1.4.47/configure tokyocabinet-1.4.47-new/configure
|
||||
--- tokyocabinet-1.4.47/configure 2011-02-11 10:59:53.000000000 +0100
|
||||
+++ tokyocabinet-1.4.47-new/configure 2011-06-01 16:54:33.082157954 +0200
|
||||
@@ -2066,24 +2066,14 @@
|
||||
|
||||
# Building flags
|
||||
MYCFLAGS="-std=c99 -Wall -fPIC -fsigned-char -O2"
|
||||
-MYCPPFLAGS="-I. -I\$(INCLUDEDIR) -I$HOME/include -I/usr/local/include"
|
||||
+MYCPPFLAGS="-I."
|
||||
MYCPPFLAGS="$MYCPPFLAGS -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__"
|
||||
-MYLDFLAGS="-L. -L\$(LIBDIR) -L$HOME/lib -L/usr/local/lib"
|
||||
+MYLDFLAGS="-L."
|
||||
MYCMDLDFLAGS=""
|
||||
MYRUNPATH="\$(LIBDIR)"
|
||||
MYLDLIBPATHENV="LD_LIBRARY_PATH"
|
||||
MYPOSTCMD="true"
|
||||
|
||||
-# Building paths
|
||||
-PATH="$PATH:$HOME/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
|
||||
-PATH="$PATH:/opt/SUNWspro/bin:/usr/ccs/bin:/usr/xpg4/bin:/usr/xpg6/bin:/usr/ucb"
|
||||
-CPATH="$HOME/include:/usr/local/include:$CPATH"
|
||||
-LIBRARY_PATH="$HOME/lib:/usr/local/lib:$LIBRARY_PATH"
|
||||
-LD_LIBRARY_PATH="$HOME/lib:/usr/local/lib:$LD_LIBRARY_PATH"
|
||||
-PKG_CONFIG_PATH="$HOME/lib/pkgconfig:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"
|
||||
-export PATH CPATH LIBRARY_PATH LD_LIBRARY_PATH PKG_CONFIG_PATH
|
||||
-
|
||||
-
|
||||
|
||||
#================================================================
|
||||
# Options
|
||||
diff -ru tokyocabinet-1.4.47/configure.in tokyocabinet-1.4.47-new/configure.in
|
||||
--- tokyocabinet-1.4.47/configure.in 2010-08-15 16:14:53.000000000 +0200
|
||||
+++ tokyocabinet-1.4.47-new/configure.in 2011-06-01 16:53:34.645989924 +0200
|
||||
@@ -32,25 +32,14 @@
|
||||
|
||||
# Building flags
|
||||
MYCFLAGS="-std=c99 -Wall -fPIC -fsigned-char -O2"
|
||||
-MYCPPFLAGS="-I. -I\$(INCLUDEDIR) -I$HOME/include -I/usr/local/include"
|
||||
+MYCPPFLAGS="-I."
|
||||
MYCPPFLAGS="$MYCPPFLAGS -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__"
|
||||
-MYLDFLAGS="-L. -L\$(LIBDIR) -L$HOME/lib -L/usr/local/lib"
|
||||
+MYLDFLAGS="-L."
|
||||
MYCMDLDFLAGS=""
|
||||
MYRUNPATH="\$(LIBDIR)"
|
||||
MYLDLIBPATHENV="LD_LIBRARY_PATH"
|
||||
MYPOSTCMD="true"
|
||||
|
||||
-# Building paths
|
||||
-PATH="$PATH:$HOME/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
|
||||
-PATH="$PATH:/opt/SUNWspro/bin:/usr/ccs/bin:/usr/xpg4/bin:/usr/xpg6/bin:/usr/ucb"
|
||||
-CPATH="$HOME/include:/usr/local/include:$CPATH"
|
||||
-LIBRARY_PATH="$HOME/lib:/usr/local/lib:$LIBRARY_PATH"
|
||||
-LD_LIBRARY_PATH="$HOME/lib:/usr/local/lib:$LD_LIBRARY_PATH"
|
||||
-PKG_CONFIG_PATH="$HOME/lib/pkgconfig:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"
|
||||
-export PATH CPATH LIBRARY_PATH LD_LIBRARY_PATH PKG_CONFIG_PATH
|
||||
-
|
||||
-
|
||||
-
|
||||
#================================================================
|
||||
# Options
|
||||
#================================================================
|
||||
diff -ru tokyocabinet-1.4.47/Makefile.in tokyocabinet-1.4.47-new/Makefile.in
|
||||
--- tokyocabinet-1.4.47/Makefile.in 2010-07-04 10:36:20.000000000 +0200
|
||||
+++ tokyocabinet-1.4.47-new/Makefile.in 2011-06-01 15:02:19.383826342 +0200
|
||||
@@ -54,8 +54,8 @@
|
||||
LDFLAGS = @MYLDFLAGS@
|
||||
CMDLDFLAGS = @MYCMDLDFLAGS@
|
||||
LIBS = @LIBS@
|
||||
-LDENV = LD_RUN_PATH=/lib:/usr/lib:$(LIBDIR):$(HOME)/lib:/usr/local/lib:@MYRUNPATH@:.
|
||||
-RUNENV = @MYLDLIBPATHENV@=.:/lib:/usr/lib:$(LIBDIR):$(HOME)/lib:/usr/local/lib:@MYRUNPATH@
|
||||
+LDENV = LD_RUN_PATH=$(LIBDIR):@MYRUNPATH@:.
|
||||
+RUNENV = @MYLDLIBPATHENV@=.:$(LIBDIR):@MYRUNPATH@
|
||||
POSTCMD = @MYPOSTCMD@
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user