OpenWrt – Blame information for rev 3

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 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  
8 include $(TOPDIR)/rules.mk
9  
10 PKG_NAME:=readline
3 office 11 PKG_VERSION:=7.0
1 office 12 PKG_RELEASE:=1
13  
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/readline
3 office 16 PKG_HASH:=750d437185286f40a369e1e4f4764eda932b9459b5ec9a731628393dd3d32334
1 office 17  
18 PKG_LICENSE:=GPL-3.0
19 PKG_LICENSE_FILES:=COPYING
20 PKG_CPE_ID:=cpe:/a:gnu:readline
21  
22 PKG_BUILD_PARALLEL:=1
3 office 23 PKG_FIXUP:=autoreconf
1 office 24 PKG_INSTALL:=1
25  
26 include $(INCLUDE_DIR)/package.mk
27 include $(INCLUDE_DIR)/host-build.mk
28  
29 define Package/libreadline
30 SECTION:=libs
31 CATEGORY:=Libraries
32 TITLE:=Command lines edition library
33 URL:=http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
3 office 34 ABI_VERSION:=$(PKG_VERSION)
1 office 35 endef
36  
37 define Package/libreadline/description
3 office 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
1 office 43 history expansion on previous commands.
44 endef
45  
3 office 46 # prevent "autoreconf" from removing "aclocal.m4"
47 PKG_REMOVE_FILES:=
1 office 48  
3 office 49 CONFIGURE_ARGS += \
50 --enable-shared \
51 --enable-static \
52 --with-curses \
53  
1 office 54 CONFIGURE_VARS += \
55 bash_cv_wcwidth_broken=no \
56 bash_cv_func_sigsetjmp=yes \
57  
3 office 58 TARGET_CPPFLAGS:=-I. -I.. $(TARGET_CPPFLAGS)
59  
1 office 60 TARGET_CFLAGS += $(FPIC)
61  
62 define Build/InstallDev
63 $(INSTALL_DIR) $(1)/usr/include
64 $(CP) $(PKG_INSTALL_DIR)/usr/include/readline $(1)/usr/include/
3 office 65 $(INSTALL_DIR) $(1)/usr/lib
66 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{history,readline}.{a,so,so.7,so.7.0} $(1)/usr/lib/
1 office 67 endef
68  
69 define Package/libreadline/install
70 $(INSTALL_DIR) $(1)/usr/lib
3 office 71 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{history,readline}.{so,so.7,so.7.0} $(1)/usr/lib/
1 office 72 endef
73  
74 $(eval $(call HostBuild))
75 $(eval $(call BuildPackage,libreadline))