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
|
|
|
|
2014-04-08 22:54:04 +02:00
|
|
|
TCL_VERSION_MAJOR = 8.6
|
2016-03-18 16:11:26 +01:00
|
|
|
TCL_VERSION = $(TCL_VERSION_MAJOR).5
|
2012-01-23 21:23:24 +01:00
|
|
|
TCL_SOURCE = tcl$(TCL_VERSION)-src.tar.gz
|
2013-09-25 12:12:42 +02:00
|
|
|
TCL_SITE = http://downloads.sourceforge.net/project/tcl/Tcl/$(TCL_VERSION)
|
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
|
2014-04-08 22:54:04 +02:00
|
|
|
TCL_AUTORECONF = YES
|
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
TCL_CONF_OPTS = \
|
2014-12-22 09:12:05 +01:00
|
|
|
--disable-symbols \
|
|
|
|
--disable-langinfo \
|
2016-03-30 18:14:08 +02:00
|
|
|
--disable-framework
|
2005-05-31 05:17:33 +02:00
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
HOST_TCL_CONF_OPTS = \
|
2014-12-22 09:12:05 +01:00
|
|
|
--disable-symbols \
|
|
|
|
--disable-langinfo \
|
|
|
|
--disable-framework
|
2012-01-23 21:23:24 +01:00
|
|
|
|
2014-04-08 22:54:04 +02:00
|
|
|
# I haven't found a good way to force pkgs to not build
|
|
|
|
# or configure without just removing the entire pkg directory.
|
|
|
|
define HOST_TCL_REMOVE_PACKAGES
|
2016-03-30 18:14:07 +02:00
|
|
|
rm -fr $(@D)/pkgs/sqlite3* $(@D)/pkgs/tdbc*
|
2014-04-08 22:54:04 +02:00
|
|
|
endef
|
|
|
|
HOST_TCL_PRE_CONFIGURE_HOOKS += HOST_TCL_REMOVE_PACKAGES
|
2016-03-30 18:14:08 +02:00
|
|
|
|
|
|
|
# We remove the bundled sqlite as we prefer to not use bundled stuff at all.
|
2014-04-08 22:54:04 +02:00
|
|
|
define TCL_REMOVE_PACKAGES
|
2016-03-30 18:14:08 +02:00
|
|
|
rm -fr $(@D)/pkgs/sqlite3* \
|
2016-03-30 18:14:09 +02:00
|
|
|
$(if $(BR2_PACKAGE_MYSQL),,$(@D)/pkgs/tdbcmysql*) \
|
2016-03-30 18:14:07 +02:00
|
|
|
$(@D)/pkgs/tdbcodbc* \
|
2016-03-30 18:14:10 +02:00
|
|
|
$(if $(BR2_PACKAGE_POSTGRESQL),,$(@D)/pkgs/tdbcpostgres*) \
|
2016-03-30 18:14:07 +02:00
|
|
|
$(if $(BR2_PACKAGE_SQLITE),,$(@D)/pkgs/tdbcsqlite3*)
|
2014-04-08 22:54:04 +02:00
|
|
|
endef
|
|
|
|
TCL_PRE_CONFIGURE_HOOKS += TCL_REMOVE_PACKAGES
|
|
|
|
|
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
|
2013-10-14 15:23:02 +02:00
|
|
|
ln -sf tclsh$(TCL_VERSION_MAJOR) $(TARGET_DIR)/usr/bin/tclsh
|
2013-06-24 10:40:55 +02:00
|
|
|
endef
|
|
|
|
TCL_POST_INSTALL_TARGET_HOOKS += TCL_SYMLINK_TCLSH
|
2013-06-24 10:40:52 +02:00
|
|
|
endif
|
|
|
|
|
2014-04-08 22:54:04 +02:00
|
|
|
# Until someone needs it, we don't handle locale installation. tcl has
|
|
|
|
# a complicated method of translating LANG-style locale names into its internal
|
|
|
|
# .msg name which makes it difficult to save the correct locales per the
|
|
|
|
# configured whitelist.
|
|
|
|
define TCL_REMOVE_EXTRA
|
|
|
|
rm -fr $(TARGET_DIR)/usr/lib/tclConfig.sh \
|
2014-10-27 09:25:28 +01:00
|
|
|
$(TARGET_DIR)/usr/lib/tclooConfig.sh \
|
|
|
|
$(TARGET_DIR)/usr/lib/tcl$(TCL_VERSION_MAJOR)/tclAppInit.c \
|
|
|
|
$(TARGET_DIR)/usr/lib/tcl$(TCL_VERSION_MAJOR)/msgs
|
2013-06-24 10:40:56 +02:00
|
|
|
endef
|
2014-04-08 22:54:04 +02:00
|
|
|
TCL_POST_INSTALL_TARGET_HOOKS += TCL_REMOVE_EXTRA
|
2013-06-24 10:40:56 +02:00
|
|
|
|
2016-03-30 18:14:09 +02:00
|
|
|
TCL_DEPENDENCIES = $(if $(BR2_PACKAGE_SQLITE),sqlite) \
|
2016-03-30 18:14:10 +02:00
|
|
|
$(if $(BR2_PACKAGE_MYSQL),mysql) \
|
|
|
|
$(if $(BR2_PACKAGE_POSTGRESQL),postgresql)
|
2014-04-08 22:54:04 +02:00
|
|
|
HOST_TCL_DEPENDENCIES =
|
2013-06-24 10:40:56 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|
2012-07-03 00:06:54 +02:00
|
|
|
$(eval $(host-autotools-package))
|