2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2005-05-31 05:17:33 +02:00
|
|
|
#
|
2013-07-22 07:30:22 +02:00
|
|
|
# tcl
|
2005-05-31 05:17:33 +02:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2012-01-24 14:59:26 +01:00
|
|
|
TCL_VERSION_MAJOR = 8.4
|
|
|
|
TCL_VERSION_MINOR = 19
|
|
|
|
TCL_VERSION = $(TCL_VERSION_MAJOR).$(TCL_VERSION_MINOR)
|
2012-01-23 21:23:24 +01:00
|
|
|
TCL_SOURCE = tcl$(TCL_VERSION)-src.tar.gz
|
2012-08-26 01:52:48 +02:00
|
|
|
TCL_SITE = http://downloads.sourceforge.net/project/tcl/Tcl/$(TCL_VERSION_MAJOR).$(TCL_VERSION_MINOR)
|
2012-12-07 12:15:01 +01:00
|
|
|
TCL_LICENSE = tcl license
|
2013-05-08 03:34:21 +02:00
|
|
|
TCL_LICENSE_FILES = license.terms
|
2010-02-13 15:51:28 +01:00
|
|
|
TCL_SUBDIR = unix
|
2013-06-24 10:40:54 +02:00
|
|
|
TCL_INSTALL_STAGING = YES
|
2010-02-13 15:51:28 +01:00
|
|
|
TCL_CONF_OPT = \
|
2005-05-31 05:17:33 +02:00
|
|
|
--disable-symbols \
|
|
|
|
--disable-langinfo \
|
2010-02-13 15:51:28 +01:00
|
|
|
--disable-framework
|
2005-05-31 05:17:33 +02:00
|
|
|
|
2012-01-23 21:23:24 +01:00
|
|
|
HOST_TCL_CONF_OPT = \
|
|
|
|
--disable-symbols \
|
|
|
|
--disable-langinfo \
|
|
|
|
--disable-framework
|
|
|
|
|
2013-06-24 10:40:52 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_TCL_DEL_ENCODINGS),y)
|
|
|
|
define TCL_REMOVE_ENCODINGS
|
|
|
|
rm -rf $(TARGET_DIR)/usr/lib/tcl$(TCL_VERSION_MAJOR)/encoding/*
|
|
|
|
endef
|
|
|
|
TCL_POST_INSTALL_TARGET_HOOKS += TCL_REMOVE_ENCODINGS
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_TCL_SHLIB_ONLY),y)
|
|
|
|
define TCL_REMOVE_TCLSH
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/tclsh$(TCL_VERSION_MAJOR)
|
|
|
|
endef
|
|
|
|
TCL_POST_INSTALL_TARGET_HOOKS += TCL_REMOVE_TCLSH
|
2013-06-24 10:40:55 +02:00
|
|
|
else
|
|
|
|
define TCL_SYMLINK_TCLSH
|
|
|
|
ln -s tclsh$(TCL_VERSION_MAJOR) $(TARGET_DIR)/usr/bin/tclsh
|
|
|
|
endef
|
|
|
|
TCL_POST_INSTALL_TARGET_HOOKS += TCL_SYMLINK_TCLSH
|
2013-06-24 10:40:52 +02:00
|
|
|
endif
|
|
|
|
|
2013-06-24 10:40:56 +02:00
|
|
|
# library get installed read only, so strip fails
|
|
|
|
define TCL_FIXUP_RO_LIB
|
|
|
|
chmod +w $(TARGET_DIR)/usr/lib/libtcl*
|
|
|
|
endef
|
|
|
|
|
|
|
|
TCL_POST_INSTALL_TARGET_HOOKS += TCL_FIXUP_RO_LIB
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|
2012-07-03 00:06:54 +02:00
|
|
|
$(eval $(host-autotools-package))
|