procd: make mDNS TXT record parsing more solid
[openwrt/openwrt.git] / package / libs / readline / Makefile
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.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/readline
16 PKG_HASH:=f8ceb4ee131e3232226a17f51b164afc46cd0b9e6cef344be87c65962cb82b02
17
18 PKG_LICENSE:=GPL-3.0-or-later
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 HOST_BUILD_DEPENDS:=ncurses/host
29
30 define Package/libreadline
31 SECTION:=libs
32 CATEGORY:=Libraries
33 TITLE:=Command lines edition library
34 DEPENDS:=+libncursesw
35 URL:=http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
36 ABI_VERSION:=8
37 endef
38
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.
46 endef
47
48 HOST_CONFIGURE_ARGS += --disable-shared --with-pic
49 CONFIGURE_ARGS += --with-curses --disable-install-examples
50
51 CONFIGURE_VARS += \
52 bash_cv_wcwidth_broken=no \
53 bash_cv_func_sigsetjmp=yes \
54
55 TARGET_CFLAGS += $(FPIC)
56 HOST_CFLAGS += $(FPIC)
57
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/
64 endef
65
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/
69 endef
70
71 $(eval $(call HostBuild))
72 $(eval $(call BuildPackage,libreadline))