# 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.
$(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))