2013-12-19 15:13:01 +00:00
|
|
|
SUMMARY = "Tool Command Language"
|
2009-12-09 23:59:44 +00:00
|
|
|
HOMEPAGE = "http://tcl.sourceforge.net"
|
2014-05-06 10:59:54 +00:00
|
|
|
SECTION = "devel/tcltk"
|
|
|
|
|
|
|
|
# http://www.tcl.tk/software/tcltk/license.html
|
|
|
|
LICENSE = "tcl & BSD-3-Clause"
|
2015-04-14 09:07:10 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://../license.terms;md5=058f6229798281bbcac4239c788cfa38 \
|
|
|
|
file://../compat/license.terms;md5=058f6229798281bbcac4239c788cfa38 \
|
|
|
|
file://../library/license.terms;md5=058f6229798281bbcac4239c788cfa38 \
|
|
|
|
file://../macosx/license.terms;md5=058f6229798281bbcac4239c788cfa38 \
|
|
|
|
file://../tests/license.terms;md5=058f6229798281bbcac4239c788cfa38 \
|
|
|
|
file://../win/license.terms;md5=058f6229798281bbcac4239c788cfa38 \
|
2014-05-06 10:59:54 +00:00
|
|
|
"
|
2010-06-22 10:06:55 +00:00
|
|
|
|
2014-05-06 10:59:54 +00:00
|
|
|
DEPENDS = "tcl-native zlib"
|
2010-08-14 03:56:06 +00:00
|
|
|
|
2014-05-06 10:59:54 +00:00
|
|
|
BASE_SRC_URI = "${SOURCEFORGE_MIRROR}/tcl/${BPN}${PV}-src.tar.gz \
|
|
|
|
file://tcl-add-soname.patch"
|
2010-08-14 03:56:06 +00:00
|
|
|
SRC_URI = "${BASE_SRC_URI} \
|
2013-11-12 04:07:15 +00:00
|
|
|
file://fix_non_native_build_issue.patch \
|
|
|
|
file://fix_issue_with_old_distro_glibc.patch \
|
|
|
|
file://no_packages.patch \
|
|
|
|
file://tcl-remove-hardcoded-install-path.patch \
|
|
|
|
file://alter-includedir.patch \
|
2014-01-08 08:49:56 +00:00
|
|
|
file://run-ptest \
|
2014-05-06 10:59:54 +00:00
|
|
|
"
|
2016-08-02 08:51:29 +00:00
|
|
|
SRC_URI[md5sum] = "5193aea8107839a79df8ac709552ecb7"
|
|
|
|
SRC_URI[sha256sum] = "a265409781e4b3edcc4ef822533071b34c3dc6790b893963809b9fe221befe07"
|
2010-08-14 03:56:06 +00:00
|
|
|
|
2012-10-27 08:48:17 +00:00
|
|
|
SRC_URI_class-native = "${BASE_SRC_URI}"
|
2009-12-09 23:59:44 +00:00
|
|
|
|
2014-05-06 10:59:54 +00:00
|
|
|
S = "${WORKDIR}/${BPN}${PV}/unix"
|
2009-12-09 23:59:44 +00:00
|
|
|
|
2014-05-06 10:59:54 +00:00
|
|
|
VER = "${PV}"
|
2013-11-12 04:07:15 +00:00
|
|
|
|
2014-05-06 10:59:54 +00:00
|
|
|
inherit autotools ptest binconfig
|
2009-12-09 23:59:44 +00:00
|
|
|
|
2014-02-04 10:40:35 +00:00
|
|
|
DEPENDS_class-native = "zlib-native"
|
2010-08-13 19:24:00 +00:00
|
|
|
|
2013-11-27 10:20:01 +00:00
|
|
|
EXTRA_OECONF = "--enable-threads --disable-rpath --libdir=${libdir}"
|
2009-12-09 23:59:44 +00:00
|
|
|
|
|
|
|
do_configure() {
|
2014-05-06 10:59:54 +00:00
|
|
|
cd ${S}
|
|
|
|
gnu-configize
|
|
|
|
cd ${B}
|
2009-12-09 23:59:44 +00:00
|
|
|
oe_runconf
|
|
|
|
}
|
|
|
|
|
|
|
|
do_compile_prepend() {
|
2013-03-08 11:37:23 +00:00
|
|
|
echo > ${S}/../compat/fixstrtod.c
|
2009-12-09 23:59:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2013-11-12 04:07:15 +00:00
|
|
|
autotools_do_install install-private-headers
|
|
|
|
ln -sf ./tclsh${VER} ${D}${bindir}/tclsh
|
2013-12-26 17:59:00 +00:00
|
|
|
ln -sf tclsh8.6 ${D}${bindir}/tclsh${VER}
|
2017-02-15 06:25:08 +00:00
|
|
|
sed -i "s;-L${B};-L${STAGING_LIBDIR};g" tclConfig.sh
|
2017-02-15 06:25:10 +00:00
|
|
|
sed -i "s;'${WORKDIR};'${STAGING_INCDIR};g" tclConfig.sh
|
2012-08-06 07:05:44 +00:00
|
|
|
install -d ${D}${bindir_crossscripts}
|
|
|
|
install -m 0755 tclConfig.sh ${D}${bindir_crossscripts}
|
2013-12-05 16:26:20 +00:00
|
|
|
install -m 0755 tclConfig.sh ${D}${libdir}
|
2009-12-09 23:59:44 +00:00
|
|
|
cd ..
|
2014-05-06 10:59:54 +00:00
|
|
|
for dir in compat generic unix; do
|
2013-11-12 04:07:15 +00:00
|
|
|
install -d ${D}${includedir}/${BPN}${VER}/$dir
|
|
|
|
install -m 0644 ${S}/../$dir/*.h ${D}${includedir}/${BPN}${VER}/$dir/
|
2009-12-09 23:59:44 +00:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2016-05-12 08:37:52 +00:00
|
|
|
SYSROOT_DIRS += "${bindir_crossscripts}"
|
2012-08-06 07:05:44 +00:00
|
|
|
|
2012-02-28 13:32:44 +00:00
|
|
|
PACKAGES =+ "tcl-lib"
|
2013-11-27 10:20:01 +00:00
|
|
|
FILES_tcl-lib = "${libdir}/libtcl8.6.so.*"
|
|
|
|
FILES_${PN} += "${libdir}/tcl${VER} ${libdir}/tcl8.6 ${libdir}/tcl8"
|
2013-05-09 12:36:40 +00:00
|
|
|
FILES_${PN}-dev += "${libdir}/tclConfig.sh ${libdir}/tclooConfig.sh"
|
2009-12-09 23:59:44 +00:00
|
|
|
|
2012-02-28 07:58:37 +00:00
|
|
|
# isn't getting picked up by shlibs code
|
2012-02-28 13:32:44 +00:00
|
|
|
RDEPENDS_${PN} += "tcl-lib"
|
2012-10-27 08:48:17 +00:00
|
|
|
RDEPENDS_${PN}_class-native = ""
|
2014-09-30 09:33:04 +00:00
|
|
|
RDEPENDS_${PN}-ptest += "libgcc"
|
2012-02-28 07:58:37 +00:00
|
|
|
|
2017-02-15 06:25:08 +00:00
|
|
|
BBCLASSEXTEND = "native nativesdk"
|
2014-01-08 08:49:56 +00:00
|
|
|
|
|
|
|
do_compile_ptest() {
|
|
|
|
oe_runmake tcltest
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install_ptest() {
|
|
|
|
cp ${B}/tcltest ${D}${PTEST_PATH}
|
|
|
|
cp -r ${S}/../library ${D}${PTEST_PATH}
|
|
|
|
cp -r ${S}/../tests ${D}${PTEST_PATH}
|
|
|
|
}
|
2014-03-25 08:34:14 +00:00
|
|
|
|
2014-05-06 10:59:54 +00:00
|
|
|
# Fix some paths that might be used by Tcl extensions
|
|
|
|
BINCONFIG_GLOB = "*Config.sh"
|
|
|
|
|
2014-03-25 08:34:14 +00:00
|
|
|
# Fix the path in sstate
|
|
|
|
SSTATE_SCAN_FILES += "*Config.sh"
|