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.

67 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_MD5SUM:=72c832680cf0999caedbe5b265c8c1bd
  14. PKG_LICENSE:=GPL-3.0+
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
  17. PKG_FIXUP:=autoreconf
  18. PKG_REMOVE_FILES:=Makefile compat/Makefile doc/Makefile export/Makefile src/Makefile tests/Makefile
  19. PKG_BUILD_PARALLEL:=0
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/libgdbm
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=GNU database manager
  25. URL:=http://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. TARGET_CFLAGS += $(FPIC)
  33. CONFIGURE_ARGS += \
  34. --enable-shared \
  35. --enable-static \
  36. define Build/Compile
  37. +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
  38. BINOWN=`id -u` \
  39. BINGRP=`id -g` \
  40. DESTDIR="$(PKG_INSTALL_DIR)" \
  41. all install
  42. endef
  43. define Build/InstallDev
  44. $(INSTALL_DIR) $(1)/usr/include
  45. $(CP) $(PKG_INSTALL_DIR)/usr/include/gdbm.h $(1)/usr/include/
  46. $(INSTALL_DIR) $(1)/usr/lib
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm.{a,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. endef
  53. $(eval $(call BuildPackage,libgdbm))