ports: enable basic clock support in tclsh

This commit is contained in:
Christian Helmuth 2019-01-25 09:47:39 +01:00 committed by Norman Feske
parent f7f1509a27
commit 87c9186efd
2 changed files with 14 additions and 2 deletions

View File

@ -4,10 +4,16 @@ PORT_DIR := $(call port_dir,$(REP_DIR)/ports/tcl)
TCL_CONTENT := unix generic compat libtommath
PORT_LIB_FILES := \
clock.tcl dde/pkgIndex.tcl http/pkgIndex.tcl http1.0/pkgIndex.tcl init.tcl \
msgcat/msgcat.tcl msgcat/pkgIndex.tcl opt/pkgIndex.tcl package.tcl \
platform/pkgIndex.tcl reg/pkgIndex.tcl tcltest/pkgIndex.tcl tm.tcl \
tzdata/Etc/UTC tzdata/UTC tclIndex
src/noux-pkg/tcl:
mkdir -p $@/library
cp -a $(addprefix $(PORT_DIR)/src/noux-pkg/tcl/,$(TCL_CONTENT)) $@
cp -a $(PORT_DIR)/src/noux-pkg/tcl/library/init.tcl $@/library/
$(VERBOSE)tar -C $(PORT_DIR)/src/noux-pkg/tcl/library -cf - $(PORT_LIB_FILES) | tar -C $@/library -xf -
src/noux-pkg/tclsh:
mkdir -p $@

View File

@ -9,11 +9,17 @@ INSTALL_TARGET :=
INSTALL_LIB_DIR := install/lib/tcl8.6
INSTALL_LIB_FILES := \
clock.tcl dde/pkgIndex.tcl http/pkgIndex.tcl http1.0/pkgIndex.tcl init.tcl \
msgcat/msgcat.tcl msgcat/pkgIndex.tcl opt/pkgIndex.tcl package.tcl \
platform/pkgIndex.tcl reg/pkgIndex.tcl tcltest/pkgIndex.tcl tm.tcl \
tzdata/Etc/UTC tzdata/UTC tclIndex
installed.tag:
@$(MSG_INST)$(TARGET)
$(VERBOSE)mkdir -p install/bin $(INSTALL_LIB_DIR)
$(VERBOSE)$(STRIP) tclsh -o install/bin/tclsh
$(VERBOSE)cp $(PKG_DIR)/library/init.tcl $(INSTALL_LIB_DIR)
$(VERBOSE)tar -C $(PKG_DIR)/library -cf - $(INSTALL_LIB_FILES) | tar -C $(INSTALL_LIB_DIR) -xf -
@touch $@
include $(call select_from_repositories,mk/noux.mk)