buildrootschalter/package/readline/readline.mk
Thomas Petazzoni 300f9c9c9d package: remove useless arguments from AUTOTARGETS
Thanks to the pkgparentdir and pkgname functions, we can rewrite the
AUTOTARGETS macro in a way that avoids the need for each package to
repeat its name and the directory in which it is present.

[Peter: pkgdir->pkgparentdir]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-09-29 23:12:27 +02:00

28 lines
891 B
Makefile

#############################################################
#
# 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))