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.

64 lines
1.5 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.18.1
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@GNU/gdbm
  13. PKG_HASH:=86e613527e5dba544e73208f42b78b7c022d4fa5a6d5498bf18c8d6f745b91dc
  14. PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
  15. PKG_LICENSE:=GPL-3.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_INSTALL:=1
  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-shared \
  33. --enable-static
  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.h $(1)/usr/include/
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm.{a,so*} $(1)/usr/lib/
  46. endef
  47. define Package/libgdbm/install
  48. $(INSTALL_DIR) $(1)/usr/lib
  49. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm.so.* $(1)/usr/lib/
  50. endef
  51. $(eval $(call BuildPackage,libgdbm))