summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-03-20 17:50:23 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-03-20 17:50:23 +0000
commit526b00455bf84ee151d4cbea8d04651d799c7f89 (patch)
treead9a0a3752855bae1f1fb9985b6571af21429666 /package
parent300b8b7f932b78c6fdef1591ba7b5bbd472ac2f2 (diff)
- provide means to install readline into the target. Closes #968
Diffstat (limited to 'package')
-rw-r--r--package/readline/Config.in6
-rw-r--r--package/readline/readline.mk15
2 files changed, 16 insertions, 5 deletions
diff --git a/package/readline/Config.in b/package/readline/Config.in
index 45da5b1a9..a2a138183 100644
--- a/package/readline/Config.in
+++ b/package/readline/Config.in
@@ -5,3 +5,9 @@ config BR2_READLINE
help
Enable GNU readline support?
+config BR2_PACKAGE_READLINE_TARGET
+ bool "readline for the target"
+ depends on BR2_READLINE
+ help
+ Say yes here to install the readline libraries and headers
+ on the target.
diff --git a/package/readline/readline.mk b/package/readline/readline.mk
index 8b66a2a49..dfb2ae296 100644
--- a/package/readline/readline.mk
+++ b/package/readline/readline.mk
@@ -14,6 +14,8 @@ READLINE_TARGET_BINARY:=lib/$(READLINE_BINARY)
$(DL_DIR)/$(READLINE_SOURCE):
$(WGET) -P $(DL_DIR) $(READLINE_SITE)/$(READLINE_SOURCE)
+readline-source: $(DL_DIR)/$(READLINE_SOURCE)
+
$(READLINE_DIR)/.unpacked: $(DL_DIR)/$(READLINE_SOURCE)
mkdir -p $(READLINE_DIR)
tar -C $(BUILD_DIR) -zxf $(DL_DIR)/$(READLINE_SOURCE)
@@ -22,6 +24,7 @@ $(READLINE_DIR)/.unpacked: $(DL_DIR)/$(READLINE_SOURCE)
$(READLINE_DIR)/.configured: $(READLINE_DIR)/.unpacked
(cd $(READLINE_DIR); rm -rf config.cache; \
+ bash_cv_func_sigsetjmp=yes \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)" \
@@ -59,16 +62,15 @@ $(STAGING_DIR)/include/readline/readline.h: $(READLINE_DIR)/$(READLINE_BINARY)
touch -c $(STAGING_DIR)/include/readline/readline.h
-# Install only run-time to Target directory
+# Install to Target directory
$(TARGET_DIR)/include/readline/readline.h: $(READLINE_DIR)/$(READLINE_BINARY)
BUILD_CC=$(TARGET_CC) HOSTCC="$(HOSTCC)" CC=$(TARGET_CC) \
- $(MAKE1) DESTDIR=$(TARGET_DIR) -C $(READLINE_DIR) install-shared
+ $(MAKE1) DESTDIR=$(TARGET_DIR) -C $(READLINE_DIR) install-shared \
+ uninstall-doc
touch -c $(TARGET_DIR)/include/readline/readline.h
readline: $(STAGING_DIR)/include/readline/readline.h
-readline-target: $(TARGET_DIR)/include/readline/readline.h
-
readline-clean:
$(MAKE) -C $(READLINE_DIR) uninstall
-$(MAKE) -C $(READLINE_DIR) clean
@@ -76,7 +78,10 @@ readline-clean:
readline-dirclean:
rm -rf $(READLINE_DIR)
-readline-source: $(DL_DIR)/$(READLINE_SOURCE)
+readline-target: $(TARGET_DIR)/include/readline/readline.h
+
+readline-target-clean:
+ $(MAKE1) DESTDIR=$(TARGET_DIR) -C $(READLINE_DIR) uninstall
ifeq ($(strip $(BR2_READLINE)),y)
TARGETS+=readline