OpenWrt – Blame information for rev 1

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
11 PKG_VERSION:=8.0
12 PKG_RELEASE:=1
13  
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/readline
16 PKG_HASH:=e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461
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
23 PKG_INSTALL:=1
24  
25 include $(INCLUDE_DIR)/package.mk
26 include $(INCLUDE_DIR)/host-build.mk
27  
28 define Package/libreadline
29 SECTION:=libs
30 CATEGORY:=Libraries
31 TITLE:=Command lines edition library
32 DEPENDS:=+libncursesw
33 URL:=http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
34 ABI_VERSION:=8
35 endef
36  
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.
44 endef
45  
46 CONFIGURE_ARGS += --with-curses --disable-install-examples
47  
48 CONFIGURE_VARS += \
49 bash_cv_wcwidth_broken=no \
50 bash_cv_func_sigsetjmp=yes \
51  
52 TARGET_CFLAGS += $(FPIC)
53  
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/
60 endef
61  
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/
65 endef
66  
67 $(eval $(call HostBuild))
68 $(eval $(call BuildPackage,libreadline))