Jim is an opensource small-footprint implementation of the Tcl
programming language. So far only default set of features is
compiled in - lets see what users will really need.
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 <[email protected]>
---
 rules/host-jimtcl.in   |  6 ++++
 rules/host-jimtcl.make | 33 ++++++++++++++++++
 rules/jimtcl.in        | 24 +++++++++++++
 rules/jimtcl.make      | 77 ++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 140 insertions(+)
 create mode 100644 rules/host-jimtcl.in
 create mode 100644 rules/host-jimtcl.make
 create mode 100644 rules/jimtcl.in
 create mode 100644 rules/jimtcl.make

diff --git a/rules/host-jimtcl.in b/rules/host-jimtcl.in
new file mode 100644
index 000000000..ccd2d23bd
--- /dev/null
+++ b/rules/host-jimtcl.in
@@ -0,0 +1,6 @@
+## SECTION=hosttools_noprompt
+## SECTION=hosttools_platform
+
+config HOST_JIMTCL
+       tristate
+       default ALLYES
diff --git a/rules/host-jimtcl.make b/rules/host-jimtcl.make
new file mode 100644
index 000000000..fa7b64057
--- /dev/null
+++ b/rules/host-jimtcl.make
@@ -0,0 +1,33 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2018 by Ladislav Michl <[email protected]>
+#
+# 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
+#
+HOST_PACKAGES-$(PTXCONF_HOST_JIMTCL) += host-jimtcl
+
+#
+# Paths and names
+#
+HOST_JIMTCL    := $(JIMTCL)
+HOST_JIMTCL_DIR        := $(HOST_BUILDDIR)/$(HOST_JIMTCL)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# Package is not using autoconf but autosetup which is enough compatible...
+#
+HOST_JIMTCL_CONF_ENV   := $(HOST_ENV)
+HOST_JIMTCL_CONF_TOOL  := autoconf
+HOST_JIMTCL_CONF_OPT   := --prefix=/usr 
+
+# vim: syntax=make
diff --git a/rules/jimtcl.in b/rules/jimtcl.in
new file mode 100644
index 000000000..8589160b9
--- /dev/null
+++ b/rules/jimtcl.in
@@ -0,0 +1,24 @@
+## SECTION=bytecode_engines
+
+config JIMTCL
+       tristate
+       prompt "jimtcl                        "
+       help
+         Jim provides a powerful Tcl language implemented in roughly
+         10k lines of code making it suitable for deployment on
+         Embedded Systems.
+
+if JIMTCL
+
+config JIMTCL_SHELL
+       bool "install jimsh"
+       help
+         Install Tcl shell on the target
+
+config JIMTCL_SYMLINK
+       bool "install tclsh symlink"
+       depends on JIMTCL_SHELL
+       help
+         Make tclsh symlink to jimsh
+
+endif
diff --git a/rules/jimtcl.make b/rules/jimtcl.make
new file mode 100644
index 000000000..67d1c2e5f
--- /dev/null
+++ b/rules/jimtcl.make
@@ -0,0 +1,77 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2018 by Ladislav Michl <[email protected]>
+#
+# 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     := git://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_ENV                := $(CROSS_ENV)
+JIMTCL_CONF_TOOL       := autoconf
+JIMTCL_CONF_OPT                := \
+       $(CROSS_AUTOCONF_USR) \
+       --shared
+
+# ----------------------------------------------------------------------------
+# 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 
<[email protected]>")
+       @$(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
-- 
2.19.0


_______________________________________________
ptxdist mailing list
[email protected]

Reply via email to