Нет описания

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #
  2. # Copyright (C) 2006-2013 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:=GPLv3
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_FIXUP:=autoreconf
  17. PKG_REMOVE_FILES:=Makefile compat/Makefile doc/Makefile export/Makefile src/Makefile tests/Makefile
  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:=http://www.gnu.org/software/gdbm/
  25. endef
  26. TARGET_CFLAGS += $(FPIC)
  27. CONFIGURE_ARGS += \
  28. --enable-shared \
  29. --enable-static \
  30. define Build/Compile
  31. +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
  32. BINOWN=`id -u` \
  33. BINGRP=`id -g` \
  34. DESTDIR="$(PKG_INSTALL_DIR)" \
  35. all install
  36. endef
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/include
  39. $(CP) $(PKG_INSTALL_DIR)/usr/include/gdbm.h $(1)/usr/include/
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm.{a,so*} $(1)/usr/lib/
  42. endef
  43. define Package/libgdbm/install
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm.so.* $(1)/usr/lib/
  46. endef
  47. $(eval $(call BuildPackage,libgdbm))