blob: 05d56ca041428ac8e400a4558f1ff9c5719e517b [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
2# Copyright (C) 2014 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:=tinycdb
11PKG_RELEASE:=2
12PKG_SOURCE_URL:=http://www.corpit.ru/mjt/tinycdb/
13PKG_VERSION:=0.78
14PKG_HASH:=50678f432d8ada8d69f728ec11c3140e151813a7847cf30a62d86f3a720ed63c
15PKG_MAINTAINER:=Denis Shulyaka <Shulyaka@gmail.com>
16PKG_LICENSE:=NLPL
17
18PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
19
20PKG_INSTALL:=1
21
22include $(INCLUDE_DIR)/package.mk
23
24# Pass CPPFLAGS in the CFLAGS as otherwise the build system will
25# ignore them.
26TARGET_CFLAGS+=$(TARGET_CPPFLAGS)
27
28MAKE_FLAGS+= \
29 CFLAGS="$(TARGET_CFLAGS)" \
30 LDFLAGS="$(TARGET_LDFLAGS)"
31
32CDB_INST_STRING:=prefix=/usr install install-sharedlib install-piclib
33
34define Package/tinycdb
35 SECTION:=libs
36 CATEGORY:=Libraries
37 TITLE:=a Constant DataBase
38 URL:=http://www.corpit.ru/mjt/tinycdb.html
39 ABI_VERSION=1
40endef
41
42define Package/tinycdb/description
43 TinyCDB is a very fast and simple package for creating and reading constant data bases
44endef
45
46define Package/tinycdb/install
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libcdb.so.$(ABI_VERSION) $(1)/usr/lib
49endef
50
51define Build/Compile
52 $(call Build/Compile/Default,shared staticlib piclib)
53endef
54
55define Build/Install
56 $(call Build/Install/Default,$(CDB_INST_STRING))
57endef
58
59define Build/InstallDev
60 cd $(PKG_BUILD_DIR); $(MAKE) DESTDIR=$(1) $(CDB_INST_STRING)
61endef
62
63$(eval $(call BuildPackage,tinycdb))