diff options
| author | Wang Xin <wangxin2015.fnst@cn.fujitsu.com> | 2016-09-11 08:02:35 -0400 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2016-09-15 10:22:48 +0200 |
| commit | 29a6cb6a425a80fff4a4ebc94fa5091b8746a1a5 (patch) | |
| tree | 52da1f091461a53556aa1931fb340c6d1eccbb31 /meta-oe/recipes-devtools/tcltk/tk_8.6.6.bb | |
| parent | 3b675cb672ee7141867afa1b1137da9120fd4e12 (diff) | |
| download | meta-openembedded-29a6cb6a425a80fff4a4ebc94fa5091b8746a1a5.tar.gz | |
tk: 8.6.4 -> 8.6.6
Upgrade tk from 8.6.4 to 8.6.6.
Signed-off-by: Wang Xin <wangxin2015.fnst@cn.fujitsu.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools/tcltk/tk_8.6.6.bb')
| -rw-r--r-- | meta-oe/recipes-devtools/tcltk/tk_8.6.6.bb | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/tcltk/tk_8.6.6.bb b/meta-oe/recipes-devtools/tcltk/tk_8.6.6.bb new file mode 100644 index 0000000000..59075bc6b2 --- /dev/null +++ b/meta-oe/recipes-devtools/tcltk/tk_8.6.6.bb | |||
| @@ -0,0 +1,79 @@ | |||
| 1 | SUMMARY = "Tool Command Language ToolKit Extension" | ||
| 2 | HOMEPAGE = "http://tcl.sourceforge.net" | ||
| 3 | SECTION = "devel/tcltk" | ||
| 4 | |||
| 5 | # http://www.tcl.tk/software/tcltk/license.html | ||
| 6 | LICENSE = "tcl" | ||
| 7 | LIC_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 | |||
| 18 | DEPENDS = "tcl virtual/libx11 libxt" | ||
| 19 | |||
| 20 | SRC_URI = "\ | ||
| 21 | ${SOURCEFORGE_MIRROR}/tcl/${BPN}${PV}-src.tar.gz \ | ||
| 22 | file://confsearch.diff;striplevel=2 \ | ||
| 23 | file://non-linux.diff;striplevel=2 \ | ||
| 24 | file://tklibrary.diff;striplevel=2 \ | ||
| 25 | file://tkprivate.diff;striplevel=2 \ | ||
| 26 | file://fix-xft.diff \ | ||
| 27 | file://configure.use.fontconfig.with.xft.patch \ | ||
| 28 | " | ||
| 29 | SRC_URI[md5sum] = "dd7dbb3a6523c42d05f6ab6e86096e99" | ||
| 30 | SRC_URI[sha256sum] = "d62c371a71b4744ed830e3c21d27968c31dba74dd2c45f36b9b071e6d88eb19d" | ||
| 31 | |||
| 32 | S = "${WORKDIR}/${BPN}${PV}/unix" | ||
| 33 | |||
| 34 | # Short version format: "8.6" | ||
| 35 | VER = "${@os.path.splitext(d.getVar('PV', True))[0]}" | ||
| 36 | |||
| 37 | LDFLAGS += "-Wl,-rpath,${libdir}/tcltk/${PV}/lib" | ||
| 38 | inherit autotools distro_features_check | ||
| 39 | # depends on virtual/libx11 | ||
| 40 | REQUIRED_DISTRO_FEATURES = "x11" | ||
| 41 | |||
| 42 | EXTRA_OECONF = "\ | ||
| 43 | --enable-threads \ | ||
| 44 | --with-x \ | ||
| 45 | --with-tcl=${STAGING_BINDIR_CROSS} \ | ||
| 46 | --libdir=${libdir} \ | ||
| 47 | " | ||
| 48 | |||
| 49 | do_install_append() { | ||
| 50 | ln -sf libtk${VER}.so ${D}${libdir}/libtk${VER}.so.0 | ||
| 51 | oe_libinstall -so libtk${VER} ${D}${libdir} | ||
| 52 | ln -sf wish${VER} ${D}${bindir}/wish | ||
| 53 | |||
| 54 | # Even after passing libdir=${libdir} at config, some incorrect dirs are still generated for the multilib build | ||
| 55 | if [ "$libdir" != "/usr/lib" ]; then | ||
| 56 | # Move files to correct library directory | ||
| 57 | mv ${D}/usr/lib/tk${VER}/* ${D}/${libdir}/tk${VER}/ | ||
| 58 | # Remove unneeded/incorrect dir ('usr/lib/') | ||
| 59 | rm -rf ${D}/usr/lib | ||
| 60 | fi | ||
| 61 | } | ||
| 62 | |||
| 63 | PACKAGECONFIG ??= "xft" | ||
| 64 | PACKAGECONFIG[xft] = "--enable-xft,--disable-xft,xft" | ||
| 65 | PACKAGECONFIG[xss] = "--enable-xss,--disable-xss,libxscrnsaver libxext" | ||
| 66 | |||
| 67 | PACKAGES =+ "${PN}-lib" | ||
| 68 | |||
| 69 | FILES_${PN}-lib = "${libdir}/libtk${VER}.so*" | ||
| 70 | FILES_${PN} += "${libdir}/tk*" | ||
| 71 | |||
| 72 | # isn't getting picked up by shlibs code | ||
| 73 | RDEPENDS_${PN} += "tk-lib" | ||
| 74 | RDEPENDS_${PN}_class-native = "" | ||
| 75 | |||
| 76 | BBCLASSEXTEND = "native" | ||
| 77 | |||
| 78 | # Fix the path in sstate | ||
| 79 | SSTATE_SCAN_FILES += "*Config.sh" | ||
