Update bridge utils to latest version
[gumsense-br.git] / package / tcl / tcl.mk
blobbfa2389f5c006c88a8b7125fec2ebbabbffb187f
1 #############################################################
3 # Tcl
5 #############################################################
8 #TCL_SOURCE=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/tcl/tcl8.4.11-src.tar.gz
9 TCL_EXTRACTED=tcl8.4.12
10 TCL_DIR=$(BUILD_DIR)/${TCL_EXTRACTED}/unix
11 TCL_TARBALL=tcl8.4.12rc3-src.tar.gz
12 TCL_SOURCE=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/tcl/${TCL_TARBALL}
13 TCL_PATCH=package/tcl/tcl.patch
14 TCL_DEPS=
16 $(DL_DIR)/${TCL_TARBALL}:
17 $(WGET) -O $@ $(TCL_SOURCE)
19 $(TCL_DIR)/.unpacked: $(DL_DIR)/${TCL_TARBALL}
20 tar -C $(BUILD_DIR) -xzvf $<
21 cat $(TCL_PATCH) | patch -p1 -d $(BUILD_DIR)/${TCL_EXTRACTED}
22 touch $@
24 $(TCL_DIR)/.configured: $(TCL_DIR)/.unpacked
25 (cd $(TCL_DIR); rm -rf config.cache; \
26 autoconf; \
27 $(TARGET_CONFIGURE_OPTS) \
28 CFLAGS="$(TARGET_CFLAGS)" \
29 ./configure \
30 --target=$(GNU_TARGET_NAME) \
31 --host=$(GNU_TARGET_NAME) \
32 --build=$(GNU_HOST_NAME) \
33 --prefix=$(TARGET_DIR)/usr \
34 --includedir=$(TARGET_DIR)/include \
36 touch $@
38 $(TCL_DIR)/.built: $(TCL_DIR)/.configured
39 $(MAKE) -C $(TCL_DIR)
41 $(TCL_DIR)/.tested: $(TCL_DIR)/.built
42 $(MAKE) -C $(TCL_DIR)
44 $(TCL_DIR)/.installed: $(TCL_DIR)/.tested
45 $(MAKE) -C $(TCL_DIR) install
47 tcl: uclibc $(DEPS) $(TCL_DIR)/.installed
49 tcl-source: $(DL_DIR)/${TCL_TARBALL}
51 tcl-clean:
52 @if [ -d $(TCL_DIR)/Makefile ] ; then \
53 $(MAKE) -C $(TCL_DIR) clean ; \
54 fi;
56 tcl-dirclean:
57 rm -rf $(TCL_DIR)
58 #############################################################
60 # Toplevel Makefile options
62 #############################################################
63 ifeq ($(strip $(BR2_PACKAGE_TCL)),y)
64 TARGETS+=tcl
65 endif