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