diff options
author | Ladislav Michl <ladis@linux-mips.org> | 2018-10-07 21:04:51 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-10-09 14:38:04 +0200 |
commit | 5a386c764efe8ac69185fc8a22f7590a50bb3647 (patch) | |
tree | 8ba72616ca865079509996b1c10163b0e7504ce1 /rules/jimtcl.make | |
parent | 1cb27473ea2d6222ca7f562bcd10c67d8f5827fa (diff) | |
download | ptxdist-5a386c764efe8ac69185fc8a22f7590a50bb3647.tar.gz ptxdist-5a386c764efe8ac69185fc8a22f7590a50bb3647.tar.xz |
jimtcl: new package
Jim is an opensource small-footprint implementation of the Tcl
programming language.
This package is intended to replace Tcl (which is in staging
already) as it fits PTXdist more due to its small size.
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/jimtcl.make')
-rw-r--r-- | rules/jimtcl.make | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/rules/jimtcl.make b/rules/jimtcl.make new file mode 100644 index 000000000..ad8b3608b --- /dev/null +++ b/rules/jimtcl.make @@ -0,0 +1,91 @@ +# -*-makefile-*- +# +# Copyright (C) 2018 by Ladislav Michl <ladis@linux-mips.org> +# +# 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_JIMTCL) += jimtcl + +# +# Paths and names +# +JIMTCL_VERSION := 0.78 +JIMTCL_MD5 := bde9021d78a77fe28e1bbc423142ab23 +JIMTCL := jimtcl-$(JIMTCL_VERSION) +JIMTCL_SUFFIX := tar.xz +JIMTCL_URL := http://repo.or.cz/jimtcl.git;tag=$(JIMTCL_VERSION) +JIMTCL_SOURCE := $(SRCDIR)/$(JIMTCL).$(JIMTCL_SUFFIX) +JIMTCL_DIR := $(BUILDDIR)/$(JIMTCL) +JIMTCL_LICENSE := BSD-2-Clause + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# Package is not using autoconf but autosetup which is enough compatible... +# +JIMTCL_CONF_TOOL := autoconf +# autosetup/cc.tcl tries to discover ccache on its own, so use 'CCACHE=none' +# to prevent that and leave PTXCONF_SETUP_CCACHE in charge. +JIMTCL_CONF_ENV := \ + $(CROSS_ENV) \ + CCACHE=none \ + autosetup_tclsh=$(PTXCONF_SYSROOT_HOST)/usr/bin/jimsh +JIMTCL_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + $(call ptx/ifdef, PTXCONF_JIMTCL_UTF8,--utf8,) \ + $(call ptx/ifdef, PTXCONF_JIMTCL_LINEEDIT,,--disable-lineedit) \ + $(call ptx/ifdef, PTXCONF_JIMTCL_REFERENCES,,--disable-references) \ + $(call ptx/ifdef, PTXCONF_JIMTCL_MATH,--math,) \ + $(call ptx/ifdef, PTXCONF_JIMTCL_SSL,--ssl,) \ + $(call ptx/ifdef, PTXCONF_GLOBAL_IPV6,--ipv6,) \ + --shared \ + $(call ptx/ifdef, PTXCONF_JIMTCL_POSIX_REGEX,--disable-jim-regexp,) \ + --disable-docs \ + $(call ptx/ifdef, PTXCONF_JIMTCL_RANDOM_HASH,--random-hash,) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/jimtcl.install: + @$(call targetinfo) + @$(call world/install, JIMTCL) + @ln -sf libjim.so.$(JIMTCL_VERSION) $(JIMTCL_PKGDIR)/usr/lib/libjim.so + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/jimtcl.targetinstall: + @$(call targetinfo) + + @$(call install_init, jimtcl) + @$(call install_fixup, jimtcl, PRIORITY, optional) + @$(call install_fixup, jimtcl, SECTION, base) + @$(call install_fixup, jimtcl, AUTHOR, "Ladislav Michl <ladis@linux-mips.org>") + @$(call install_fixup, jimtcl, DESCRIPTION, \ + "A small footprint implementation of the Tcl programming language") + +ifdef PTXCONF_JIMTCL_SHELL + @$(call install_copy, jimtcl, 0, 0, 0755, -, /usr/bin/jimsh) +ifdef PTXCONF_JIMTCL_SYMLINK + @$(call install_link, jimtcl, jimsh, /usr/bin/tclsh) +endif +endif + @$(call install_lib, jimtcl, 0, 0, 0644, libjim) + + @$(call install_finish, jimtcl) + + @$(call touch) + +# vim: syntax=make |