treewide: Add extra CPE identifier
[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.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 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 CONFIGURE_ARGS += --with-curses --disable-install-examples
49
50 CONFIGURE_VARS += \
51 bash_cv_wcwidth_broken=no \
52 bash_cv_func_sigsetjmp=yes \
53
54 TARGET_CFLAGS += $(FPIC)
55
56 define Build/InstallDev
57 $(INSTALL_DIR) $(1)/usr/include
58 $(CP) $(PKG_INSTALL_DIR)/usr/include/readline $(1)/usr/include/
59 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{history,readline}.{a,so*} $(1)/usr/lib/
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/readline.pc $(1)/usr/lib/pkgconfig/
62 endef
63
64 define Package/libreadline/install
65 $(INSTALL_DIR) $(1)/usr/lib
66 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{history,readline}.so.* $(1)/usr/lib/
67 endef
68
69 $(eval $(call HostBuild))
70 $(eval $(call BuildPackage,libreadline))