Makefile 1.8 KB

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