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.
7 # $Id: Makefile 5624 2006-11-23 00:29:07Z nbd $
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@GNU
/readline
17 PKG_MD5SUM
:=7ee5a692db88b30ca48927a13fd60e46
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/libreadline
28 TITLE
:=Command lines edition library
29 URL
:=http
://cnswww.cns.cwru.edu
/php
/chet
/readline
/rltop.html
32 define Package
/libreadline
/description
33 The Readline library provides a set of functions for use by applications
34 that allow users to edit command lines
as they are typed in. Both Emacs
35 and vi editing modes are available. The Readline library includes
36 additional functions to maintain a list of previously-entered command
37 lines
, to recall and perhaps reedit those lines
, and perform csh-like
38 history expansion on previous commands.
41 define Build
/Configure
42 $(call Build
/Configure
/Default
, \
50 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
51 DESTDIR
="$(PKG_INSTALL_DIR)" \
55 define Build
/InstallDev
56 mkdir
-p
$(1)/usr
/include
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/readline
$(1)/usr
/include/
59 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{history
,readline
}.
{a
,so
*} $(1)/usr
/lib
/
62 define Build
/UninstallDev
64 $(STAGING_DIR
)/usr
/include/readline \
65 $(STAGING_DIR
)/usr
/lib
/lib
{history
,readline
}.
{a
,so
*}
68 define Package
/libreadline
/install
69 $(INSTALL_DIR
) $(1)/usr
/lib
70 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{history
,readline
}.so.
* $(1)/usr
/lib
/
73 $(eval
$(call BuildPackage
,libreadline
))