summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/tcltk/tcl_8.6.8.bb
diff options
context:
space:
mode:
authorHong Liu <hongl.fnst@cn.fujitsu.com>2018-12-05 09:21:32 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-05 22:30:19 +0000
commitaa93957c8353d222961f08e54fe8d4095dad72c1 (patch)
treeee9faefa5482391e06ddf684accc22265fa85693 /meta/recipes-devtools/tcltk/tcl_8.6.8.bb
parent9661c03d684578d1f000ec9cd3c550e9aef78551 (diff)
downloadpoky-aa93957c8353d222961f08e54fe8d4095dad72c1.tar.gz
tcl: Upgrade to 8.6.9
Upgrade tcl from 8.6.8 to 8.6.9. (From OE-Core rev: bbe5099ba78369dac861d78e056eb07d1fe6c9d2) Signed-off-by: Hong Liu <hongl.fnst@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/tcltk/tcl_8.6.8.bb')
-rw-r--r--meta/recipes-devtools/tcltk/tcl_8.6.8.bb101
1 files changed, 0 insertions, 101 deletions
diff --git a/meta/recipes-devtools/tcltk/tcl_8.6.8.bb b/meta/recipes-devtools/tcltk/tcl_8.6.8.bb
deleted file mode 100644
index 4be2e89402..0000000000
--- a/meta/recipes-devtools/tcltk/tcl_8.6.8.bb
+++ /dev/null
@@ -1,101 +0,0 @@
1SUMMARY = "Tool Command Language"
2HOMEPAGE = "http://tcl.sourceforge.net"
3SECTION = "devel/tcltk"
4
5# http://www.tcl.tk/software/tcltk/license.html
6LICENSE = "tcl & BSD-3-Clause"
7LIC_FILES_CHKSUM = "file://../license.terms;md5=058f6229798281bbcac4239c788cfa38 \
8 file://../compat/license.terms;md5=058f6229798281bbcac4239c788cfa38 \
9 file://../library/license.terms;md5=058f6229798281bbcac4239c788cfa38 \
10 file://../macosx/license.terms;md5=058f6229798281bbcac4239c788cfa38 \
11 file://../tests/license.terms;md5=058f6229798281bbcac4239c788cfa38 \
12 file://../win/license.terms;md5=058f6229798281bbcac4239c788cfa38 \
13"
14
15DEPENDS = "tcl-native zlib"
16
17BASE_SRC_URI = "${SOURCEFORGE_MIRROR}/tcl/${BPN}${PV}-src.tar.gz \
18 file://tcl-add-soname.patch"
19SRC_URI = "${BASE_SRC_URI} \
20 file://fix_non_native_build_issue.patch \
21 file://fix_issue_with_old_distro_glibc.patch \
22 file://no_packages.patch \
23 file://tcl-remove-hardcoded-install-path.patch \
24 file://alter-includedir.patch \
25 file://run-ptest \
26"
27SRC_URI[md5sum] = "81656d3367af032e0ae6157eff134f89"
28SRC_URI[sha256sum] = "c43cb0c1518ce42b00e7c8f6eaddd5195c53a98f94adc717234a65cbcfd3f96a"
29
30SRC_URI_class-native = "${BASE_SRC_URI}"
31
32S = "${WORKDIR}/${BPN}${PV}/unix"
33
34VER = "${PV}"
35
36inherit autotools ptest binconfig
37
38EXTRA_OECONF = "--enable-threads --disable-rpath --libdir=${libdir}"
39
40do_compile_prepend() {
41 echo > ${S}/../compat/fixstrtod.c
42}
43
44do_install() {
45 autotools_do_install
46 oe_runmake 'DESTDIR=${D}' install-private-headers
47 ln -sf ./tclsh${VER} ${D}${bindir}/tclsh
48 ln -sf tclsh8.6 ${D}${bindir}/tclsh${VER}
49 sed -i "s;-L${B};-L${STAGING_LIBDIR};g" tclConfig.sh
50 sed -i "s;'${WORKDIR};'${STAGING_INCDIR};g" tclConfig.sh
51 install -d ${D}${bindir_crossscripts}
52 install -m 0755 tclConfig.sh ${D}${bindir_crossscripts}
53 install -m 0755 tclConfig.sh ${D}${libdir}
54 for dir in compat generic unix; do
55 install -d ${D}${includedir}/${BPN}${VER}/$dir
56 install -m 0644 ${S}/../$dir/*.h ${D}${includedir}/${BPN}${VER}/$dir/
57 done
58}
59
60SYSROOT_DIRS += "${bindir_crossscripts}"
61
62PACKAGES =+ "tcl-lib"
63FILES_tcl-lib = "${libdir}/libtcl8.6.so.*"
64FILES_${PN} += "${libdir}/tcl${VER} ${libdir}/tcl8.6 ${libdir}/tcl8"
65FILES_${PN}-dev += "${libdir}/tclConfig.sh ${libdir}/tclooConfig.sh"
66
67# isn't getting picked up by shlibs code
68RDEPENDS_${PN} += "tcl-lib"
69RDEPENDS_${PN}_class-native = ""
70RDEPENDS_${PN}-ptest += "libgcc"
71
72BBCLASSEXTEND = "native nativesdk"
73
74do_compile_ptest() {
75 oe_runmake tcltest
76}
77
78do_install_ptest() {
79 cp ${B}/tcltest ${D}${PTEST_PATH}
80 cp -r ${S}/../library ${D}${PTEST_PATH}
81 cp -r ${S}/../tests ${D}${PTEST_PATH}
82}
83
84# Fix some paths that might be used by Tcl extensions
85BINCONFIG_GLOB = "*Config.sh"
86
87# Fix the path in sstate
88SSTATE_SCAN_FILES += "*Config.sh"
89
90# Cleanup host path from ${libdir}/tclConfig.sh and remove the
91# ${bindir_crossscripts}/tclConfig.sh from target
92PACKAGE_PREPROCESS_FUNCS += "tcl_package_preprocess"
93tcl_package_preprocess() {
94 sed -i -e "s;${DEBUG_PREFIX_MAP};;g" \
95 -e "s;-L${STAGING_LIBDIR};-L${libdir};g" \
96 -e "s;${STAGING_INCDIR};${includedir};g" \
97 -e "s;--sysroot=${RECIPE_SYSROOT};;g" \
98 ${PKGD}${libdir}/tclConfig.sh
99
100 rm -f ${PKGD}${bindir_crossscripts}/tclConfig.sh
101}