• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/jimtcl/jimtcl.mk
Ricardo MartincoskiRicardo Martincoski committed 4ef04c476c705 Apr 2017
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
################################################################################
2
#
3
# jimtcl
4
#
5
################################################################################
6
​
7
JIMTCL_VERSION = 0.75
8
JIMTCL_SITE = http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/j/jimtcl
9
JIMTCL_SOURCE = jimtcl_$(JIMTCL_VERSION).orig.tar.xz
10
JIMTCL_INSTALL_STAGING = YES
11
JIMTCL_LICENSE = BSD-2-Clause
12
JIMTCL_LICENSE_FILES = LICENSE
13
​
14
JIMTCL_HEADERS_TO_INSTALL = \
15
    jim.h \
16
    jim-eventloop.h \
17
    jim-signal.h \
18
    jim-subcmd.h \
19
    jim-win32compat.h \
20
    jim-config.h
21
​
22
ifeq ($(BR2_PACKAGE_TCL),)
23
define JIMTCL_LINK_TCLSH
24
    ln -sf jimsh $(TARGET_DIR)/usr/bin/tclsh
25
endef
26
endif
27
​
28
ifeq ($(BR2_STATIC_LIBS),y)
29
define JIMTCL_INSTALL_LIB
30
    $(INSTALL) -m 0644 -D $(@D)/libjim.a $(1)/usr/lib/libjim.a
31
endef
32
else
33
JIMTCL_SHARED = --shared
34
define JIMTCL_INSTALL_LIB
35
    $(INSTALL) -m 0755 -D $(@D)/libjim.so.$(JIMTCL_VERSION) \
36
        $(1)/usr/lib/libjim.so.$(JIMTCL_VERSION)
37
    ln -sf libjim.so.$(JIMTCL_VERSION) $(1)/usr/lib/libjim.so
38
endef
39
endif
40
​
41
define JIMTCL_CONFIGURE_CMDS
42
    (cd $(@D); \
43
        $(TARGET_CONFIGURE_OPTS) CCACHE=none \
44
        ./configure --prefix=/usr \
45
        $(JIMTCL_SHARED) \
46
    )
47
endef
48
​
49
# -fPIC is mandatory to build shared libraries on certain architectures
50
# (e.g. SPARC) and causes no harm or drawbacks on other architectures
51
define JIMTCL_BUILD_CMDS
52
    SH_CFLAGS="-fPIC" \
53
    SHOBJ_CFLAGS="-fPIC" \
54
    $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
55
endef
56
​
57
define JIMTCL_INSTALL_STAGING_CMDS
58
    for i in $(JIMTCL_HEADERS_TO_INSTALL); do \
59
        cp -a $(@D)/$$i $(STAGING_DIR)/usr/include/ || exit 1 ; \
60
    done; \
61
    $(call JIMTCL_INSTALL_LIB,$(STAGING_DIR))
62
endef
63
​
64
define JIMTCL_INSTALL_TARGET_CMDS
65
    $(INSTALL) -D $(@D)/jimsh $(TARGET_DIR)/usr/bin/jimsh
66
    $(call JIMTCL_INSTALL_LIB,$(TARGET_DIR))
67
    $(JIMTCL_LINK_TCLSH)
68
endef
69
​
70
$(eval $(generic-package))
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.