diff options
| author | Ross Burton <ross.burton@arm.com> | 2024-10-24 17:44:19 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-10-24 14:02:39 -0700 |
| commit | 3c1228e793a9a6cbbfd27655774ad965976cfa4a (patch) | |
| tree | 75f28da2e9839618c00ab3631bb724ed51205b42 /meta-oe/recipes-devtools/tcltk | |
| parent | c24c8039c96a06e63abd49846ab456c6646a3a0b (diff) | |
| download | meta-openembedded-3c1228e793a9a6cbbfd27655774ad965976cfa4a.tar.gz | |
tk: set AUTOTOOLS_SCRIPT_PATH instead of having to mess with S/../
We want to run the configure script in ${S}/unix, so instead of setting
S to BP/unix and then having to use ../ to reach up a level constantly
(including some deep changes to DEBUG_PREFIX_MAP and PSEUDO_IGNORE_PATHS)
we can set S to the top of the source tree as usual and tell autotools
where the configure script is.
This both makes the recipe clearer, and enables tk-src to be generated
correctly.
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools/tcltk')
| -rw-r--r-- | meta-oe/recipes-devtools/tcltk/tk/fix-xft.diff | 4 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/tcltk/tk_8.6.15.bb | 34 |
2 files changed, 20 insertions, 18 deletions
diff --git a/meta-oe/recipes-devtools/tcltk/tk/fix-xft.diff b/meta-oe/recipes-devtools/tcltk/tk/fix-xft.diff index fdf3c66535..c1e2f7344e 100644 --- a/meta-oe/recipes-devtools/tcltk/tk/fix-xft.diff +++ b/meta-oe/recipes-devtools/tcltk/tk/fix-xft.diff | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | Upstream-Status: Pending | 1 | Upstream-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_8.6.15.bb b/meta-oe/recipes-devtools/tcltk/tk_8.6.15.bb index 8d055c9d11..1438a05625 100644 --- a/meta-oe/recipes-devtools/tcltk/tk_8.6.15.bb +++ b/meta-oe/recipes-devtools/tcltk/tk_8.6.15.bb | |||
| @@ -4,23 +4,23 @@ SECTION = "devel/tcltk" | |||
| 4 | 4 | ||
| 5 | # http://www.tcl.tk/software/tcltk/license.html | 5 | # http://www.tcl.tk/software/tcltk/license.html |
| 6 | LICENSE = "TCL" | 6 | LICENSE = "TCL" |
| 7 | LIC_FILES_CHKSUM = "file://${S}/../license.terms;md5=c88f99decec11afa967ad33d314f87fe \ | 7 | LIC_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 | ||
| 18 | DEPENDS = "tcl virtual/libx11 libxt" | 18 | DEPENDS = "tcl virtual/libx11 libxt" |
| 19 | 19 | ||
| 20 | SRC_URI = "\ | 20 | SRC_URI = "\ |
| 21 | ${SOURCEFORGE_MIRROR}/tcl/${BPN}${PV}-src.tar.gz \ | 21 | ${SOURCEFORGE_MIRROR}/tcl/${BPN}${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 | " |
| 26 | 26 | ||
| @@ -29,17 +29,17 @@ 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}/unix" | 32 | S = "${WORKDIR}/${BPN}${PV}" |
| 33 | |||
| 34 | DEBUG_PREFIX_MAP += "-fdebug-prefix-map=${S}/../=${TARGET_DBGSRC_DIR}/.." | ||
| 35 | |||
| 36 | PSEUDO_IGNORE_PATHS .= ",${WORKDIR}/${BPN}${PV}" | ||
| 37 | 33 | ||
| 38 | # Short version format: "8.6" | 34 | # Short version format: "8.6" |
| 39 | VER = "${@os.path.splitext(d.getVar('PV'))[0]}" | 35 | VER = "${@os.path.splitext(d.getVar('PV'))[0]}" |
| 40 | 36 | ||
| 41 | LDFLAGS += "-Wl,-rpath,${libdir}/tcltk/${PV}/lib" | 37 | LDFLAGS += "-Wl,-rpath,${libdir}/tcltk/${PV}/lib" |
| 38 | |||
| 42 | inherit autotools features_check pkgconfig | 39 | inherit autotools features_check pkgconfig |
| 40 | |||
| 41 | AUTOTOOLS_SCRIPT_PATH = "${S}/unix" | ||
| 42 | |||
| 43 | # depends on virtual/libx11 | 43 | # depends on virtual/libx11 |
| 44 | REQUIRED_DISTRO_FEATURES = "x11" | 44 | REQUIRED_DISTRO_FEATURES = "x11" |
| 45 | 45 | ||
| @@ -49,7 +49,9 @@ EXTRA_OECONF = "\ | |||
| 49 | --with-tcl=${STAGING_BINDIR}/crossscripts \ | 49 | --with-tcl=${STAGING_BINDIR}/crossscripts \ |
| 50 | --libdir=${libdir} \ | 50 | --libdir=${libdir} \ |
| 51 | " | 51 | " |
| 52 | |||
| 52 | export TK_LIBRARY='${libdir}/tk${VER}' | 53 | export TK_LIBRARY='${libdir}/tk${VER}' |
| 54 | |||
| 53 | do_install:append() { | 55 | do_install:append() { |
| 54 | ln -sf libtk${VER}.so ${D}${libdir}/libtk${VER}.so.0 | 56 | ln -sf libtk${VER}.so ${D}${libdir}/libtk${VER}.so.0 |
| 55 | oe_libinstall -so libtk${VER} ${D}${libdir} | 57 | oe_libinstall -so libtk${VER} ${D}${libdir} |
