1 #############################################################
5 #############################################################
6 BISON_SOURCE
:=bison-1.35.
tar.bz2
7 BISON_SITE
:=ftp
://ftp.gnu.org
/gnu
/bison
8 BISON_DIR
:=$(BUILD_DIR
)/bison-1.35
10 BISON_BINARY
:=src
/bison
11 BISON_TARGET_BINARY
:=usr
/bin
/bison
13 $(DL_DIR
)/$(BISON_SOURCE
):
14 $(WGET
) -P
$(DL_DIR
) $(BISON_SITE
)/$(BISON_SOURCE
)
16 bison-source
: $(DL_DIR
)/$(BISON_SOURCE
)
18 $(BISON_DIR
)/.unpacked
: $(DL_DIR
)/$(BISON_SOURCE
)
19 $(BISON_CAT
) $(DL_DIR
)/$(BISON_SOURCE
) |
tar -C
$(BUILD_DIR
) -xvf
-
20 touch
$(BISON_DIR
)/.unpacked
22 $(BISON_DIR
)/.configured
: $(BISON_DIR
)/.unpacked
23 (cd
$(BISON_DIR
); rm -rf config.cache
; \
24 $(TARGET_CONFIGURE_OPTS
) \
25 CFLAGS
="$(TARGET_CFLAGS)" \
26 gt_cv_func_gnugettext2_libintl
=yes \
28 --target
=$(GNU_TARGET_NAME
) \
29 --host
=$(GNU_TARGET_NAME
) \
30 --build
=$(GNU_HOST_NAME
) \
35 --libexecdir
=/usr
/lib \
37 --datadir=/usr
/share \
38 --localstatedir
=/var \
43 touch
$(BISON_DIR
)/.configured
45 $(BISON_DIR
)/$(BISON_BINARY
): $(BISON_DIR
)/.configured
46 $(MAKE
) CC
=$(TARGET_CC
) -C
$(BISON_DIR
)
48 $(TARGET_DIR
)/$(BISON_TARGET_BINARY
): $(BISON_DIR
)/$(BISON_BINARY
)
49 $(MAKE
) DESTDIR
=$(TARGET_DIR
) CC
=$(TARGET_CC
) -C
$(BISON_DIR
) install
50 rm -rf
$(TARGET_DIR
)/share
/locale
$(TARGET_DIR
)/usr
/info \
51 $(TARGET_DIR
)/usr
/man
$(TARGET_DIR
)/usr
/share
/doc
52 cp
-a
$(SOURCE_DIR
)/yacc $(TARGET_DIR
)/usr
/bin
/yacc
54 bison
: uclibc
$(TARGET_DIR
)/$(BISON_TARGET_BINARY
)
57 $(MAKE
) DESTDIR
=$(TARGET_DIR
) CC
=$(TARGET_CC
) -C
$(BISON_DIR
) uninstall
58 -$(MAKE
) -C
$(BISON_DIR
) clean