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
|
2014-09-05 17:46:05 +02:00
|
|
|
TCL_VERSION = $(TCL_VERSION_MAJOR).2
|
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
|
|
|
|
|
|
|
|
# Note that --with-system-sqlite will only make a difference
|
|
|
|
# in the sqlite package (which gets removed if sqlite not
|
|
|
|
# configured). Don't need to worry about conditionally including
|
|
|
|
# it in the configure options
|
2014-09-27 21:32:44 +02:00
|
|
|
TCL_CONF_OPTS = \
|
2005-05-31 05:17:33 +02:00
|
|
|
--disable-symbols \
|
|
|
|
--disable-langinfo \
|
2014-04-08 22:54:04 +02:00
|
|
|
--disable-framework \
|
|
|
|
--with-system-sqlite
|
2005-05-31 05:17:33 +02:00
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
HOST_TCL_CONF_OPTS = \
|
2012-01-23 21:23:24 +01:00
|
|
|
--disable-symbols \
|
|
|
|
--disable-langinfo \
|
|
|
|
--disable-framework
|
|
|
|
|
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
|
|
|
|
rm -fr $(@D)/pkgs/sqlite3.8.0 \
|
2014-10-27 09:25:28 +01:00
|
|
|
$(@D)/pkgs/tdbc1.0.0 \
|
|
|
|
$(@D)/pkgs/tdbcmysql1.0.0 \
|
|
|
|
$(@D)/pkgs/tdbcodbc1.0.0 \
|
|
|
|
$(@D)/pkgs/tdbcpostgres1.0.0 \
|
|
|
|
$(@D)/pkgs/tdbcsqlite3-1.0.0
|
2014-04-08 22:54:04 +02:00
|
|
|
endef
|
|
|
|
HOST_TCL_PRE_CONFIGURE_HOOKS += HOST_TCL_REMOVE_PACKAGES
|
|
|
|
define TCL_REMOVE_PACKAGES
|
|
|
|
rm -fr $(if $(BR2_PACKAGE_SQLITE),,$(@D)/pkgs/sqlite3.8.0) \
|
2014-10-27 09:25:28 +01:00
|
|
|
$(if $(BR2_PACKAGE_SQLITE),,$(@D)/pkgs/tdbc1.0.0) \
|
|
|
|
$(@D)/pkgs/tdbcmysql1.0.0 \
|
|
|
|
$(@D)/pkgs/tdbcodbc1.0.0 \
|
|
|
|
$(@D)/pkgs/tdbcpostgres1.0.0 \
|
|
|
|
$(if $(BR2_PACKAGE_SQLITE),,$(@D)/pkgs/tdbcsqlite3-1.0.0)
|
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
|
|
|
|
2014-04-08 22:54:04 +02:00
|
|
|
TCL_DEPENDENCIES = $(if $(BR2_PACKAGE_SQLITE),sqlite)
|
|
|
|
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))
|