diff options
| -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) | 10 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/tcltk/tk_9.0.0.bb | 100 |
5 files changed, 105 insertions, 5 deletions
diff --git a/meta-oe/recipes-devtools/tcltk/tk/confsearch.diff b/meta-oe/recipes-devtools/tcltk/tk8/confsearch.diff index 81d4735752..81d4735752 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 c1e2f7344e..c1e2f7344e 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 8cdcf20207..8cdcf20207 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 1438a05625..f277b86d91 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 | ||
| 18 | DEPENDS = "tcl virtual/libx11 libxt" | 18 | DEPENDS = "tcl8 virtual/libx11 libxt" |
| 19 | 19 | ||
| 20 | SRC_URI = "\ | 20 | SRC_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,13 +29,13 @@ SRC_URI[sha256sum] = "550969f35379f952b3020f3ab7b9dd5bfd11c1ef7c9b7c6a75f5c49aca | |||
| 29 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/tcl/files/Tcl/" | 29 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/tcl/files/Tcl/" |
| 30 | UPSTREAM_CHECK_REGEX = "Tcl/(?P<pver>\d+(\.\d+)+)/" | 30 | UPSTREAM_CHECK_REGEX = "Tcl/(?P<pver>\d+(\.\d+)+)/" |
| 31 | 31 | ||
| 32 | S = "${WORKDIR}/${BPN}${PV}" | 32 | S = "${WORKDIR}/tk${PV}" |
| 33 | 33 | ||
| 34 | # Short version format: "8.6" | 34 | # Short version format: "8.6" |
| 35 | VER = "${@os.path.splitext(d.getVar('PV'))[0]}" | 35 | VER = "${@os.path.splitext(d.getVar('PV'))[0]}" |
| 36 | 36 | ||
| 37 | LDFLAGS += "-Wl,-rpath,${libdir}/tcltk/${PV}/lib" | 37 | LDFLAGS += "-Wl,-rpath,${libdir}/tcltk/${PV}/lib" |
| 38 | 38 | CFLAGS += "-I${STAGING_INCDIR}/tcl${VER}" | |
| 39 | inherit autotools features_check pkgconfig | 39 | inherit autotools features_check pkgconfig |
| 40 | 40 | ||
| 41 | AUTOTOOLS_SCRIPT_PATH = "${S}/unix" | 41 | AUTOTOOLS_SCRIPT_PATH = "${S}/unix" |
| @@ -73,7 +73,7 @@ FILES:${PN}-lib = "${libdir}/libtk${VER}.so*" | |||
| 73 | FILES:${PN} += "${libdir}/tk*" | 73 | FILES:${PN} += "${libdir}/tk*" |
| 74 | 74 | ||
| 75 | # isn't getting picked up by shlibs code | 75 | # isn't getting picked up by shlibs code |
| 76 | RDEPENDS:${PN} += "tk-lib" | 76 | RDEPENDS:${PN} += "tk8-lib" |
| 77 | RDEPENDS:${PN}:class-native = "" | 77 | RDEPENDS:${PN}:class-native = "" |
| 78 | 78 | ||
| 79 | BBCLASSEXTEND = "native nativesdk" | 79 | BBCLASSEXTEND = "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 0000000000..7deba151f7 --- /dev/null +++ b/meta-oe/recipes-devtools/tcltk/tk_9.0.0.bb | |||
| @@ -0,0 +1,100 @@ | |||
| 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 zip-native" | ||
| 19 | |||
| 20 | SRC_URI = "\ | ||
| 21 | ${SOURCEFORGE_MIRROR}/tcl/${BPN}${PV}-src.tar.gz \ | ||
| 22 | " | ||
| 23 | SRC_URI[sha256sum] = "f166e3c20773c82243f753cef4b091d05267cb7f87da64be88cb2ca5a2ba027e" | ||
| 24 | |||
| 25 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/tcl/files/Tcl/" | ||
| 26 | UPSTREAM_CHECK_REGEX = "Tcl/(?P<pver>\d+(\.\d+)+)/" | ||
| 27 | |||
| 28 | S = "${WORKDIR}/${BPN}${PV}" | ||
| 29 | |||
| 30 | # Short version format: "8.6" | ||
| 31 | VER = "${@os.path.splitext(d.getVar('PV'))[0]}" | ||
| 32 | |||
| 33 | LDFLAGS += "-Wl,-rpath,${libdir}/tcltk/${PV}/lib" | ||
| 34 | |||
| 35 | inherit autotools features_check pkgconfig | ||
| 36 | |||
| 37 | AUTOTOOLS_SCRIPT_PATH = "${S}/unix" | ||
| 38 | |||
| 39 | # depends on virtual/libx11 | ||
| 40 | REQUIRED_DISTRO_FEATURES = "x11" | ||
| 41 | |||
| 42 | EXTRA_OECONF = "\ | ||
| 43 | --with-x \ | ||
| 44 | --with-tcl=${STAGING_BINDIR}/crossscripts \ | ||
| 45 | --libdir=${libdir} \ | ||
| 46 | " | ||
| 47 | |||
| 48 | export TK_LIBRARY='${libdir}/tk${VER}' | ||
| 49 | |||
| 50 | do_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 | |||
| 59 | PACKAGECONFIG ??= "xft" | ||
| 60 | PACKAGECONFIG[xft] = "--enable-xft,--disable-xft,xft" | ||
| 61 | PACKAGECONFIG[xss] = "--enable-xss,--disable-xss,libxscrnsaver libxext" | ||
| 62 | |||
| 63 | PACKAGES =+ "${PN}-lib" | ||
| 64 | |||
| 65 | SOLIBS = ".so" | ||
| 66 | FILES_SOLIBSDEV = "" | ||
| 67 | |||
| 68 | FILES:${PN}-lib = "${libdir}/libtcl9tk${VER}.so*" | ||
| 69 | FILES:${PN} += "${libdir}/tk*" | ||
| 70 | |||
| 71 | # isn't getting picked up by shlibs code | ||
| 72 | RDEPENDS:${PN} += "tk-lib" | ||
| 73 | RDEPENDS:${PN}:class-native = "" | ||
| 74 | |||
| 75 | BBCLASSEXTEND = "native nativesdk" | ||
| 76 | |||
| 77 | # Fix the path in sstate | ||
| 78 | SSTATE_SCAN_FILES += "*Config.sh" | ||
| 79 | |||
| 80 | inherit binconfig | ||
| 81 | |||
| 82 | SYSROOT_DIRS += "${bindir_crossscripts}" | ||
| 83 | |||
| 84 | # Fix some paths that might be used by Tcl extensions | ||
| 85 | BINCONFIG_GLOB = "*Config.sh" | ||
| 86 | |||
| 87 | # Cleanup host path from ${libdir}/tclConfig.sh and remove the | ||
| 88 | # ${bindir_crossscripts}/tclConfig.sh from target | ||
| 89 | PACKAGE_PREPROCESS_FUNCS += "tcl_package_preprocess" | ||
| 90 | tcl_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 | } | ||
