add icecast
[openwrt.git] / obsolete-buildroot / make / gawk.mk
1 #############################################################
2 #
3 # gawk
4 #
5 #############################################################
6 GAWK_SOURCE:=gawk-3.1.2.tar.gz
7 GAWK_SITE:=ftp://ftp.gnu.org/gnu/gawk
8 GAWK_CAT:=zcat
9 GAWK_DIR:=$(BUILD_DIR)/gawk-3.1.2
10 GAWK_BINARY:=gawk
11 GAWK_TARGET_BINARY:=usr/bin/gawk
12
13 $(DL_DIR)/$(GAWK_SOURCE):
14 $(WGET) -P $(DL_DIR) $(GAWK_SITE)/$(GAWK_SOURCE)
15
16 gawk-source: $(DL_DIR)/$(GAWK_SOURCE)
17
18 $(GAWK_DIR)/.unpacked: $(DL_DIR)/$(GAWK_SOURCE)
19 $(GAWK_CAT) $(DL_DIR)/$(GAWK_SOURCE) | tar -C $(BUILD_DIR) -xvf -
20 touch $(GAWK_DIR)/.unpacked
21
22 $(GAWK_DIR)/.configured: $(GAWK_DIR)/.unpacked
23 (cd $(GAWK_DIR); rm -rf config.cache; autoconf; \
24 $(TARGET_CONFIGURE_OPTS) \
25 CFLAGS="$(TARGET_CFLAGS)" \
26 ac_cv_func_getpgrp_void=yes \
27 ./configure \
28 --target=$(GNU_TARGET_NAME) \
29 --host=$(GNU_TARGET_NAME) \
30 --build=$(GNU_HOST_NAME) \
31 --prefix=/usr \
32 --exec-prefix=/usr \
33 --bindir=/usr/bin \
34 --sbindir=/usr/sbin \
35 --libexecdir=/usr/lib \
36 --sysconfdir=/etc \
37 --datadir=/usr/share \
38 --localstatedir=/var \
39 --mandir=/usr/man \
40 --infodir=/usr/info \
41 $(DISABLE_NLS) \
42 $(DISABLE_LARGEFILE) \
43 );
44 touch $(GAWK_DIR)/.configured
45
46 $(GAWK_DIR)/$(GAWK_BINARY): $(GAWK_DIR)/.configured
47 $(MAKE) CC=$(TARGET_CC) -C $(GAWK_DIR)
48
49 $(TARGET_DIR)/$(GAWK_TARGET_BINARY): $(GAWK_DIR)/$(GAWK_BINARY)
50 rm -f $(TARGET_DIR)/usr/bin/awk
51 $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(GAWK_DIR) install
52 rm -f $(TARGET_DIR)/usr/bin/gawk-*
53 (cd $(TARGET_DIR)/usr/bin; ln -sf gawk awk)
54 $(STRIP) $(TARGET_DIR)/usr/lib/awk/* > /dev/null 2>&1
55 rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
56 $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
57
58 gawk: uclibc $(TARGET_DIR)/$(GAWK_TARGET_BINARY)
59
60 gawk-clean:
61 $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(GAWK_DIR) uninstall
62 -$(MAKE) -C $(GAWK_DIR) clean
63
64 gawk-dirclean:
65 rm -rf $(GAWK_DIR)
66
This page took 0.043865 seconds and 5 git commands to generate.