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
:=7589a2381a8419e68654a47623ce7dfcb756815c8fee726b98f90bf668af7bc6
18 PKG_LICENSE
:=GPL-3.0
-or-later
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 HOST_BUILD_DEPENDS
:=ncurses
/host
30 define Package
/libreadline
33 TITLE
:=Command lines edition library
35 URL
:=http
://cnswww.cns.cwru.edu
/php
/chet
/readline
/rltop.html
39 define Package
/libreadline
/description
40 The Readline library provides a set of functions for use by applications
41 that allow users to edit command lines
as they are typed in. Both Emacs
42 and vi editing modes are available. The Readline library includes
43 additional functions to maintain a list of previously-entered command
44 lines
, to recall and perhaps reedit those lines
, and perform csh-like
45 history expansion on previous commands.
48 HOST_CONFIGURE_ARGS
+= --disable-shared
--with-pic
49 CONFIGURE_ARGS
+= --with-curses
--disable-install-examples
52 bash_cv_wcwidth_broken
=no \
53 bash_cv_func_sigsetjmp
=yes \
55 TARGET_CFLAGS
+= $(FPIC
)
56 HOST_CFLAGS
+= $(FPIC
)
58 define Build
/InstallDev
59 $(INSTALL_DIR
) $(1)/usr
/include
60 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/readline
$(1)/usr
/include/
61 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{history
,readline
}.
{a
,so
*} $(1)/usr
/lib
/
63 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/readline.
pc $(1)/usr
/lib
/pkgconfig
/
66 define Package
/libreadline
/install
67 $(INSTALL_DIR
) $(1)/usr
/lib
68 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{history
,readline
}.so.
* $(1)/usr
/lib
/
71 $(eval
$(call HostBuild
))
72 $(eval
$(call BuildPackage
,libreadline
))