You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.5 KiB

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