aboutsummaryrefslogtreecommitdiff
path: root/package/jimtcl/jimtcl.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/jimtcl/jimtcl.mk')
-rw-r--r--package/jimtcl/jimtcl.mk27
1 files changed, 24 insertions, 3 deletions
diff --git a/package/jimtcl/jimtcl.mk b/package/jimtcl/jimtcl.mk
index 389a72ab83..e712dff0be 100644
--- a/package/jimtcl/jimtcl.mk
+++ b/package/jimtcl/jimtcl.mk
@@ -4,9 +4,8 @@
#
################################################################################
-JIMTCL_VERSION = 0.75
-JIMTCL_SITE = http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/j/jimtcl
-JIMTCL_SOURCE = jimtcl_$(JIMTCL_VERSION).orig.tar.xz
+JIMTCL_VERSION = 0.79
+JIMTCL_SITE = $(call github,msteveb,jimtcl,$(JIMTCL_VERSION))
JIMTCL_INSTALL_STAGING = YES
JIMTCL_LICENSE = BSD-2-Clause
JIMTCL_LICENSE_FILES = LICENSE
@@ -43,6 +42,7 @@ endif
# Buildroot, so update config.guess / config.sub like we do in
# pkg-autotools.mk
JIMTCL_POST_PATCH_HOOKS += UPDATE_CONFIG_HOOK
+HOST_JIMTCL_POST_PATCH_HOOKS += UPDATE_CONFIG_HOOK
# jimtcl really wants to find a existing $CXX, so feed it false
# when we do not have one.
@@ -79,4 +79,25 @@ define JIMTCL_INSTALL_TARGET_CMDS
$(JIMTCL_LINK_TCLSH)
endef
+define HOST_JIMTCL_CONFIGURE_CMDS
+ cd $(@D) && \
+ $(HOST_CONFIGURE_OPTS) \
+ CCACHE=none \
+ ./configure --prefix=$(HOST_DIR) --shared
+endef
+
+define HOST_JIMTCL_BUILD_CMDS
+ $(HOST_MAKE_ENV) $(MAKE) -C $(@D)
+endef
+
+define HOST_JIMTCL_INSTALL_CMDS
+ for i in $(JIMTCL_HEADERS_TO_INSTALL); do \
+ cp -a $(@D)/$$i $(HOST_DIR)/usr/include/ || exit 1 ; \
+ done;
+ $(INSTALL) -m 0755 -D $(@D)/libjim.so.$(JIMTCL_VERSION) \
+ $(HOST_DIR)/usr/lib/libjim.so.$(JIMTCL_VERSION)
+ ln -sf libjim.so.$(JIMTCL_VERSION) $(HOST_DIR)/usr/lib/libjim.so
+endef
+
$(eval $(generic-package))
+$(eval $(host-generic-package))