Tinycdb library 370/head
authorDenis Shulyaka <Shulyaka@gmail.com>
Sun, 28 Sep 2014 22:14:56 +0000 (02:14 +0400)
committerDenis Shulyaka <Shulyaka@gmail.com>
Fri, 3 Oct 2014 19:16:27 +0000 (23:16 +0400)
libs/tinycdb/Makefile [new file with mode: 0644]
libs/tinycdb/patches/100-Makefile.patch [new file with mode: 0644]

diff --git a/libs/tinycdb/Makefile b/libs/tinycdb/Makefile
new file mode 100644 (file)
index 0000000..5288dea
--- /dev/null
@@ -0,0 +1,39 @@
+# 
+# Copyright (C) 2014 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:=tinycdb
+PKG_RELEASE:=1
+PKG_SOURCE_URL:=http://www.corpit.ru/mjt/tinycdb/
+PKG_VERSION:=0.78
+PKG_MD5SUM:=976266afc3f6e7e17492a8d18f21f8f6
+PKG_MAINTAINER:=Denis Shulyaka <Shulyaka@gmail.com>
+PKG_LICENSE:=NLPL
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/tinycdb
+  SECTION:=libs
+  CATEGORY:=Libraries
+  TITLE:=a Constant DataBase
+  URL:=http://www.corpit.ru/mjt/tinycdb.html
+endef
+
+define Package/tinycdb/description
+ TinyCDB is a very fast and simple package for creating and reading constant data bases
+endef
+
+define Build/InstallDev
+        cd $(PKG_BUILD_DIR); $(MAKE) DESTDIR=$(1) prefix=/usr install
+endef
+
+
+
+$(eval $(call BuildPackage,tinycdb))
diff --git a/libs/tinycdb/patches/100-Makefile.patch b/libs/tinycdb/patches/100-Makefile.patch
new file mode 100644 (file)
index 0000000..830d712
--- /dev/null
@@ -0,0 +1,25 @@
+diff -Naur tinycdb-0.78/Makefile tinycdb-0.78.patched/Makefile
+--- tinycdb-0.78/Makefile      2012-05-11 18:17:47.000000000 +0400
++++ tinycdb-0.78.patched/Makefile      2014-09-29 00:10:00.610836323 +0400
+@@ -86,17 +86,17 @@
+ $(SHAREDLIB): $(LIB_OBJS_PIC) $(LIBMAP)
+       -rm -f $(SOLIB)
+       ln -s $@ $(SOLIB)
+-      $(LD) $(LDFLAGS) $(LDFLAGS_SHARED) -o $@ \
++      $(CC) $(LDFLAGS) $(LDFLAGS_SHARED) -o $@ \
+        $(LDFLAGS_SONAME)$(SHAREDLIB) $(LDFLAGS_VSCRIPT)$(LIBMAP) \
+        $(LIB_OBJS_PIC)
+ cdb: cdb.o $(CDB_USELIB)
+-      $(LD) $(LDFLAGS) -o $@ cdb.o $(CDB_USELIB)
++      $(CC) $(LDFLAGS) -o $@ cdb.o $(CDB_USELIB)
+ cdb-shared: cdb.o $(SHAREDLIB)
+-      $(LD) $(LDFLAGS) -o $@ cdb.o $(SHAREDLIB)
++      $(CC) $(LDFLAGS) -o $@ cdb.o $(SHAREDLIB)
+ $(NSS_CDB): $(NSS_OBJS) $(NSS_USELIB) $(NSSMAP)
+-      $(LD) $(LDFLAGS) $(LDFLAGS_SHARED) -o $@ \
++      $(CC) $(LDFLAGS) $(LDFLAGS_SHARED) -o $@ \
+        $(LDFLAGS_SONAME)$@ $(LDFLAGS_VSCRIPT)$(NSSMAP) \
+        $(NSS_OBJS) $(NSS_USELIB)