1 #############################################################
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
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}
24 $(TCL_DIR
)/.configured
: $(TCL_DIR
)/.unpacked
25 (cd
$(TCL_DIR
); rm -rf config.cache
; \
27 $(TARGET_CONFIGURE_OPTS
) \
28 CFLAGS
="$(TARGET_CFLAGS)" \
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 \
38 $(TCL_DIR
)/.built
: $(TCL_DIR
)/.configured
41 $(TCL_DIR
)/.tested
: $(TCL_DIR
)/.built
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}
52 @if
[ -d
$(TCL_DIR
)/Makefile
] ; then \
53 $(MAKE
) -C
$(TCL_DIR
) clean ; \
58 #############################################################
60 # Toplevel Makefile options
62 #############################################################
63 ifeq ($(strip $(BR2_PACKAGE_TCL
)),y
)