2 # Copyright (C) 2006 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_MD5SUM
:=e39331f32ad14009b9ff49cc10c5e751
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/libreadline
23 TITLE
:=Command lines edition library
24 URL
:=http
://cnswww.cns.cwru.edu
/php
/chet
/readline
/rltop.html
27 define Package
/libreadline
/description
28 The Readline library provides a set of functions for use by applications
29 that allow users to edit command lines
as they are typed in. Both Emacs
30 and vi editing modes are available. The Readline library includes
31 additional functions to maintain a list of previously-entered command
32 lines
, to recall and perhaps reedit those lines
, and perform csh-like
33 history expansion on previous commands.
36 define Build
/Configure
37 $(call Build
/Configure
/Default
, \
44 TARGET_CPPFLAGS
:=-I.
-I..
$(TARGET_CPPFLAGS
)
46 TARGET_CFLAGS
+= $(FPIC
)
49 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
50 DESTDIR
="$(PKG_INSTALL_DIR)" \
54 define Build
/InstallDev
55 mkdir
-p
$(1)/usr
/include
56 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/readline
$(1)/usr
/include/
58 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{history
,readline
}.
{a
,so
.5,so
.5.2} $(1)/usr
/lib
/
61 define Package
/libreadline
/install
62 $(INSTALL_DIR
) $(1)/usr
/lib
63 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{history
,readline
}.
{so
.5,so
.5.2} $(1)/usr
/lib
/
66 $(eval
$(call BuildPackage
,libreadline
))