From 81a85c40ba4c7c520a2af16555b9eb49f10fc008 Mon Sep 17 00:00:00 2001 From: Denis Shulyaka Date: Mon, 29 Sep 2014 02:14:56 +0400 Subject: [PATCH] Tinycdb library --- libs/tinycdb/Makefile | 39 +++++++++++++++++++++++++ libs/tinycdb/patches/100-Makefile.patch | 25 ++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 libs/tinycdb/Makefile create mode 100644 libs/tinycdb/patches/100-Makefile.patch diff --git a/libs/tinycdb/Makefile b/libs/tinycdb/Makefile new file mode 100644 index 0000000000..5288dea491 --- /dev/null +++ b/libs/tinycdb/Makefile @@ -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 +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 index 0000000000..830d712048 --- /dev/null +++ b/libs/tinycdb/patches/100-Makefile.patch @@ -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) + -- 2.30.2