wifidog package from Philippe April, thx
[openwrt.git] / obsolete-buildroot / make / diffutils.mk
1 #############################################################
2 #
3 # diffutils
4 #
5 #############################################################
6 DIFFUTILS_SOURCE:=diffutils-2.8.4.tar.gz
7 DIFFUTILS_SITE:=ftp://alpha.gnu.org/gnu/diffutils/
8 DIFFUTILS_CAT:=zcat
9 DIFFUTILS_DIR:=$(BUILD_DIR)/diffutils-2.8.4
10 DIFFUTILS_BINARY:=src/diff
11 DIFFUTILS_TARGET_BINARY:=usr/bin/diff
12
13 $(DL_DIR)/$(DIFFUTILS_SOURCE):
14 $(WGET) -P $(DL_DIR) $(DIFFUTILS_SITE)/$(DIFFUTILS_SOURCE)
15
16 diffutils-source: $(DL_DIR)/$(DIFFUTILS_SOURCE)
17
18 $(DIFFUTILS_DIR)/.unpacked: $(DL_DIR)/$(DIFFUTILS_SOURCE)
19 $(DIFFUTILS_CAT) $(DL_DIR)/$(DIFFUTILS_SOURCE) | tar -C $(BUILD_DIR) -xvf -
20 touch $(DIFFUTILS_DIR)/.unpacked
21
22 $(DIFFUTILS_DIR)/.configured: $(DIFFUTILS_DIR)/.unpacked
23 (cd $(DIFFUTILS_DIR); rm -rf config.cache; \
24 $(TARGET_CONFIGURE_OPTS) \
25 CFLAGS="$(TARGET_CFLAGS)" \
26 ./configure \
27 --target=$(GNU_TARGET_NAME) \
28 --host=$(GNU_TARGET_NAME) \
29 --build=$(GNU_HOST_NAME) \
30 --prefix=/usr \
31 --exec-prefix=/usr \
32 --bindir=/usr/bin \
33 --sbindir=/usr/sbin \
34 --libexecdir=/usr/lib \
35 --sysconfdir=/etc \
36 --datadir=/usr/share \
37 --localstatedir=/var \
38 --mandir=/usr/man \
39 --infodir=/usr/info \
40 $(DISABLE_NLS) \
41 $(DISABLE_LARGEFILE) \
42 );
43 touch $(DIFFUTILS_DIR)/.configured
44
45 $(DIFFUTILS_DIR)/$(DIFFUTILS_BINARY): $(DIFFUTILS_DIR)/.configured
46 $(MAKE) CC=$(TARGET_CC) -C $(DIFFUTILS_DIR)
47
48 $(TARGET_DIR)/$(DIFFUTILS_TARGET_BINARY): $(DIFFUTILS_DIR)/$(DIFFUTILS_BINARY)
49 $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(DIFFUTILS_DIR) install
50 rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
51 $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
52
53 diffutils: uclibc $(TARGET_DIR)/$(DIFFUTILS_TARGET_BINARY)
54
55 diffutils-clean:
56 $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(DIFFUTILS_DIR) uninstall
57 -$(MAKE) -C $(DIFFUTILS_DIR) clean
58
59 diffutils-dirclean:
60 rm -rf $(DIFFUTILS_DIR)
61
This page took 0.042718 seconds and 5 git commands to generate.