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.

65 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:=1
  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. PKG_BUILD_DEPENDS:=gettext-full/host
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/libgdbm
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=GNU database manager
  25. URL:=https://www.gnu.org/software/gdbm/
  26. endef
  27. define Package/libgdbm/description
  28. GNU database manager library
  29. GNU dbm is a set of database routines that use extendible hashing and
  30. works similar to the standard UNIX dbm routines.
  31. endef
  32. CONFIGURE_ARGS += \
  33. --enable-shared \
  34. --enable-static
  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.h $(1)/usr/include/
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm.{a,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. endef
  52. $(eval $(call BuildPackage,libgdbm))