diff options
Diffstat (limited to 'meta-oe/recipes-devtools/tcltk/tk_8.6.10.bb')
| -rw-r--r-- | meta-oe/recipes-devtools/tcltk/tk_8.6.10.bb | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/tcltk/tk_8.6.10.bb b/meta-oe/recipes-devtools/tcltk/tk_8.6.10.bb new file mode 100644 index 0000000000..b564e12603 --- /dev/null +++ b/meta-oe/recipes-devtools/tcltk/tk_8.6.10.bb | |||
| @@ -0,0 +1,93 @@ | |||
| 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://${S}/../license.terms;md5=c88f99decec11afa967ad33d314f87fe \ | ||
| 8 | file://${S}/../compat/license.terms;md5=c88f99decec11afa967ad33d314f87fe \ | ||
| 9 | file://${S}/../doc/license.terms;md5=c88f99decec11afa967ad33d314f87fe \ | ||
| 10 | file://${S}/../library/license.terms;md5=c88f99decec11afa967ad33d314f87fe \ | ||
| 11 | file://${S}/../macosx/license.terms;md5=c88f99decec11afa967ad33d314f87fe \ | ||
| 12 | file://${S}/../tests/license.terms;md5=c88f99decec11afa967ad33d314f87fe \ | ||
| 13 | file://${S}/../unix/license.terms;md5=c88f99decec11afa967ad33d314f87fe \ | ||
| 14 | file://${S}/../win/license.terms;md5=c88f99decec11afa967ad33d314f87fe \ | ||
| 15 | file://${S}/../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://tkprivate.diff;striplevel=2 \ | ||
| 24 | file://fix-xft.diff \ | ||
| 25 | " | ||
| 26 | SRC_URI[md5sum] = "602a47ad9ecac7bf655ada729d140a94" | ||
| 27 | SRC_URI[sha256sum] = "63df418a859d0a463347f95ded5cd88a3dd3aaa1ceecaeee362194bc30f3e386" | ||
| 28 | |||
| 29 | S = "${WORKDIR}/${BPN}${PV}/unix" | ||
| 30 | |||
| 31 | # Short version format: "8.6" | ||
| 32 | VER = "${@os.path.splitext(d.getVar('PV'))[0]}" | ||
| 33 | |||
| 34 | LDFLAGS += "-Wl,-rpath,${libdir}/tcltk/${PV}/lib" | ||
| 35 | inherit autotools features_check | ||
| 36 | # depends on virtual/libx11 | ||
| 37 | REQUIRED_DISTRO_FEATURES = "x11" | ||
| 38 | |||
| 39 | EXTRA_OECONF = "\ | ||
| 40 | --enable-threads \ | ||
| 41 | --with-x \ | ||
| 42 | --with-tcl=${STAGING_BINDIR}/crossscripts \ | ||
| 43 | --libdir=${libdir} \ | ||
| 44 | " | ||
| 45 | export TK_LIBRARY='${libdir}/tk${VER}' | ||
| 46 | do_install_append() { | ||
| 47 | ln -sf libtk${VER}.so ${D}${libdir}/libtk${VER}.so.0 | ||
| 48 | oe_libinstall -so libtk${VER} ${D}${libdir} | ||
| 49 | ln -sf wish${VER} ${D}${bindir}/wish | ||
| 50 | |||
| 51 | sed -i "s;-L${B};-L${STAGING_LIBDIR};g" tkConfig.sh | ||
| 52 | sed -i "s;'${WORKDIR};'${STAGING_INCDIR};g" tkConfig.sh | ||
| 53 | install -d ${D}${bindir_crossscripts} | ||
| 54 | install -m 0755 tkConfig.sh ${D}${bindir_crossscripts} | ||
| 55 | } | ||
| 56 | |||
| 57 | PACKAGECONFIG ??= "xft" | ||
| 58 | PACKAGECONFIG[xft] = "--enable-xft,--disable-xft,xft" | ||
| 59 | PACKAGECONFIG[xss] = "--enable-xss,--disable-xss,libxscrnsaver libxext" | ||
| 60 | |||
| 61 | PACKAGES =+ "${PN}-lib" | ||
| 62 | |||
| 63 | FILES_${PN}-lib = "${libdir}/libtk${VER}.so*" | ||
| 64 | FILES_${PN} += "${libdir}/tk*" | ||
| 65 | |||
| 66 | # isn't getting picked up by shlibs code | ||
| 67 | RDEPENDS_${PN} += "tk-lib" | ||
| 68 | RDEPENDS_${PN}_class-native = "" | ||
| 69 | |||
| 70 | BBCLASSEXTEND = "native nativesdk" | ||
| 71 | |||
| 72 | # Fix the path in sstate | ||
| 73 | SSTATE_SCAN_FILES += "*Config.sh" | ||
| 74 | |||
| 75 | inherit binconfig | ||
| 76 | |||
| 77 | SYSROOT_DIRS += "${bindir_crossscripts}" | ||
| 78 | |||
| 79 | # Fix some paths that might be used by Tcl extensions | ||
| 80 | BINCONFIG_GLOB = "*Config.sh" | ||
| 81 | |||
| 82 | # Cleanup host path from ${libdir}/tclConfig.sh and remove the | ||
| 83 | # ${bindir_crossscripts}/tclConfig.sh from target | ||
| 84 | PACKAGE_PREPROCESS_FUNCS += "tcl_package_preprocess" | ||
| 85 | tcl_package_preprocess() { | ||
| 86 | sed -i -e "s;${DEBUG_PREFIX_MAP};;g" \ | ||
| 87 | -e "s;-L${STAGING_LIBDIR};-L${libdir};g" \ | ||
| 88 | -e "s;${STAGING_INCDIR};${includedir};g" \ | ||
| 89 | -e "s;--sysroot=${RECIPE_SYSROOT};;g" \ | ||
| 90 | ${PKGD}${libdir}/tkConfig.sh | ||
| 91 | |||
| 92 | rm -f ${PKGD}${bindir_crossscripts}/tkConfig.sh | ||
| 93 | } | ||
