# -*-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 := 15 TCL_VERSION := $(TCL_MAJOR).$(TCL_MINOR).$(TCL_PL) TCL_MD5 := f3df162f92c69b254079c4d0af7a690f TCL := tcl$(TCL_VERSION) TCL_SUFFIX := -src.tar.gz TCL_URL := $(call ptx/mirror, SF, tcl/$(TCL)$(TCL_SUFFIX)) TCL_SOURCE := $(SRCDIR)/$(TCL)$(TCL_SUFFIX) TCL_DIR := $(BUILDDIR)/$(TCL) # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- # select one of the available kernel versions TCL_KERNEL_VERSION := $(if $(KERNEL_HEADER_VERSION),$(KERNEL_HEADER_VERSION),$(KERNEL_VERSION)) ifdef PTXCONF_TCL ifeq ($(TCL_KERNEL_VERSION),) $(warning ######################### ERROR ###########################) $(warning # Linux kernel version required in order to make TCL work #) $(warning # Define a platform kernel or the kernel headers #) $(warning ###########################################################) $(error ) endif endif TCL_ENV := \ $(CROSS_ENV) \ tcl_cv_sys_version=Linux-$(TCL_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) \ --$(call ptx/endis, PTXCONF_TCL_THREADS)-threads \ --enable-shared \ --disable-64bit \ --disable-64bit-vis \ --disable-rpath \ --disable-corefoundation \ --enable-load \ --enable-symbols \ --enable-dll-unloading \ --disable-dtrace \ --disable-framework \ --with-encoding=iso8859-15 \ --$(call ptx/wwo, PTXCONF_TCL_TZDATA)-tzdata # TODO: Provide the correct encoding for the target # --with-encoding= # Note: TCL uses iso8859-1 until otherwise specified TCL_SUBDIR := unix # ---------------------------------------------------------------------------- # Install # ---------------------------------------------------------------------------- $(STATEDIR)/tcl.install: @$(call targetinfo) @$(call install, TCL) @mkdir -p $(TCL_PKGDIR)/usr/share/tcl-tests @cd $(TCL_DIR)/tests && \ install -m 644 * $(TCL_PKGDIR)/usr/share/tcl-tests/ @$(call touch) # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- $(STATEDIR)/tcl.targetinstall: @$(call targetinfo) @$(call install_init, tcl) @$(call install_fixup, tcl,PRIORITY,optional) @$(call install_fixup, tcl,SECTION,base) @$(call install_fixup, tcl,AUTHOR,"Juergen Beisert