2013-06-28 16:32:24 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# jimtcl
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2014-10-23 16:48:30 +02:00
|
|
|
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
|
2013-06-28 16:32:24 +02:00
|
|
|
JIMTCL_INSTALL_STAGING = YES
|
2013-07-10 19:25:40 +02:00
|
|
|
JIMTCL_LICENSE = BSD-2c
|
|
|
|
JIMTCL_LICENSE_FILES = LICENSE
|
2013-06-28 16:32:24 +02:00
|
|
|
|
|
|
|
JIMTCL_HEADERS_TO_INSTALL = \
|
|
|
|
jim.h \
|
|
|
|
jim-eventloop.h \
|
|
|
|
jim-signal.h \
|
|
|
|
jim-subcmd.h \
|
|
|
|
jim-win32compat.h \
|
|
|
|
jim-config.h \
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_TCL),)
|
|
|
|
define JIMTCL_LINK_TCLSH
|
|
|
|
ln -sf jimsh $(TARGET_DIR)/usr/bin/tclsh
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2013-06-28 16:32:24 +02:00
|
|
|
JIMTCL_SHARED =
|
|
|
|
JIMTCL_LIB = a
|
|
|
|
JIMTCL_INSTALL_LIB =
|
|
|
|
else
|
|
|
|
JIMTCL_SHARED = --shared
|
2014-10-23 16:48:30 +02:00
|
|
|
JIMTCL_LIB = so.$(JIMTCL_VERSION)
|
2013-06-28 16:32:24 +02:00
|
|
|
JIMTCL_INSTALL_LIB = $(INSTALL) -D $(@D)/libjim.$(JIMTCL_LIB) \
|
2014-10-23 16:48:30 +02:00
|
|
|
$(TARGET_DIR)/usr/lib/libjim.$(JIMTCL_LIB); \
|
|
|
|
ln -s libjim.$(JIMTCL_LIB) $(TARGET_DIR)/usr/lib/libjim.so
|
2013-06-28 16:32:24 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
define JIMTCL_CONFIGURE_CMDS
|
|
|
|
(cd $(@D); \
|
2014-02-14 21:57:39 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) CCACHE=none \
|
2013-06-28 16:32:24 +02:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
$(JIMTCL_SHARED) \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define JIMTCL_BUILD_CMDS
|
|
|
|
$(MAKE) -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define JIMTCL_INSTALL_STAGING_CMDS
|
|
|
|
for i in $(JIMTCL_HEADERS_TO_INSTALL); do \
|
2014-11-30 15:18:33 +01:00
|
|
|
cp -a $(@D)/$$i $(STAGING_DIR)/usr/include/ || exit 1 ; \
|
2013-06-28 16:32:24 +02:00
|
|
|
done; \
|
2014-10-23 16:48:30 +02:00
|
|
|
$(INSTALL) -D $(@D)/libjim.$(JIMTCL_LIB) $(STAGING_DIR)/usr/lib/libjim.$(JIMTCL_LIB);
|
|
|
|
ln -s libjim.$(JIMTCL_LIB) $(STAGING_DIR)/usr/lib/libjim.so
|
2013-06-28 16:32:24 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define JIMTCL_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D $(@D)/jimsh $(TARGET_DIR)/usr/bin/jimsh
|
|
|
|
$(JIMTCL_INSTALL_LIB)
|
|
|
|
$(JIMTCL_LINK_TCLSH)
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|