Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #
  2. # Copyright (C) 2006-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:=gdbm
  9. PKG_VERSION:=1.21
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@GNU/gdbm
  13. PKG_HASH:=b0b7dbdefd798de7ddccdd8edf6693a30494f7789777838042991ef107339cc2
  14. PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
  15. PKG_LICENSE:=GPL-3.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_INSTALL:=2
  18. PKG_BUILD_PARALLEL:=0
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libgdbm
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=GNU database manager
  24. URL:=https://www.gnu.org/software/gdbm/
  25. endef
  26. define Package/libgdbm/description
  27. GNU database manager library
  28. GNU dbm is a set of database routines that use extendible hashing and
  29. works similar to the standard UNIX dbm routines.
  30. endef
  31. CONFIGURE_ARGS += \
  32. --enable-libgdbm-compat \
  33. --enable-shared \
  34. --without-readline
  35. define Build/Compile
  36. +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
  37. BINOWN=`id -u` \
  38. BINGRP=`id -g` \
  39. DESTDIR="$(PKG_INSTALL_DIR)" \
  40. all install
  41. endef
  42. define Build/InstallDev
  43. $(INSTALL_DIR) $(1)/usr/include
  44. $(CP) $(PKG_INSTALL_DIR)/usr/include/{gdbm,ndbm}.h $(1)/usr/include/
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm.so* $(1)/usr/lib/
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm_compat.so* $(1)/usr/lib/
  48. endef
  49. define Package/libgdbm/install
  50. $(INSTALL_DIR) $(1)/usr/lib
  51. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm.so.* $(1)/usr/lib/
  52. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm_compat.so* $(1)/usr/lib/
  53. endef
  54. $(eval $(call BuildPackage,libgdbm))