summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/tcltk
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2014-10-10 03:20:04 +0200
committerTudor Florea <tudor.florea@enea.com>2014-10-10 03:20:04 +0200
commit1b8dfe266937a37a4c642f96ceb2347bf4c00a17 (patch)
tree0c6aab146bb3c82efd9c7846a9a4e70dcb0ec84f /meta-oe/recipes-devtools/tcltk
downloadmeta-openembedded-daisy-140929.tar.gz
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-oe/recipes-devtools/tcltk')
-rw-r--r--meta-oe/recipes-devtools/tcltk/tk-8.6.0/confsearch.diff32
-rw-r--r--meta-oe/recipes-devtools/tcltk/tk-8.6.0/fix-xft.diff16
-rw-r--r--meta-oe/recipes-devtools/tcltk/tk-8.6.0/non-linux.diff45
-rw-r--r--meta-oe/recipes-devtools/tcltk/tk-8.6.0/tklibrary.diff22
-rw-r--r--meta-oe/recipes-devtools/tcltk/tk-8.6.0/tkprivate.diff41
-rw-r--r--meta-oe/recipes-devtools/tcltk/tk_8.6.0.bb54
6 files changed, 210 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/tcltk/tk-8.6.0/confsearch.diff b/meta-oe/recipes-devtools/tcltk/tk-8.6.0/confsearch.diff
new file mode 100644
index 0000000000..c51e475426
--- /dev/null
+++ b/meta-oe/recipes-devtools/tcltk/tk-8.6.0/confsearch.diff
@@ -0,0 +1,32 @@
1Patch by Sergei Golovan allows to find tclConfig.sh in /usr/share/tcltk/tcl8.5
2and tkConfig.sh in /usr/share/tcltk/tk8.5 where they are located in Debian
3installation.
4
5--- tk8.5-8.5.8.orig/unix/configure
6+++ tk8.5-8.5.8/unix/configure
7@@ -1431,6 +1431,7 @@
8 `ls -d ${prefix}/lib 2>/dev/null` \
9 `ls -d /usr/local/lib 2>/dev/null` \
10 `ls -d /usr/contrib/lib 2>/dev/null` \
11+ `ls -d /usr/share/tcltk/tcl8.5 2>/dev/null` \
12 `ls -d /usr/lib 2>/dev/null` \
13 ; do
14 if test -f "$i/tclConfig.sh" ; then
15--- tk8.5-8.5.8.orig/unix/tcl.m4
16+++ tk8.5-8.5.8/unix/tcl.m4
17@@ -93,6 +93,7 @@
18 `ls -d ${prefix}/lib 2>/dev/null` \
19 `ls -d /usr/local/lib 2>/dev/null` \
20 `ls -d /usr/contrib/lib 2>/dev/null` \
21+ `ls -d /usr/share/tcltk/tcl8.5 2>/dev/null` \
22 `ls -d /usr/lib 2>/dev/null` \
23 ; do
24 if test -f "$i/tclConfig.sh" ; then
25@@ -223,6 +224,7 @@
26 `ls -d ${prefix}/lib 2>/dev/null` \
27 `ls -d /usr/local/lib 2>/dev/null` \
28 `ls -d /usr/contrib/lib 2>/dev/null` \
29+ `ls -d /usr/share/tcltk/tk8.5 2>/dev/null` \
30 `ls -d /usr/lib 2>/dev/null` \
31 ; do
32 if test -f "$i/tkConfig.sh" ; then
diff --git a/meta-oe/recipes-devtools/tcltk/tk-8.6.0/fix-xft.diff b/meta-oe/recipes-devtools/tcltk/tk-8.6.0/fix-xft.diff
new file mode 100644
index 0000000000..d1bb7105c6
--- /dev/null
+++ b/meta-oe/recipes-devtools/tcltk/tk-8.6.0/fix-xft.diff
@@ -0,0 +1,16 @@
1--- /tmp/configure.in 2010-05-19 13:29:03.000000000 +0200
2+++ unix/configure.in 2010-05-19 13:42:05.000000000 +0200
3@@ -526,13 +526,9 @@
4 found_xft="yes"
5 dnl make sure package configurator (xft-config or pkg-config
6 dnl says that xft is present.
7- XFT_CFLAGS=`xft-config --cflags 2>/dev/null` || found_xft="no"
8- XFT_LIBS=`xft-config --libs 2>/dev/null` || found_xft="no"
9- if test "$found_xft" = "no" ; then
10 found_xft=yes
11 XFT_CFLAGS=`pkg-config --cflags xft 2>/dev/null` || found_xft="no"
12 XFT_LIBS=`pkg-config --libs xft 2>/dev/null` || found_xft="no"
13- fi
14 AC_MSG_RESULT([$found_xft])
15 dnl make sure that compiling against Xft header file doesn't bomb
16 if test "$found_xft" = "yes" ; then
diff --git a/meta-oe/recipes-devtools/tcltk/tk-8.6.0/non-linux.diff b/meta-oe/recipes-devtools/tcltk/tk-8.6.0/non-linux.diff
new file mode 100644
index 0000000000..9309fc48e1
--- /dev/null
+++ b/meta-oe/recipes-devtools/tcltk/tk-8.6.0/non-linux.diff
@@ -0,0 +1,45 @@
1Patch by Sergei Golovan (originally by Mike Markley and Chris Waters) fixes
2building on non-linux Debian architectures.
3
4--- tk8.5-8.5.8.orig/unix/configure
5+++ tk8.5-8.5.8/unix/configure
6@@ -4742,6 +4742,9 @@
7 if test "`uname -s`" = "AIX" ; then
8 tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
9 fi
10+ if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
11+ tcl_cv_sys_version=NetBSD-Debian
12+ fi
13 fi
14 fi
15
16@@ -5546,7 +5549,7 @@
17 fi
18
19 ;;
20- Linux*)
21+ Linux*|GNU*|NetBSD-Debian)
22 SHLIB_CFLAGS="-fPIC"
23 SHLIB_LD_LIBS='${LIBS}'
24 SHLIB_SUFFIX=".so"
25--- tk8.5-8.5.8.orig/unix/tcl.m4
26+++ tk8.5-8.5.8/unix/tcl.m4
27@@ -962,6 +962,9 @@
28 if test "`uname -s`" = "AIX" ; then
29 tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
30 fi
31+ if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
32+ tcl_cv_sys_version=NetBSD-Debian
33+ fi
34 fi
35 fi
36 ])
37@@ -1422,7 +1425,7 @@
38 ])
39 ])
40 ;;
41- Linux*)
42+ Linux*|GNU*|NetBSD-Debian)
43 SHLIB_CFLAGS="-fPIC"
44 SHLIB_LD_LIBS='${LIBS}'
45 SHLIB_SUFFIX=".so"
diff --git a/meta-oe/recipes-devtools/tcltk/tk-8.6.0/tklibrary.diff b/meta-oe/recipes-devtools/tcltk/tk-8.6.0/tklibrary.diff
new file mode 100644
index 0000000000..ee38c2a1a5
--- /dev/null
+++ b/meta-oe/recipes-devtools/tcltk/tk-8.6.0/tklibrary.diff
@@ -0,0 +1,22 @@
1--- tk8.5-8.5.8.orig/unix/configure
2+++ tk8.5-8.5.8/unix/configure
3@@ -11070,7 +11070,7 @@
4 TCL_STUB_FLAGS="-DUSE_TCL_STUBS"
5 fi
6
7-TK_LIBRARY='$(prefix)/lib/tk$(VERSION)'
8+test -z "$TK_LIBRARY" && TK_LIBRARY='$(prefix)/lib/tk$(VERSION)'
9 PRIVATE_INCLUDE_DIR='$(includedir)'
10 HTML_DIR='$(DISTDIR)/html'
11 TK_PKG_DIR='tk$(VERSION)'
12--- tk8.5-8.5.8.orig/unix/configure.in
13+++ tk8.5-8.5.8/unix/configure.in
14@@ -607,7 +607,7 @@
15 TCL_STUB_FLAGS="-DUSE_TCL_STUBS"
16 fi
17
18-TK_LIBRARY='$(prefix)/lib/tk$(VERSION)'
19+test -z "$TK_LIBRARY" && TK_LIBRARY='$(prefix)/lib/tk$(VERSION)'
20 PRIVATE_INCLUDE_DIR='$(includedir)'
21 HTML_DIR='$(DISTDIR)/html'
22 TK_PKG_DIR='tk$(VERSION)'
diff --git a/meta-oe/recipes-devtools/tcltk/tk-8.6.0/tkprivate.diff b/meta-oe/recipes-devtools/tcltk/tk-8.6.0/tkprivate.diff
new file mode 100644
index 0000000000..4e15469736
--- /dev/null
+++ b/meta-oe/recipes-devtools/tcltk/tk-8.6.0/tkprivate.diff
@@ -0,0 +1,41 @@
1Patch by Chris Waters sets path which are normally point to a directory
2with Tk sources to a subdirectory of /usr/include/tcl8.4 (debian/rules
3puts private Tk headers there).
4
5--- tk8.5-8.5.8.orig/unix/tkConfig.sh.in
6+++ tk8.5-8.5.8/unix/tkConfig.sh.in
7@@ -55,7 +55,7 @@
8
9 # String to pass to linker to pick up the Tk library from its
10 # build directory.
11-TK_BUILD_LIB_SPEC='@TK_BUILD_LIB_SPEC@'
12+TK_BUILD_LIB_SPEC='@TK_LIB_SPEC@'
13
14 # String to pass to linker to pick up the Tk library from its
15 # installed directory.
16@@ -71,7 +71,7 @@
17 # different place than the directory containing the source files, this
18 # points to the location of the sources, not the location where Tk was
19 # compiled.
20-TK_SRC_DIR='@TK_SRC_DIR@'
21+TK_SRC_DIR='@includedir@/tk-private'
22
23 # Needed if you want to make a 'fat' shared library library
24 # containing tk objects or link a different wish.
25@@ -86,14 +86,14 @@
26
27 # String to pass to linker to pick up the Tk stub library from its
28 # build directory.
29-TK_BUILD_STUB_LIB_SPEC='@TK_BUILD_STUB_LIB_SPEC@'
30+TK_BUILD_STUB_LIB_SPEC='@TK_STUB_LIB_SPEC@'
31
32 # String to pass to linker to pick up the Tk stub library from its
33 # installed directory.
34 TK_STUB_LIB_SPEC='@TK_STUB_LIB_SPEC@'
35
36 # Path to the Tk stub library in the build directory.
37-TK_BUILD_STUB_LIB_PATH='@TK_BUILD_STUB_LIB_PATH@'
38+TK_BUILD_STUB_LIB_PATH='@TK_STUB_LIB_PATH@'
39
40 # Path to the Tk stub library in the install directory.
41 TK_STUB_LIB_PATH='@TK_STUB_LIB_PATH@'
diff --git a/meta-oe/recipes-devtools/tcltk/tk_8.6.0.bb b/meta-oe/recipes-devtools/tcltk/tk_8.6.0.bb
new file mode 100644
index 0000000000..d12973cbe6
--- /dev/null
+++ b/meta-oe/recipes-devtools/tcltk/tk_8.6.0.bb
@@ -0,0 +1,54 @@
1SUMMARY = "Tool Command Language ToolKit Extension"
2HOMEPAGE = "http://tcl.sourceforge.net"
3SECTION = "devel/tcltk"
4LICENSE = "tcl"
5LIC_FILES_CHKSUM = "file://license.terms;md5=c88f99decec11afa967ad33d314f87fe"
6DEPENDS = "tcl virtual/libx11 libxt"
7
8SRC_URI = "\
9 ${SOURCEFORGE_MIRROR}/tcl/tk${PV}-src.tar.gz \
10 file://confsearch.diff;striplevel=2 \
11 file://non-linux.diff;striplevel=2 \
12 file://tklibrary.diff;striplevel=2 \
13 file://tkprivate.diff;striplevel=2 \
14 file://fix-xft.diff \
15"
16SRC_URI[md5sum] = "b883a1a3c489c17413fb602a94bf54e8"
17SRC_URI[sha256sum] = "5c708b2b6f658916df59190b27750fa1ea2bc10992108e10f961c0700f058de6"
18
19S = "${WORKDIR}/tk${PV}/unix"
20LDFLAGS += "-Wl,-rpath,${libdir}/tcltk/8.6.0/lib"
21inherit autotools
22
23EXTRA_OECONF = "\
24 --enable-threads \
25 --with-x \
26 --with-tcl=${STAGING_BINDIR_CROSS} \
27 --libdir=${libdir} \
28"
29
30do_install_append() {
31 ln -sf libtk8.6.so ${D}${libdir}/libtk8.6.so.0
32 oe_libinstall -so libtk8.6 ${D}${libdir}
33 ln -sf wish8.6 ${D}${bindir}/wish
34
35 # Even after passing libdir=${libdir} at config, some incorrect dirs are still generated for the multilib build
36 if [ "$libdir" != "/usr/lib" ]; then
37 # Move files to correct library directory
38 mv ${D}/usr/lib/tk8.6/* ${D}/${libdir}/tk8.6/
39 # Remove unneeded/incorrect dir ('usr/lib/')
40 rm -rf ${D}/usr/lib
41 fi
42}
43
44PACKAGES =+ "${PN}-lib"
45
46FILES_${PN}-lib = "${libdir}/libtk8.6.so*"
47FILES_${PN} += "${libdir}/tk*"
48
49# isn't getting picked up by shlibs code
50RDEPENDS_${PN} += "tk-lib"
51RDEPENDS_${PN}_class-native = ""
52
53BINCONFIG_GLOB = "*Config.sh"
54BBCLASSEXTEND = "native"