Makefile 1.9 KB

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