cosmetic: remove trailing whitespaces
[openwrt.git] / package / libs / libreadline / 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:=6.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/readline
16 PKG_MD5SUM:=33c8fb279e981274f485fd91da77e94a
17
18 PKG_LICENSE:=GPL-3.0
19 PKG_LICENSE_FILES:=COPYING
20
21 PKG_BUILD_PARALLEL:=1
22 PKG_FIXUP:=autoreconf
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/libreadline
28   SECTION:=libs
29   CATEGORY:=Libraries
30   TITLE:=Command lines edition library
31   URL:=http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
32 endef
33
34 define Package/libreadline/description
35         The Readline library provides a set of functions for use by applications 
36         that allow users to edit command lines as they are typed in. Both Emacs 
37         and vi editing modes are available. The Readline library includes 
38         additional functions to maintain a list of previously-entered command 
39         lines, to recall and perhaps reedit those lines, and perform csh-like 
40         history expansion on previous commands.
41 endef
42
43 # prevent "autoreconf" from removing "aclocal.m4"
44 PKG_REMOVE_FILES:=
45
46 CONFIGURE_ARGS += \
47         --enable-shared \
48         --enable-static \
49         --with-curses \
50
51 CONFIGURE_VARS += \
52         bash_cv_wcwidth_broken=no \
53         bash_cv_func_sigsetjmp=yes \
54
55 TARGET_CPPFLAGS:=-I. -I.. $(TARGET_CPPFLAGS)
56
57 TARGET_CFLAGS += $(FPIC)
58
59 define Build/InstallDev
60         $(INSTALL_DIR) $(1)/usr/include
61         $(CP) $(PKG_INSTALL_DIR)/usr/include/readline $(1)/usr/include/
62         $(INSTALL_DIR) $(1)/usr/lib
63         $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{history,readline}.{a,so,so.6,so.6.3} $(1)/usr/lib/
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,so.6,so.6.3} $(1)/usr/lib/
69 endef
70
71 $(eval $(call BuildPackage,libreadline))