aboutsummaryrefslogtreecommitdiffstats
path: root/package/readline/readline.mk
blob: e34c6506d7685c7f6ee6fd094bc0ee8d3c388f28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#############################################################
#
# build GNU readline
#
#############################################################

READLINE_VERSION = 6.2
READLINE_SOURCE = readline-$(READLINE_VERSION).tar.gz
READLINE_SITE = $(BR2_GNU_MIRROR)/readline
READLINE_INSTALL_STAGING = YES
READLINE_INSTALL_TARGET = YES

READLINE_DEPENDENCIES = ncurses

READLINE_CONF_ENV = bash_cv_func_sigsetjmp=yes

define READLINE_INSTALL_TARGET_CMDS
	$(MAKE1) DESTDIR=$(TARGET_DIR) -C $(@D) uninstall
	$(MAKE1) DESTDIR=$(TARGET_DIR) -C $(@D) install-shared uninstall-doc
	chmod 775 $(TARGET_DIR)/usr/lib/libreadline.so.$(READLINE_VERSION) \
		$(TARGET_DIR)/usr/lib/libhistory.so.$(READLINE_VERSION)
	$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) \
		$(TARGET_DIR)/usr/lib/libreadline.so.$(READLINE_VERSION) \
		$(TARGET_DIR)/usr/lib/libhistory.so.$(READLINE_VERSION)
endef

$(eval $(call AUTOTARGETS,package,readline))