summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-11-03 16:19:49 -0800
committerKhem Raj <raj.khem@gmail.com>2024-11-06 15:00:56 -0800
commit0449563c4088b6a0754daec9f0eb6da3929d2234 (patch)
tree358e9d98770b23b3711bb22f8d22584f5a88e851
parent45cd8411d1ccb9c9f37f1a5d270318e9a2fe2f4f (diff)
downloadmeta-openembedded-0449563c4088b6a0754daec9f0eb6da3929d2234.tar.gz
tk: Add recipe for TK 9.0.0 releasemaster-next
Core is upgrading TCL to 9.0.0 as well, this has to be done in tandem Rename tk 8.x as tk8 recipe Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-devtools/tcltk/tk8/confsearch.diff (renamed from meta-oe/recipes-devtools/tcltk/tk/confsearch.diff)0
-rw-r--r--meta-oe/recipes-devtools/tcltk/tk8/fix-xft.diff (renamed from meta-oe/recipes-devtools/tcltk/tk/fix-xft.diff)0
-rw-r--r--meta-oe/recipes-devtools/tcltk/tk8/tkprivate.diff (renamed from meta-oe/recipes-devtools/tcltk/tk/tkprivate.diff)0
-rw-r--r--meta-oe/recipes-devtools/tcltk/tk8_8.6.15.bb (renamed from meta-oe/recipes-devtools/tcltk/tk_8.6.15.bb)8
-rw-r--r--meta-oe/recipes-devtools/tcltk/tk_9.0.0.bb100
5 files changed, 104 insertions, 4 deletions
diff --git a/meta-oe/recipes-devtools/tcltk/tk/confsearch.diff b/meta-oe/recipes-devtools/tcltk/tk8/confsearch.diff
index 81d473575..81d473575 100644
--- a/meta-oe/recipes-devtools/tcltk/tk/confsearch.diff
+++ b/meta-oe/recipes-devtools/tcltk/tk8/confsearch.diff
diff --git a/meta-oe/recipes-devtools/tcltk/tk/fix-xft.diff b/meta-oe/recipes-devtools/tcltk/tk8/fix-xft.diff
index c1e2f7344..c1e2f7344 100644
--- a/meta-oe/recipes-devtools/tcltk/tk/fix-xft.diff
+++ b/meta-oe/recipes-devtools/tcltk/tk8/fix-xft.diff
diff --git a/meta-oe/recipes-devtools/tcltk/tk/tkprivate.diff b/meta-oe/recipes-devtools/tcltk/tk8/tkprivate.diff
index 8cdcf2020..8cdcf2020 100644
--- a/meta-oe/recipes-devtools/tcltk/tk/tkprivate.diff
+++ b/meta-oe/recipes-devtools/tcltk/tk8/tkprivate.diff
diff --git a/meta-oe/recipes-devtools/tcltk/tk_8.6.15.bb b/meta-oe/recipes-devtools/tcltk/tk8_8.6.15.bb
index 1438a0562..82a3c65b2 100644
--- a/meta-oe/recipes-devtools/tcltk/tk_8.6.15.bb
+++ b/meta-oe/recipes-devtools/tcltk/tk8_8.6.15.bb
@@ -15,10 +15,10 @@ LIC_FILES_CHKSUM = "file://license.terms;md5=c88f99decec11afa967ad33d314f87fe \
15 file://xlib/license.terms;md5=c88f99decec11afa967ad33d314f87fe \ 15 file://xlib/license.terms;md5=c88f99decec11afa967ad33d314f87fe \
16" 16"
17 17
18DEPENDS = "tcl virtual/libx11 libxt" 18DEPENDS = "tcl8 virtual/libx11 libxt"
19 19
20SRC_URI = "\ 20SRC_URI = "\
21 ${SOURCEFORGE_MIRROR}/tcl/${BPN}${PV}-src.tar.gz \ 21 ${SOURCEFORGE_MIRROR}/tcl/tk${PV}-src.tar.gz \
22 file://confsearch.diff \ 22 file://confsearch.diff \
23 file://tkprivate.diff \ 23 file://tkprivate.diff \
24 file://fix-xft.diff \ 24 file://fix-xft.diff \
@@ -29,7 +29,7 @@ SRC_URI[sha256sum] = "550969f35379f952b3020f3ab7b9dd5bfd11c1ef7c9b7c6a75f5c49aca
29UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/tcl/files/Tcl/" 29UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/tcl/files/Tcl/"
30UPSTREAM_CHECK_REGEX = "Tcl/(?P<pver>\d+(\.\d+)+)/" 30UPSTREAM_CHECK_REGEX = "Tcl/(?P<pver>\d+(\.\d+)+)/"
31 31
32S = "${WORKDIR}/${BPN}${PV}" 32S = "${WORKDIR}/tk${PV}"
33 33
34# Short version format: "8.6" 34# Short version format: "8.6"
35VER = "${@os.path.splitext(d.getVar('PV'))[0]}" 35VER = "${@os.path.splitext(d.getVar('PV'))[0]}"
@@ -73,7 +73,7 @@ FILES:${PN}-lib = "${libdir}/libtk${VER}.so*"
73FILES:${PN} += "${libdir}/tk*" 73FILES:${PN} += "${libdir}/tk*"
74 74
75# isn't getting picked up by shlibs code 75# isn't getting picked up by shlibs code
76RDEPENDS:${PN} += "tk-lib" 76RDEPENDS:${PN} += "tk8-lib"
77RDEPENDS:${PN}:class-native = "" 77RDEPENDS:${PN}:class-native = ""
78 78
79BBCLASSEXTEND = "native nativesdk" 79BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-oe/recipes-devtools/tcltk/tk_9.0.0.bb b/meta-oe/recipes-devtools/tcltk/tk_9.0.0.bb
new file mode 100644
index 000000000..7deba151f
--- /dev/null
+++ b/meta-oe/recipes-devtools/tcltk/tk_9.0.0.bb
@@ -0,0 +1,100 @@
1SUMMARY = "Tool Command Language ToolKit Extension"
2HOMEPAGE = "http://tcl.sourceforge.net"
3SECTION = "devel/tcltk"
4
5# http://www.tcl.tk/software/tcltk/license.html
6LICENSE = "TCL"
7LIC_FILES_CHKSUM = "file://license.terms;md5=c88f99decec11afa967ad33d314f87fe \
8 file://compat/license.terms;md5=c88f99decec11afa967ad33d314f87fe \
9 file://doc/license.terms;md5=c88f99decec11afa967ad33d314f87fe \
10 file://library/license.terms;md5=c88f99decec11afa967ad33d314f87fe \
11 file://macosx/license.terms;md5=c88f99decec11afa967ad33d314f87fe \
12 file://tests/license.terms;md5=c88f99decec11afa967ad33d314f87fe \
13 file://unix/license.terms;md5=c88f99decec11afa967ad33d314f87fe \
14 file://win/license.terms;md5=c88f99decec11afa967ad33d314f87fe \
15 file://xlib/license.terms;md5=c88f99decec11afa967ad33d314f87fe \
16"
17
18DEPENDS = "tcl virtual/libx11 libxt zip-native"
19
20SRC_URI = "\
21 ${SOURCEFORGE_MIRROR}/tcl/${BPN}${PV}-src.tar.gz \
22"
23SRC_URI[sha256sum] = "f166e3c20773c82243f753cef4b091d05267cb7f87da64be88cb2ca5a2ba027e"
24
25UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/tcl/files/Tcl/"
26UPSTREAM_CHECK_REGEX = "Tcl/(?P<pver>\d+(\.\d+)+)/"
27
28S = "${WORKDIR}/${BPN}${PV}"
29
30# Short version format: "8.6"
31VER = "${@os.path.splitext(d.getVar('PV'))[0]}"
32
33LDFLAGS += "-Wl,-rpath,${libdir}/tcltk/${PV}/lib"
34
35inherit autotools features_check pkgconfig
36
37AUTOTOOLS_SCRIPT_PATH = "${S}/unix"
38
39# depends on virtual/libx11
40REQUIRED_DISTRO_FEATURES = "x11"
41
42EXTRA_OECONF = "\
43 --with-x \
44 --with-tcl=${STAGING_BINDIR}/crossscripts \
45 --libdir=${libdir} \
46"
47
48export TK_LIBRARY='${libdir}/tk${VER}'
49
50do_install:append() {
51 ln -sf wish${VER} ${D}${bindir}/wish
52
53 sed -i "s;-L${B};-L${STAGING_LIBDIR};g" tkConfig.sh
54 sed -i "s;'${WORKDIR};'${STAGING_INCDIR};g" tkConfig.sh
55 install -d ${D}${bindir_crossscripts}
56 install -m 0755 tkConfig.sh ${D}${bindir_crossscripts}
57}
58
59PACKAGECONFIG ??= "xft"
60PACKAGECONFIG[xft] = "--enable-xft,--disable-xft,xft"
61PACKAGECONFIG[xss] = "--enable-xss,--disable-xss,libxscrnsaver libxext"
62
63PACKAGES =+ "${PN}-lib"
64
65SOLIBS = ".so"
66FILES_SOLIBSDEV = ""
67
68FILES:${PN}-lib = "${libdir}/libtcl9tk${VER}.so*"
69FILES:${PN} += "${libdir}/tk*"
70
71# isn't getting picked up by shlibs code
72RDEPENDS:${PN} += "tk-lib"
73RDEPENDS:${PN}:class-native = ""
74
75BBCLASSEXTEND = "native nativesdk"
76
77# Fix the path in sstate
78SSTATE_SCAN_FILES += "*Config.sh"
79
80inherit binconfig
81
82SYSROOT_DIRS += "${bindir_crossscripts}"
83
84# Fix some paths that might be used by Tcl extensions
85BINCONFIG_GLOB = "*Config.sh"
86
87# Cleanup host path from ${libdir}/tclConfig.sh and remove the
88# ${bindir_crossscripts}/tclConfig.sh from target
89PACKAGE_PREPROCESS_FUNCS += "tcl_package_preprocess"
90tcl_package_preprocess() {
91 sed -i -e "s;${DEBUG_PREFIX_MAP};;g" \
92 -e "s;-L${STAGING_LIBDIR};-L${libdir};g" \
93 -e "s;${STAGING_INCDIR};${includedir};g" \
94 -e "s;--sysroot=${RECIPE_SYSROOT};;g" \
95 -e "s;${B};${libdir};g" \
96 -e "s;${WORKDIR};${TARGET_DBGSRC_DIR};g" \
97 ${PKGD}${libdir}/tkConfig.sh
98
99 rm -f ${PKGD}${bindir_crossscripts}/tkConfig.sh
100}