# -*-makefile-*- # # Copyright (C) 2009 by Juergen Beisert # # See CREDITS for details about who has contributed to this project. # # For further information about the PTXdist project and license conditions # see the README file. # # # We provide this package # PACKAGES-$(PTXCONF_TCL) += tcl # # Paths and names # TCL_MAJOR := 8 TCL_MINOR := 5 TCL_PL := 7 TCL_VERSION := $(TCL_MAJOR).$(TCL_MINOR).$(TCL_PL) TCL := tcl$(TCL_VERSION) TCL_SUFFIX := -src.tar.gz TCL_URL := $(PTXCONF_SETUP_SFMIRROR)/tcl/$(TCL)$(TCL_SUFFIX) TCL_SOURCE := $(SRCDIR)/$(TCL)$(TCL_SUFFIX) TCL_DIR := $(BUILDDIR)/$(TCL) # ---------------------------------------------------------------------------- # Get # ---------------------------------------------------------------------------- $(TCL_SOURCE): @$(call targetinfo) @$(call get, TCL) # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- TCL_PATH := PATH=$(CROSS_PATH) TCL_ENV := \ $(CROSS_ENV) \ tcl_cv_sys_version=Linux-$(PTXCONF_KERNEL_VERSION) \ tcl_cv_strstr_unbroken=yes \ tcl_cv_strtoul_unbroken=yes \ tcl_cv_strtod_unbroken=yes \ tcl_cv_strtod_buggy=no \ tcl_cv_stack_grows_up=no # unresolved issues yet: # checking for timezone data... /usr/share/zoneinfo <-- it uses host's one # # # autoconf # TCL_AUTOCONF := \ $(CROSS_AUTOCONF_USR) \ --disable-rpath \ --disable-symbols \ --enable-load \ --enable-shared # TODO: Provide the correct encoding for the target # --with-encoding= # Note: TCL uses iso8859-1 until otherwise specified ifdef PTXCONF_TCL_THREADS TCL_AUTOCONF += --enable-threads else TCL_AUTOCONF += --disable-threads endif $(STATEDIR)/tcl.prepare: @$(call targetinfo) @$(call clean, $(TCL_DIR)/unix/config.cache) cd $(TCL_DIR)/unix && \ $(TCL_PATH) $(TCL_ENV) \ ./configure $(TCL_AUTOCONF) $(TCL_ACONF_VAR) @$(call touch) # ---------------------------------------------------------------------------- # Compile # ---------------------------------------------------------------------------- $(STATEDIR)/tcl.compile: @$(call targetinfo) cd $(TCL_DIR)/unix && $(TCL_PATH) $(MAKE) $(PARALLELMFLAGS) @$(call touch) # ---------------------------------------------------------------------------- # Install # ---------------------------------------------------------------------------- $(STATEDIR)/tcl.install: @$(call targetinfo) @$(call install, TCL, $(TCL_DIR)/unix) @$(call touch) # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- $(STATEDIR)/tcl.targetinstall: @$(call targetinfo) @$(call install_init, tcl) @$(call install_fixup, tcl,PACKAGE,tcl) @$(call install_fixup, tcl,PRIORITY,optional) @$(call install_fixup, tcl,VERSION,$(TCL_VERSION)) @$(call install_fixup, tcl,SECTION,base) @$(call install_fixup, tcl,AUTHOR,"Juergen Beisert