2 # Copyright (C) 2006-2018 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
11 TCL_MAJOR_VERSION
:=8.6
12 PKG_VERSION
:=${TCL_MAJOR_VERSION}.9
15 PKG_SOURCE
:=$(PKG_NAME
)$(PKG_VERSION
)-src.
tar.gz
16 PKG_SOURCE_URL
:=@SF
/$(PKG_NAME
)
17 PKG_HASH
:=ad0cd2de2c87b9ba8086b43957a0de3eb2eb565c7159d5f53ccbba3feb915f4e
19 PKG_LICENSE_FILES
:=license.terms
20 PKG_MAINTAINER
:=Joe Mistachkin
<joe@mistachkin.com
>
21 PKG_CPE_ID
:=cpe
:/a
:tcl_tk
:tcl_tk
23 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)$(PKG_VERSION
)
24 HOST_BUILD_DIR
:=$(BUILD_DIR_HOST
)/$(PKG_NAME
)$(PKG_VERSION
)
29 include $(INCLUDE_DIR
)/host-build.mk
30 include $(INCLUDE_DIR
)/package.mk
36 DEPENDS
:=+libpthread
+zlib
37 TITLE
:=The Tcl language
38 URL
:=https
://www.tcl.tk
/
41 define Package
/tcl
/description
42 Tcl
, or Tool Command Language
, is a an elegant
, versatile
, feature-rich
,
43 simple-to-learn yet very powerful industrial-strength open-source
44 programming language and development platform. It is renowned for its
45 stability and utility
, and its emphasis on providing a cross-platform
46 programming API makes it an ideal choice for an enormous variety of
50 CONFIGURE_PATH
:= unix
53 tcl_cv_strtod_unbroken
=ok
61 $(call Build
/Prepare
/Default
)
62 rm -rf
$(PKG_BUILD_DIR
)/pkgs
/*
65 define Build
/InstallDev
66 $(INSTALL_DIR
) $(1)/usr
/include
67 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/*.h
$(1)/usr
/include/
69 $(INSTALL_DIR
) $(1)/usr
/lib
70 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libtcl
*.
{a
,so
*} $(1)/usr
/lib
/
71 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/tclConfig.sh
$(1)/usr
/lib
/
72 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/tclooConfig.sh
$(1)/usr
/lib
/
74 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
75 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/tcl.
pc \
76 $(1)/usr
/lib
/pkgconfig
79 define Package
/tcl
/install
80 $(INSTALL_DIR
) $(1)/usr
/lib
81 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
$(1)/usr
/lib
83 $(INSTALL_DIR
) $(1)/usr
/bin
84 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
86 $(CP
) -a
$(PKG_INSTALL_DIR
)/usr
/lib
/tcl8
$(1)/usr
/lib
/
87 $(CP
) -a
$(PKG_INSTALL_DIR
)/usr
/lib
/tcl
$(TCL_MAJOR_VERSION
) $(1)/usr
/lib
/
88 $(LN
) tclsh
$(TCL_MAJOR_VERSION
) $(1)/usr
/bin
/tclsh
92 $(call Host
/Configure
/Default
,$(1),$(2),$(CONFIGURE_PATH
)/$(3))
97 $(MAKE
) $(HOST_JOBS
) -C
$(HOST_BUILD_DIR
)/$(MAKE_PATH
) \
103 $(call Host
/Compile
,install)
104 (cd
$(HOST_BUILD_PREFIX
)/bin
; test -f tclsh || ln
-s tclsh
$(TCL_MAJOR_VERSION
) tclsh
)
107 $(eval
$(call HostBuild
))
108 $(eval
$(call BuildPackage
,tcl
))