fix ar7 flash map driver handling of jffs2 images
[openwrt.git] / obsolete-buildroot / make / gettext.mk
1 #############################################################
2 #
3 # gettext
4 #
5 #############################################################
6 GETTEXT_SOURCE:=gettext-0.11.5.tar.gz
7 GETTEXT_SITE:=ftp://ftp.gnu.org/gnu/gettext
8 GETTEXT_DIR:=$(BUILD_DIR)/gettext-0.11.5
9 GETTEXT_CAT:=zcat
10 GETTEXT_BINARY:=gettext
11 GETTEXT_TARGET_BINARY:=usr/bin/gettext
12
13 $(DL_DIR)/$(GETTEXT_SOURCE):
14 $(WGET) -P $(DL_DIR) $(GETTEXT_SITE)/$(GETTEXT_SOURCE)
15
16 gettext-source: $(DL_DIR)/$(GETTEXT_SOURCE)
17
18 $(GETTEXT_DIR)/.unpacked: $(DL_DIR)/$(GETTEXT_SOURCE)
19 $(GETTEXT_CAT) $(DL_DIR)/$(GETTEXT_SOURCE) | tar -C $(BUILD_DIR) -xvf -
20 touch $(GETTEXT_DIR)/.unpacked
21
22 $(GETTEXT_DIR)/.configured: $(GETTEXT_DIR)/.unpacked
23 (cd $(GETTEXT_DIR); rm -rf config.cache; \
24 $(TARGET_CONFIGURE_OPTS) \
25 ./configure \
26 --target=$(GNU_TARGET_NAME) \
27 --host=$(GNU_TARGET_NAME) \
28 --build=$(GNU_HOST_NAME) \
29 --prefix=/usr \
30 --exec-prefix=/usr \
31 --bindir=/usr/bin \
32 --sbindir=/usr/sbin \
33 --libexecdir=/usr/lib \
34 --sysconfdir=/etc \
35 --datadir=/usr/share \
36 --localstatedir=/var \
37 --mandir=/usr/man \
38 --infodir=/usr/info \
39 );
40 touch $(GETTEXT_DIR)/.configured
41
42 $(GETTEXT_DIR)/$(GETTEXT_BINARY): $(GETTEXT_DIR)/.configured
43 $(MAKE) CC=$(TARGET_CC) -C $(GETTEXT_DIR)
44
45 $(TARGET_DIR)/$(GETTEXT_TARGET_BINARY): $(GETTEXT_DIR)/$(GETTEXT_BINARY)
46 $(MAKE) DESTDIR=$(STAGING_DIR) CC=$(TARGET_CC) -C $(GETTEXT_DIR) install
47 $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(GETTEXT_DIR) install
48 rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
49 $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc \
50 $(TARGET_DIR)/usr/doc
51
52 gettext: uclibc $(TARGET_DIR)/$(GETTEXT_TARGET_BINARY)
53
54 gettext-clean:
55 $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(GETTEXT_DIR) uninstall
56 -$(MAKE) -C $(GETTEXT_DIR) clean
57
58 gettext-dirclean:
59 rm -rf $(GETTEXT_DIR)
60
This page took 0.047634 seconds and 5 git commands to generate.