]> Git Repo - buildroot-mgba.git/blame - package/bison/bison.mk
don't use ftp for gnu stuff, a few version bumps as well,
[buildroot-mgba.git] / package / bison / bison.mk
CommitLineData
089db859
EA
1#############################################################
2#
3# bison
4#
5#############################################################
48563695 6BISON_VER:=2.3
dedc27c6 7BISON_SOURCE:=bison-$(BISON_VER).tar.bz2
48563695 8BISON_SITE:=http://ftp.gnu.org/pub/gnu/bison
dedc27c6 9BISON_DIR:=$(BUILD_DIR)/bison-$(BISON_VER)
089db859
EA
10BISON_CAT:=bzcat
11BISON_BINARY:=src/bison
12BISON_TARGET_BINARY:=usr/bin/bison
13
14$(DL_DIR)/$(BISON_SOURCE):
15 $(WGET) -P $(DL_DIR) $(BISON_SITE)/$(BISON_SOURCE)
16
17bison-source: $(DL_DIR)/$(BISON_SOURCE)
18
19$(BISON_DIR)/.unpacked: $(DL_DIR)/$(BISON_SOURCE)
bb05a9ad 20 $(BISON_CAT) $(DL_DIR)/$(BISON_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
089db859
EA
21 touch $(BISON_DIR)/.unpacked
22
23$(BISON_DIR)/.configured: $(BISON_DIR)/.unpacked
24 (cd $(BISON_DIR); rm -rf config.cache; \
1fc3f2f3 25 $(TARGET_CONFIGURE_OPTS) \
d632d42b 26 CFLAGS="$(TARGET_CFLAGS)" \
0e956fc1 27 gt_cv_func_gnugettext2_libintl=yes \
089db859
EA
28 ./configure \
29 --target=$(GNU_TARGET_NAME) \
1fc3f2f3
EA
30 --host=$(GNU_TARGET_NAME) \
31 --build=$(GNU_HOST_NAME) \
089db859
EA
32 --prefix=/usr \
33 --exec-prefix=/usr \
34 --bindir=/usr/bin \
35 --sbindir=/usr/sbin \
36 --libexecdir=/usr/lib \
37 --sysconfdir=/etc \
38 --datadir=/usr/share \
39 --localstatedir=/var \
40 --mandir=/usr/man \
41 --infodir=/usr/info \
0e956fc1 42 $(DISABLE_NLS) \
089db859 43 );
dedc27c6 44 echo 'all install:' > $(BISON_DIR)/examples/Makefile
dfebda00 45 touch $(BISON_DIR)/.configured
089db859
EA
46
47$(BISON_DIR)/$(BISON_BINARY): $(BISON_DIR)/.configured
48 $(MAKE) CC=$(TARGET_CC) -C $(BISON_DIR)
49
50$(TARGET_DIR)/$(BISON_TARGET_BINARY): $(BISON_DIR)/$(BISON_BINARY)
51 $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(BISON_DIR) install
52 rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
53 $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
44eedc5c 54 cp -a package/bison/yacc $(TARGET_DIR)/usr/bin/yacc
089db859
EA
55
56bison: uclibc $(TARGET_DIR)/$(BISON_TARGET_BINARY)
57
58bison-clean:
59 $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(BISON_DIR) uninstall
60 -$(MAKE) -C $(BISON_DIR) clean
61
62bison-dirclean:
63 rm -rf $(BISON_DIR)
64
d06645d8
EA
65#############################################################
66#
67# Toplevel Makefile options
68#
69#############################################################
70ifeq ($(strip $(BR2_PACKAGE_BISON)),y)
71TARGETS+=bison
72endif
This page took 0.068113 seconds and 4 git commands to generate.