diff options
author | David Anders <dave123@abcsinc.com> | 2006-01-25 17:47:03 +0000 |
---|---|---|
committer | David Anders <dave123@abcsinc.com> | 2006-01-25 17:47:03 +0000 |
commit | 9f9e02025e1b904250d960d01ba9d441f7a4a638 (patch) | |
tree | a899f0eb33721da3f7a3f4ddc14d1bffb8e64c8e /package | |
parent | 54f724280d1e57c23b7cdb8ad901e1652c05c3c6 (diff) | |
download | buildroot-novena-9f9e02025e1b904250d960d01ba9d441f7a4a638.tar.gz buildroot-novena-9f9e02025e1b904250d960d01ba9d441f7a4a638.zip |
add option to select target installation per case 0000519
Diffstat (limited to 'package')
-rw-r--r-- | package/gettext/Config.in | 9 | ||||
-rw-r--r-- | package/gettext/gettext.mk | 34 |
2 files changed, 36 insertions, 7 deletions
diff --git a/package/gettext/Config.in b/package/gettext/Config.in index bcb51ee89..9a606a1a2 100644 --- a/package/gettext/Config.in +++ b/package/gettext/Config.in @@ -7,3 +7,12 @@ config BR2_PACKAGE_GETTEXT messages. http://www.gnu.org/software/gettext/ + +config BR2_PACKAGE_LIBINTL + bool "libintl" + default n + help + Selecting this package installs all of gettext in the staging + directory and the shared library for it's use in the target. + + http://www.gnu.org/software/gettext/ diff --git a/package/gettext/gettext.mk b/package/gettext/gettext.mk index c278a37c8..15ee497ee 100644 --- a/package/gettext/gettext.mk +++ b/package/gettext/gettext.mk @@ -43,14 +43,10 @@ $(GETTEXT_DIR)/.configured: $(GETTEXT_DIR)/.unpacked $(GETTEXT_DIR)/$(GETTEXT_BINARY): $(GETTEXT_DIR)/.configured $(MAKE) CC=$(TARGET_CC) -C $(GETTEXT_DIR) -$(TARGET_DIR)/$(GETTEXT_TARGET_BINARY): $(GETTEXT_DIR)/$(GETTEXT_BINARY) +$(STAGING_DIR)/$(GETTEXT_TARGET_BINARY): $(GETTEXT_DIR)/$(GETTEXT_BINARY) $(MAKE) DESTDIR=$(STAGING_DIR) CC=$(TARGET_CC) -C $(GETTEXT_DIR) install - $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(GETTEXT_DIR) install - rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \ - $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc \ - $(TARGET_DIR)/usr/doc -gettext: uclibc $(TARGET_DIR)/$(GETTEXT_TARGET_BINARY) +gettext: uclibc $(STAGING_DIR)/$(GETTEXT_TARGET_BINARY) gettext-clean: $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(GETTEXT_DIR) uninstall @@ -61,9 +57,33 @@ gettext-dirclean: ############################################################# # +# gettext on the target +# +############################################################# + +gettext-target: $(GETTEXT_DIR)/$(GETTEXT_BINARY) + $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(GETTEXT_DIR) install + chmod +x $(TARGET_DIR)/usr/lib/libintl.so.2.2.0 # identify as needing to be stipped + rm -rf $(TARGET_DIR)/usr/info \ + $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc \ + $(TARGET_DIR)/usr/doc $(TARGET_DIR)/usr/share/aclocal \ + $(TARGET_DIR)/usr/include/libintl.h + -rmdir $(TARGET_DIR)/usr/include + +libintl: $(TARGET_DIR)/usr/lib/libintl.so + +$(TARGET_DIR)/usr/lib/libintl.so: $(STAGING_DIR)/$(GETTEXT_TARGET_BINARY) + cp -a $(STAGING_DIR)/usr/lib/libintl.so* $(TARGET_DIR)/usr/lib + touch $@ + +############################################################# +# # Toplevel Makefile options # ############################################################# +ifeq ($(strip $(BR2_PACKAGE_LIBINTL)),y) +TARGETS+=libintl +endif ifeq ($(strip $(BR2_PACKAGE_GETTEXT)),y) -TARGETS+=gettext +TARGETS+=gettext-target endif |