tinycdb: new packages for tinycdb (a Constant DataBase) librarylilik-openwrt-22.03
@ -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)) |
@ -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) | |||||