Add offline_root option to ipkg.conf
[openwrt.git] / obsolete-buildroot / make / flex.mk
1 #############################################################
2 #
3 # flex
4 #
5 #############################################################
6 FLEX_SOURCE:=flex_2.5.4a.orig.tar.gz
7 FLEX_PATCH:=flex_2.5.4a-24.diff.gz
8 FLEX_SITE:=http://ftp.debian.org/debian/pool/main/f/flex
9 FLEX_DIR:=$(BUILD_DIR)/flex-2.5.4
10 FLEX_CAT:=zcat
11 FLEX_BINARY:=flex
12 FLEX_TARGET_BINARY:=usr/bin/flex
13
14 $(DL_DIR)/$(FLEX_SOURCE):
15 $(WGET) -P $(DL_DIR) $(FLEX_SITE)/$(FLEX_SOURCE)
16
17 $(DL_DIR)/$(FLEX_PATCH):
18 $(WGET) -P $(DL_DIR) $(FLEX_SITE)/$(FLEX_PATCH)
19
20 flex-source: $(DL_DIR)/$(FLEX_SOURCE) $(DL_DIR)/$(FLEX_PATCH)
21
22 $(FLEX_DIR)/.unpacked: $(DL_DIR)/$(FLEX_SOURCE) $(DL_DIR)/$(FLEX_PATCH)
23 $(FLEX_CAT) $(DL_DIR)/$(FLEX_SOURCE) | tar -C $(BUILD_DIR) -xvf -
24 #$(SOURCE_DIR)/patch-kernel.sh $(FLEX_DIR) $(DL_DIR) $(FLEX_PATCH)
25 touch $(FLEX_DIR)/.unpacked
26
27 $(FLEX_DIR)/.configured: $(FLEX_DIR)/.unpacked
28 (cd $(FLEX_DIR); autoconf; rm -rf config.cache; \
29 $(TARGET_CONFIGURE_OPTS) \
30 CFLAGS="$(TARGET_CFLAGS)" \
31 ./configure \
32 --target=$(GNU_TARGET_NAME) \
33 --host=$(GNU_TARGET_NAME) \
34 --build=$(GNU_HOST_NAME) \
35 --prefix=/usr \
36 --exec-prefix=/usr \
37 --bindir=/usr/bin \
38 --sbindir=/usr/sbin \
39 --libexecdir=/usr/lib \
40 --sysconfdir=/etc \
41 --datadir=/usr/share \
42 --localstatedir=/var \
43 --mandir=/usr/man \
44 --infodir=/usr/info \
45 $(DISABLE_NLS) \
46 $(DISABLE_LARGEFILE) \
47 );
48 touch $(FLEX_DIR)/.configured
49
50 $(FLEX_DIR)/$(FLEX_BINARY): $(FLEX_DIR)/.configured
51 $(MAKE) -C $(FLEX_DIR)
52
53 $(TARGET_DIR)/$(FLEX_TARGET_BINARY): $(FLEX_DIR)/$(FLEX_BINARY)
54 $(MAKE) \
55 prefix=$(TARGET_DIR)/usr \
56 exec_prefix=$(TARGET_DIR)/usr \
57 bindir=$(TARGET_DIR)/usr/bin \
58 sbindir=$(TARGET_DIR)/usr/sbin \
59 libexecdir=$(TARGET_DIR)/usr/lib \
60 datadir=$(TARGET_DIR)/usr/share \
61 sysconfdir=$(TARGET_DIR)/etc \
62 sharedstatedir=$(TARGET_DIR)/usr/com \
63 localstatedir=$(TARGET_DIR)/var \
64 libdir=$(TARGET_DIR)/usr/lib \
65 infodir=$(TARGET_DIR)/usr/info \
66 mandir=$(TARGET_DIR)/usr/man \
67 includedir=$(TARGET_DIR)/usr/include \
68 -C $(FLEX_DIR) install;
69 rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
70 $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
71 (cd $(TARGET_DIR)/usr/bin; ln -s flex lex)
72
73 flex: uclibc $(TARGET_DIR)/$(FLEX_TARGET_BINARY)
74
75 flex-clean:
76 $(MAKE) DESTDIR=$(TARGET_DIR) -C $(FLEX_DIR) uninstall
77 -$(MAKE) -C $(FLEX_DIR) clean
78
79 flex-dirclean:
80 rm -rf $(FLEX_DIR)
81
This page took 0.047468 seconds and 5 git commands to generate.