1
0

Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #
  2. # Copyright (C) 2007-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:=tdb
  9. PKG_VERSION:=1.0.6
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=GPL-2.0
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=@SF/tdb
  14. PKG_MD5SUM:=6b643fdeb48304010dcd5f675e458b58
  15. PKG_INSTALL:=1
  16. PKG_BUILD_DEPENDS:=+libgdbm
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/tdb
  19. SUBMENU:=database
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=Trivial Database
  23. URL:=http://sourceforge.net/projects/tdb/
  24. MAINTAINER:=Dmitry V. Zimin <pfzim@mail.ru>
  25. # DEPENDS:=+libgdbm
  26. endef
  27. define Package/tdb/description
  28. TDB is a Trivial Database. In concept, it is very much like GDBM,
  29. and BSD's DB except that it allows multiple simultaneous writers
  30. and uses locking internally to keep writers from trampling on
  31. each other. TDB is also extremely small.
  32. endef
  33. define Build/InstallDev
  34. $(INSTALL_DIR) $(1)/usr/include
  35. $(CP) $(PKG_INSTALL_DIR)/usr/include/tdb.h $(1)/usr/include/
  36. $(INSTALL_DIR) $(1)/usr/lib
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
  38. endef
  39. define Package/tdb/install
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
  42. $(INSTALL_DIR) $(1)/usr/bin
  43. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  44. endef
  45. $(eval $(call BuildPackage,tdb))