2 # Copyright (C) 2006-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/readline
16 PKG_HASH:=e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461
19 PKG_LICENSE_FILES:=COPYING
20 PKG_CPE_ID:=cpe:/a:gnu:readline
25 include $(INCLUDE_DIR)/package.mk
26 include $(INCLUDE_DIR)/host-build.mk
28 define Package/libreadline
31 TITLE:=Command lines edition library
33 URL:=http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
37 define Package/libreadline/description
38 The Readline library provides a set of functions for use by applications
39 that allow users to edit command lines as they are typed in. Both Emacs
40 and vi editing modes are available. The Readline library includes
41 additional functions to maintain a list of previously-entered command
42 lines, to recall and perhaps reedit those lines, and perform csh-like
43 history expansion on previous commands.
46 CONFIGURE_ARGS += --with-curses --disable-install-examples
49 bash_cv_wcwidth_broken=no \
50 bash_cv_func_sigsetjmp=yes \
52 TARGET_CFLAGS += $(FPIC)
54 define Build/InstallDev
55 $(INSTALL_DIR) $(1)/usr/include
56 $(CP) $(PKG_INSTALL_DIR)/usr/include/readline $(1)/usr/include/
57 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{history,readline}.{a,so*} $(1)/usr/lib/
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/readline.pc $(1)/usr/lib/pkgconfig/
62 define Package/libreadline/install
63 $(INSTALL_DIR) $(1)/usr/lib
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{history,readline}.so.* $(1)/usr/lib/
67 $(eval $(call HostBuild))
68 $(eval $(call BuildPackage,libreadline))