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.

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