mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-16 16:53:27 +08:00
1d63e8a8d9
mirrors tend to change, move, go down, etc from time to time.
70 lines
2.0 KiB
Makefile
70 lines
2.0 KiB
Makefile
#############################################################
|
|
#
|
|
# TCL8.4
|
|
#
|
|
#############################################################
|
|
TCL_VERSION:=8.4.9
|
|
TCL_SOURCE:=tcl$(TCL_VERSION)-src.tar.gz
|
|
TCL_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/tcl
|
|
TCL_DIR:=$(BUILD_DIR)/tcl$(TCL_VERSION)
|
|
|
|
$(DL_DIR)/$(TCL_SOURCE):
|
|
$(WGET) -P $(DL_DIR) $(TCL_SITE)/$(TCL_SOURCE)
|
|
|
|
$(TCL_DIR)/.source: $(DL_DIR)/$(TCL_SOURCE)
|
|
zcat $(DL_DIR)/$(TCL_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
toolchain/patch-kernel.sh $(TCL_DIR) package/tcl/ tcl*.patch
|
|
touch $(TCL_DIR)/.source
|
|
|
|
$(TCL_DIR)/.configured: $(TCL_DIR)/.source
|
|
(cd $(TCL_DIR)/unix; \
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
./configure \
|
|
--target=$(GNU_TARGET_NAME) \
|
|
--host=$(GNU_TARGET_NAME) \
|
|
--build=$(GNU_HOST_NAME) \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--enable-shared \
|
|
--disable-symbols \
|
|
--disable-langinfo \
|
|
--disable-framework \
|
|
);
|
|
touch $(TCL_DIR)/.configured;
|
|
|
|
$(TCL_DIR)/unix/libtcl8.4.so: $(TCL_DIR)/.configured
|
|
$(MAKE) CC=$(TARGET_CC) -C $(TCL_DIR)/unix
|
|
|
|
$(TARGET_DIR)/usr/lib/libtcl8.4.so: $(TCL_DIR)/unix/libtcl8.4.so
|
|
$(MAKE) INSTALL_ROOT=$(TARGET_DIR) -C $(TCL_DIR)/unix install
|
|
-$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/libtcl8.4.so
|
|
rm -Rf $(TARGET_DIR)/usr/man
|
|
rm -Rf $(TARGET_DIR)/usr/include
|
|
-if [ "$(strip $(BR2_PACKAGE_TCL_DEL_ENCODINGS))" == "y" ]; then \
|
|
rm -Rf $(TARGET_DIR)/usr/lib/tcl8.4/encoding/*; \
|
|
fi
|
|
-if [ "$(strip $(BR2_PACKAGE_TCL_SHLIB_ONLY))" == "y" ]; then \
|
|
rm -f $(TARGET_DIR)/usr/bin/tclsh8.4; \
|
|
fi
|
|
|
|
tcl: uclibc $(TARGET_DIR)/usr/lib/libtcl8.4.so
|
|
|
|
tcl-source: $(DL_DIR)/$(TCL_SOURCE)
|
|
|
|
tcl-clean:
|
|
$(MAKE) prefix=$(TARGET_DIR)/usr -C $(TCL_DIR)/unix uninstall
|
|
-$(MAKE) -C $(TCL_DIR)/unix clean
|
|
|
|
tcl-dirclean:
|
|
rm -rf $(TCL_DIR)
|
|
|
|
#############################################################
|
|
#
|
|
# Toplevel Makefile options
|
|
#
|
|
#############################################################
|
|
ifeq ($(strip $(BR2_PACKAGE_TCL)),y)
|
|
TARGETS+=tcl
|
|
endif
|