summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/tcltk
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-devtools/tcltk')
-rw-r--r--meta-oe/recipes-devtools/tcltk/tk8/confsearch.diff (renamed from meta-oe/recipes-devtools/tcltk/tk/confsearch.diff)3
-rw-r--r--meta-oe/recipes-devtools/tcltk/tk8/fix-xft.diff (renamed from meta-oe/recipes-devtools/tcltk/tk/fix-xft.diff)4
-rw-r--r--meta-oe/recipes-devtools/tcltk/tk8/tkprivate.diff (renamed from meta-oe/recipes-devtools/tcltk/tk/tkprivate.diff)4
-rw-r--r--meta-oe/recipes-devtools/tcltk/tk8_8.6.15.bb (renamed from meta-oe/recipes-devtools/tcltk/tk_8.6.10.bb)46
-rw-r--r--meta-oe/recipes-devtools/tcltk/tk_9.0.1.bb101
5 files changed, 132 insertions, 26 deletions
diff --git a/meta-oe/recipes-devtools/tcltk/tk/confsearch.diff b/meta-oe/recipes-devtools/tcltk/tk8/confsearch.diff
index e13bf69b23..81d4735752 100644
--- a/meta-oe/recipes-devtools/tcltk/tk/confsearch.diff
+++ b/meta-oe/recipes-devtools/tcltk/tk8/confsearch.diff
@@ -7,9 +7,8 @@ Patch by Sergei Golovan allows to find tclConfig.sh in /usr/share/tcltk/tcl8.5
7and tkConfig.sh in /usr/share/tcltk/tk8.5 where they are located in Debian 7and tkConfig.sh in /usr/share/tcltk/tk8.5 where they are located in Debian
8installation. 8installation.
9 9
10---
11Upstream-Status: Pending 10Upstream-Status: Pending
12 11---
13 unix/configure | 1 + 12 unix/configure | 1 +
14 unix/tcl.m4 | 2 ++ 13 unix/tcl.m4 | 2 ++
15 2 files changed, 3 insertions(+) 14 2 files changed, 3 insertions(+)
diff --git a/meta-oe/recipes-devtools/tcltk/tk/fix-xft.diff b/meta-oe/recipes-devtools/tcltk/tk8/fix-xft.diff
index fdf3c66535..c1e2f7344e 100644
--- a/meta-oe/recipes-devtools/tcltk/tk/fix-xft.diff
+++ b/meta-oe/recipes-devtools/tcltk/tk8/fix-xft.diff
@@ -1,7 +1,7 @@
1Upstream-Status: Pending 1Upstream-Status: Pending
2 2
3--- /tmp/configure.in 2010-05-19 13:29:03.000000000 +0200 3--- a/unix/configure.in 2010-05-19 13:29:03.000000000 +0200
4+++ unix/configure.in 2010-05-19 13:42:05.000000000 +0200 4+++ b/unix/configure.in 2010-05-19 13:42:05.000000000 +0200
5@@ -526,13 +526,9 @@ 5@@ -526,13 +526,9 @@
6 found_xft="yes" 6 found_xft="yes"
7 dnl make sure package configurator (xft-config or pkg-config 7 dnl make sure package configurator (xft-config or pkg-config
diff --git a/meta-oe/recipes-devtools/tcltk/tk/tkprivate.diff b/meta-oe/recipes-devtools/tcltk/tk8/tkprivate.diff
index 62467af1d5..8cdcf20207 100644
--- a/meta-oe/recipes-devtools/tcltk/tk/tkprivate.diff
+++ b/meta-oe/recipes-devtools/tcltk/tk8/tkprivate.diff
@@ -1,9 +1,9 @@
1Upstream-Status: Pending
2
3Patch by Chris Waters sets path which are normally point to a directory 1Patch by Chris Waters sets path which are normally point to a directory
4with Tk sources to a subdirectory of /usr/include/tcl8.4 (debian/rules 2with Tk sources to a subdirectory of /usr/include/tcl8.4 (debian/rules
5puts private Tk headers there). 3puts private Tk headers there).
6 4
5Upstream-Status: Pending
6
7--- tk8.5-8.5.8.orig/unix/tkConfig.sh.in 7--- tk8.5-8.5.8.orig/unix/tkConfig.sh.in
8+++ tk8.5-8.5.8/unix/tkConfig.sh.in 8+++ tk8.5-8.5.8/unix/tkConfig.sh.in
9@@ -55,7 +55,7 @@ 9@@ -55,7 +55,7 @@
diff --git a/meta-oe/recipes-devtools/tcltk/tk_8.6.10.bb b/meta-oe/recipes-devtools/tcltk/tk8_8.6.15.bb
index 237c4e7389..8cb9f6cb5e 100644
--- a/meta-oe/recipes-devtools/tcltk/tk_8.6.10.bb
+++ b/meta-oe/recipes-devtools/tcltk/tk8_8.6.15.bb
@@ -4,39 +4,43 @@ SECTION = "devel/tcltk"
4 4
5# http://www.tcl.tk/software/tcltk/license.html 5# http://www.tcl.tk/software/tcltk/license.html
6LICENSE = "TCL" 6LICENSE = "TCL"
7LIC_FILES_CHKSUM = "file://${S}/../license.terms;md5=c88f99decec11afa967ad33d314f87fe \ 7LIC_FILES_CHKSUM = "file://license.terms;md5=c88f99decec11afa967ad33d314f87fe \
8 file://${S}/../compat/license.terms;md5=c88f99decec11afa967ad33d314f87fe \ 8 file://compat/license.terms;md5=c88f99decec11afa967ad33d314f87fe \
9 file://${S}/../doc/license.terms;md5=c88f99decec11afa967ad33d314f87fe \ 9 file://doc/license.terms;md5=c88f99decec11afa967ad33d314f87fe \
10 file://${S}/../library/license.terms;md5=c88f99decec11afa967ad33d314f87fe \ 10 file://library/license.terms;md5=c88f99decec11afa967ad33d314f87fe \
11 file://${S}/../macosx/license.terms;md5=c88f99decec11afa967ad33d314f87fe \ 11 file://macosx/license.terms;md5=c88f99decec11afa967ad33d314f87fe \
12 file://${S}/../tests/license.terms;md5=c88f99decec11afa967ad33d314f87fe \ 12 file://tests/license.terms;md5=c88f99decec11afa967ad33d314f87fe \
13 file://${S}/../unix/license.terms;md5=c88f99decec11afa967ad33d314f87fe \ 13 file://unix/license.terms;md5=c88f99decec11afa967ad33d314f87fe \
14 file://${S}/../win/license.terms;md5=c88f99decec11afa967ad33d314f87fe \ 14 file://win/license.terms;md5=c88f99decec11afa967ad33d314f87fe \
15 file://${S}/../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;striplevel=2 \ 22 file://confsearch.diff \
23 file://tkprivate.diff;striplevel=2 \ 23 file://tkprivate.diff \
24 file://fix-xft.diff \ 24 file://fix-xft.diff \
25" 25"
26SRC_URI[md5sum] = "602a47ad9ecac7bf655ada729d140a94"
27SRC_URI[sha256sum] = "63df418a859d0a463347f95ded5cd88a3dd3aaa1ceecaeee362194bc30f3e386"
28 26
29S = "${WORKDIR}/${BPN}${PV}/unix" 27SRC_URI[sha256sum] = "550969f35379f952b3020f3ab7b9dd5bfd11c1ef7c9b7c6a75f5c49aca793fec"
30 28
31DEBUG_PREFIX_MAP += "-fdebug-prefix-map=${S}/../=${TARGET_DBGSRC_DIR}/.." 29UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/tcl/files/Tcl/"
30UPSTREAM_CHECK_REGEX = "Tcl/(?P<pver>\d+(\.\d+)+)/"
32 31
33PSEUDO_IGNORE_PATHS .= ",${WORKDIR}/${BPN}${PV}" 32S = "${UNPACKDIR}/tk${PV}"
34 33
35# Short version format: "8.6" 34# Short version format: "8.6"
36VER = "${@os.path.splitext(d.getVar('PV'))[0]}" 35VER = "${@os.path.splitext(d.getVar('PV'))[0]}"
37 36
38LDFLAGS += "-Wl,-rpath,${libdir}/tcltk/${PV}/lib" 37LDFLAGS += "-Wl,-rpath,${libdir}/tcltk/${PV}/lib"
38CFLAGS += "-I${STAGING_INCDIR}/tcl${VER}"
39inherit autotools features_check pkgconfig 39inherit autotools features_check pkgconfig
40
41AUTOTOOLS_SCRIPT_PATH = "${S}/unix"
42EXTRA_AUTORECONF += "--exclude=aclocal"
43
40# depends on virtual/libx11 44# depends on virtual/libx11
41REQUIRED_DISTRO_FEATURES = "x11" 45REQUIRED_DISTRO_FEATURES = "x11"
42 46
@@ -46,7 +50,9 @@ EXTRA_OECONF = "\
46 --with-tcl=${STAGING_BINDIR}/crossscripts \ 50 --with-tcl=${STAGING_BINDIR}/crossscripts \
47 --libdir=${libdir} \ 51 --libdir=${libdir} \
48" 52"
49export TK_LIBRARY='${libdir}/tk${VER}' 53
54export TK_LIBRARY = '${libdir}/tk${VER}'
55
50do_install:append() { 56do_install:append() {
51 ln -sf libtk${VER}.so ${D}${libdir}/libtk${VER}.so.0 57 ln -sf libtk${VER}.so ${D}${libdir}/libtk${VER}.so.0
52 oe_libinstall -so libtk${VER} ${D}${libdir} 58 oe_libinstall -so libtk${VER} ${D}${libdir}
@@ -68,7 +74,7 @@ FILES:${PN}-lib = "${libdir}/libtk${VER}.so*"
68FILES:${PN} += "${libdir}/tk*" 74FILES:${PN} += "${libdir}/tk*"
69 75
70# isn't getting picked up by shlibs code 76# isn't getting picked up by shlibs code
71RDEPENDS:${PN} += "tk-lib" 77RDEPENDS:${PN} += "tk8-lib"
72RDEPENDS:${PN}:class-native = "" 78RDEPENDS:${PN}:class-native = ""
73 79
74BBCLASSEXTEND = "native nativesdk" 80BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-oe/recipes-devtools/tcltk/tk_9.0.1.bb b/meta-oe/recipes-devtools/tcltk/tk_9.0.1.bb
new file mode 100644
index 0000000000..504b40927e
--- /dev/null
+++ b/meta-oe/recipes-devtools/tcltk/tk_9.0.1.bb
@@ -0,0 +1,101 @@
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] = "d6f01a4d598bfc6398be9584e1bab828c907b0758db4bbb351a1429106aec527"
24
25UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/tcl/files/Tcl/"
26UPSTREAM_CHECK_REGEX = "Tcl/(?P<pver>\d+(\.\d+)+)/"
27
28S = "${UNPACKDIR}/${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"
38EXTRA_AUTORECONF += "--exclude=aclocal"
39
40# depends on virtual/libx11
41REQUIRED_DISTRO_FEATURES = "x11"
42
43EXTRA_OECONF = "\
44 --with-x \
45 --with-tcl=${STAGING_BINDIR}/crossscripts \
46 --libdir=${libdir} \
47"
48
49export TK_LIBRARY = '${libdir}/tk${VER}'
50
51do_install:append() {
52 ln -sf wish${VER} ${D}${bindir}/wish
53
54 sed -i "s;-L${B};-L${STAGING_LIBDIR};g" tkConfig.sh
55 sed -i "s;'${WORKDIR};'${STAGING_INCDIR};g" tkConfig.sh
56 install -d ${D}${bindir_crossscripts}
57 install -m 0755 tkConfig.sh ${D}${bindir_crossscripts}
58}
59
60PACKAGECONFIG ??= "xft"
61PACKAGECONFIG[xft] = "--enable-xft,--disable-xft,xft"
62PACKAGECONFIG[xss] = "--enable-xss,--disable-xss,libxscrnsaver libxext"
63
64PACKAGES =+ "${PN}-lib"
65
66SOLIBS = ".so"
67FILES_SOLIBSDEV = ""
68
69FILES:${PN}-lib = "${libdir}/libtcl9tk${VER}.so*"
70FILES:${PN} += "${libdir}/tk*"
71
72# isn't getting picked up by shlibs code
73RDEPENDS:${PN} += "tk-lib"
74RDEPENDS:${PN}:class-native = ""
75
76BBCLASSEXTEND = "native nativesdk"
77
78# Fix the path in sstate
79SSTATE_SCAN_FILES += "*Config.sh"
80
81inherit binconfig
82
83SYSROOT_DIRS += "${bindir_crossscripts}"
84
85# Fix some paths that might be used by Tcl extensions
86BINCONFIG_GLOB = "*Config.sh"
87
88# Cleanup host path from ${libdir}/tclConfig.sh and remove the
89# ${bindir_crossscripts}/tclConfig.sh from target
90PACKAGE_PREPROCESS_FUNCS += "tcl_package_preprocess"
91tcl_package_preprocess() {
92 sed -i -e "s;${DEBUG_PREFIX_MAP};;g" \
93 -e "s;-L${STAGING_LIBDIR};-L${libdir};g" \
94 -e "s;${STAGING_INCDIR};${includedir};g" \
95 -e "s;--sysroot=${RECIPE_SYSROOT};;g" \
96 -e "s;${B};${libdir};g" \
97 -e "s;${WORKDIR};${TARGET_DBGSRC_DIR};g" \
98 ${PKGD}${libdir}/tkConfig.sh
99
100 rm -f ${PKGD}${bindir_crossscripts}/tkConfig.sh
101}