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.

66 lines
1.6 KiB

  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.19
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@GNU/gdbm
  13. PKG_HASH:=37ed12214122b972e18a0d94995039e57748191939ef74115b1d41d8811364bc
  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. define Build/Compile
  35. +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
  36. BINOWN=`id -u` \
  37. BINGRP=`id -g` \
  38. DESTDIR="$(PKG_INSTALL_DIR)" \
  39. all install
  40. endef
  41. define Build/InstallDev
  42. $(INSTALL_DIR) $(1)/usr/include
  43. $(CP) $(PKG_INSTALL_DIR)/usr/include/{gdbm,ndbm}.h $(1)/usr/include/
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm.so* $(1)/usr/lib/
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm_compat.so* $(1)/usr/lib/
  47. endef
  48. define Package/libgdbm/install
  49. $(INSTALL_DIR) $(1)/usr/lib
  50. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm.so.* $(1)/usr/lib/
  51. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm_compat.so* $(1)/usr/lib/
  52. endef
  53. $(eval $(call BuildPackage,libgdbm))