1 ################################################################################
5 ################################################################################
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-2c
12 JIMTCL_LICENSE_FILES
= LICENSE
14 JIMTCL_HEADERS_TO_INSTALL
= \
22 ifeq ($(BR2_PACKAGE_TCL
),)
23 define JIMTCL_LINK_TCLSH
24 ln
-sf jimsh
$(TARGET_DIR
)/usr
/bin
/tclsh
28 ifeq ($(BR2_STATIC_LIBS
),y
)
29 define JIMTCL_INSTALL_LIB
30 $(INSTALL
) -m
0644 -D
$(@D
)/libjim.a
$(1)/usr
/lib
/libjim.a
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
41 define JIMTCL_CONFIGURE_CMDS
43 $(TARGET_CONFIGURE_OPTS
) CCACHE
=none \
44 .
/configure
--prefix=/usr \
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
53 SHOBJ_CFLAGS
="-fPIC" \
54 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
)
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 ; \
61 $(call JIMTCL_INSTALL_LIB
,$(STAGING_DIR
))
64 define JIMTCL_INSTALL_TARGET_CMDS
65 $(INSTALL
) -D
$(@D
)/jimsh
$(TARGET_DIR
)/usr
/bin
/jimsh
66 $(call JIMTCL_INSTALL_LIB
,$(TARGET_DIR
))
70 $(eval
$(generic-package
))