Add new kmod-pppoe package, add ppp_async.o to kmod-ppp
[openwrt.git] / obsolete-buildroot / make / file.mk
1 #############################################################
2 #
3 # file
4 #
5 #############################################################
6 FILE_SOURCE:=file-4.08.tar.gz
7 FILE_SITE:=ftp://ftp.astron.com/pub/file
8 FILE_DIR:=$(BUILD_DIR)/file-4.08
9 FILE_CAT:=zcat
10 FILE_BINARY:=src/file
11 FILE_TARGET_BINARY:=usr/bin/file
12
13 $(DL_DIR)/$(FILE_SOURCE):
14 $(WGET) -P $(DL_DIR) $(FILE_SITE)/$(FILE_SOURCE)
15
16 file-source: $(DL_DIR)/$(FILE_SOURCE)
17
18 $(FILE_DIR)/.unpacked: $(DL_DIR)/$(FILE_SOURCE)
19 $(FILE_CAT) $(DL_DIR)/$(FILE_SOURCE) | tar -C $(BUILD_DIR) -xvf -
20 cat $(SOURCE_DIR)/file.patch | patch -p1 -d $(FILE_DIR)
21 touch $(FILE_DIR)/.unpacked
22
23 $(FILE_DIR)/.configured: $(FILE_DIR)/.unpacked
24 (cd $(FILE_DIR); rm -rf config.cache; \
25 $(TARGET_CONFIGURE_OPTS) \
26 CFLAGS="$(TARGET_CFLAGS)" \
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/misc \
38 --localstatedir=/var \
39 --mandir=/usr/man \
40 --infodir=/usr/info \
41 $(DISABLE_NLS) \
42 $(DISABLE_LARGEFILE) \
43 --disable-fsect-man5 \
44 );
45 touch $(FILE_DIR)/.configured
46
47 $(FILE_DIR)/$(FILE_BINARY): $(FILE_DIR)/.configured
48 $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(FILE_DIR)
49
50 $(TARGET_DIR)/$(FILE_TARGET_BINARY): $(FILE_DIR)/$(FILE_BINARY)
51 $(MAKE) $(TARGET_CONFIGURE_OPTS) DESTDIR=$(TARGET_DIR) -C $(FILE_DIR) install
52 -($(STRIP) $(TARGET_DIR)/usr/lib/libmagic.so.*.* > /dev/null 2>&1)
53 rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
54 $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
55
56 file: zlib uclibc $(TARGET_DIR)/$(FILE_TARGET_BINARY)
57
58 file-clean:
59 $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(FILE_DIR) uninstall
60 -$(MAKE) -C $(FILE_DIR) clean
61
62 file-dirclean:
63 rm -rf $(FILE_DIR)
64
This page took 0.055869 seconds and 5 git commands to generate.