2005-05-31 05:17:33 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# TCL8.4
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
TCL_VERSION:=8.4.9
|
|
|
|
TCL_SOURCE:=tcl$(TCL_VERSION)-src.tar.gz
|
2005-06-09 14:15:00 +02:00
|
|
|
TCL_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/tcl
|
2005-05-31 05:17:33 +02:00
|
|
|
TCL_DIR:=$(BUILD_DIR)/tcl$(TCL_VERSION)
|
|
|
|
|
|
|
|
$(DL_DIR)/$(TCL_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(TCL_SITE),$(TCL_SOURCE))
|
2005-05-31 05:17:33 +02:00
|
|
|
|
|
|
|
$(TCL_DIR)/.source: $(DL_DIR)/$(TCL_SOURCE)
|
2006-10-01 17:17:52 +02:00
|
|
|
$(ZCAT) $(DL_DIR)/$(TCL_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2005-06-24 10:36:13 +02:00
|
|
|
toolchain/patch-kernel.sh $(TCL_DIR) package/tcl/ tcl\*.patch
|
2005-05-31 05:17:33 +02:00
|
|
|
touch $(TCL_DIR)/.source
|
|
|
|
|
|
|
|
$(TCL_DIR)/.configured: $(TCL_DIR)/.source
|
2007-09-25 14:34:09 +02:00
|
|
|
(cd $(TCL_DIR)/unix; rm -f config.cache; \
|
2005-05-31 05:17:33 +02:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2009-10-01 21:24:42 +02:00
|
|
|
./configure $(QUIET) \
|
2005-05-31 05:17:33 +02:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--enable-shared \
|
|
|
|
--disable-symbols \
|
|
|
|
--disable-langinfo \
|
|
|
|
--disable-framework \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
|
|
|
touch $(TCL_DIR)/.configured
|
2005-05-31 05:17:33 +02:00
|
|
|
|
|
|
|
$(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
|
2007-10-01 18:15:31 +02:00
|
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libtcl8.4.so
|
2005-05-31 05:17:33 +02:00
|
|
|
rm -Rf $(TARGET_DIR)/usr/man
|
2008-12-08 09:15:27 +01:00
|
|
|
-if [ "$(BR2_PACKAGE_TCL_DEL_ENCODINGS)" == "y" ]; then \
|
2005-05-31 05:17:33 +02:00
|
|
|
rm -Rf $(TARGET_DIR)/usr/lib/tcl8.4/encoding/*; \
|
|
|
|
fi
|
2008-12-08 09:15:27 +01:00
|
|
|
-if [ "$(BR2_PACKAGE_TCL_SHLIB_ONLY)" == "y" ]; then \
|
2005-05-31 05:17:33 +02:00
|
|
|
rm -f $(TARGET_DIR)/usr/bin/tclsh8.4; \
|
|
|
|
fi
|
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
tcl: $(TARGET_DIR)/usr/lib/libtcl8.4.so
|
2005-05-31 05:17:33 +02:00
|
|
|
|
|
|
|
tcl-source: $(DL_DIR)/$(TCL_SOURCE)
|
|
|
|
|
|
|
|
tcl-clean:
|
|
|
|
$(MAKE) prefix=$(TARGET_DIR)/usr -C $(TCL_DIR)/unix uninstall
|
|
|
|
-$(MAKE) -C $(TCL_DIR)/unix clean
|
|
|
|
|
2005-06-03 05:57:17 +02:00
|
|
|
tcl-dirclean:
|
2005-06-09 11:52:48 +02:00
|
|
|
rm -rf $(TCL_DIR)
|
2005-05-31 05:17:33 +02:00
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_TCL),y)
|
2005-05-31 05:17:33 +02:00
|
|
|
TARGETS+=tcl
|
|
|
|
endif
|