You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2006-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=tcl
  9. PKG_VERSION:=8.6.4
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION)-src.tar.gz
  12. PKG_SOURCE_URL:=@SF/$(PKG_NAME)
  13. PKG_HASH:=9e6ed94c981c1d0c5f5fefb8112d06c6bf4d050a7327e95e71d417c416519c8d
  14. PKG_LICENSE:=TCL
  15. PKG_LICENSE_FILES:=license.terms
  16. PKG_MAINTAINER:=Joe Mistachkin <joe@mistachkin.com>
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)$(PKG_VERSION)
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/tcl
  22. SUBMENU:=Tcl
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. DEPENDS:=+libpthread @BROKEN
  26. TITLE:=The Tcl language
  27. URL:=http://www.tcl.tk/
  28. endef
  29. define Package/tcl/description
  30. Tcl, or Tool Command Language, is a an elegant, versatile, feature-rich,
  31. simple-to-learn yet very powerful industrial-strength open-source
  32. programming language and development platform. It is renowned for its
  33. stability and utility, and its emphasis on providing a cross-platform
  34. programming API makes it an ideal choice for an enormous variety of
  35. programming jobs.
  36. endef
  37. CONFIGURE_PATH := unix
  38. CONFIGURE_VARS += \
  39. tcl_cv_strtod_unbroken=ok
  40. CONFIGURE_ARGS += \
  41. --enable-threads
  42. MAKE_PATH := unix
  43. define Build/InstallDev
  44. $(INSTALL_DIR) $(1)/usr/include
  45. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  46. $(INSTALL_DIR) $(1)/usr/lib
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtcl*.{a,so*} $(1)/usr/lib/
  48. endef
  49. define Package/tcl/install
  50. $(INSTALL_DIR) $(1)/usr/lib
  51. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so $(1)/usr/lib
  52. $(INSTALL_DIR) $(1)/usr/bin
  53. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
  54. endef
  55. $(eval $(call BuildPackage,tcl))