Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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:=readline
  9. PKG_VERSION:=7.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@GNU/readline
  13. PKG_HASH:=750d437185286f40a369e1e4f4764eda932b9459b5ec9a731628393dd3d32334
  14. PKG_LICENSE:=GPL-3.0
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_CPE_ID:=cpe:/a:gnu:readline
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/host-build.mk
  22. define Package/libreadline
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=Command lines edition library
  26. URL:=http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
  27. ABI_VERSION:=$(PKG_VERSION)
  28. endef
  29. define Package/libreadline/description
  30. The Readline library provides a set of functions for use by applications
  31. that allow users to edit command lines as they are typed in. Both Emacs
  32. and vi editing modes are available. The Readline library includes
  33. additional functions to maintain a list of previously-entered command
  34. lines, to recall and perhaps reedit those lines, and perform csh-like
  35. history expansion on previous commands.
  36. endef
  37. # prevent "autoreconf" from removing "aclocal.m4"
  38. PKG_REMOVE_FILES:=
  39. CONFIGURE_ARGS += \
  40. --enable-shared \
  41. --enable-static \
  42. --with-curses \
  43. CONFIGURE_VARS += \
  44. bash_cv_wcwidth_broken=no \
  45. bash_cv_func_sigsetjmp=yes \
  46. TARGET_CPPFLAGS:=-I. -I.. $(TARGET_CPPFLAGS)
  47. TARGET_CFLAGS += $(FPIC)
  48. define Build/InstallDev
  49. $(INSTALL_DIR) $(1)/usr/include
  50. $(CP) $(PKG_INSTALL_DIR)/usr/include/readline $(1)/usr/include/
  51. $(INSTALL_DIR) $(1)/usr/lib
  52. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{history,readline}.{a,so,so.7,so.7.0} $(1)/usr/lib/
  53. endef
  54. define Package/libreadline/install
  55. $(INSTALL_DIR) $(1)/usr/lib
  56. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{history,readline}.{so,so.7,so.7.0} $(1)/usr/lib/
  57. endef
  58. $(eval $(call HostBuild))
  59. $(eval $(call BuildPackage,libreadline))