# vim: ft=make ts=4 sw=4 noet
.DEFAULT_GOAL := all

NAME     = tcl
VERSION  = 8.6.17
DISTNAME = tcl$(VERSION)
GARTYPE  = v2

DESCRIPTION = Tool Command Language runtime
define BLURB
  Tcl (Tool Command Language) is a scripting language used by many programs
  as an extension language and as a standalone interpreter.
endef

MASTER_SITES = https://prdownloads.sourceforge.net/tcl/
DISTFILES   += $(DISTNAME)-src.tar.gz

# configure script lives in the unix/ subdirectory
WORKSRC = $(WORKDIR)/$(DISTNAME)/unix

# license.terms is in the top-level source dir (DISTNAME), not unix/
LICENSE = license.terms

PACKAGES              += OZSWtcl
SPKG_DESC_OZSWtcl      = Tool Command Language runtime
CATALOGNAME_OZSWtcl   = tcl

EXTENSIONS = 1

post-configure:
	@find $(WORKSRC) -name "libtool" -type f -exec \
	    gsed -i 's/ECHO="print -r --"/ECHO="printf %s\\n"/g' {} \;
	@$(MAKECOOKIE)

include gar/category.mk
