diff options
Diffstat (limited to 'meta/recipes-devtools/tcltk')
-rw-r--r-- | meta/recipes-devtools/tcltk/tcl_8.6.1.bb | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/meta/recipes-devtools/tcltk/tcl_8.6.1.bb b/meta/recipes-devtools/tcltk/tcl_8.6.1.bb index 9d35da10a1..27f73f2ce2 100644 --- a/meta/recipes-devtools/tcltk/tcl_8.6.1.bb +++ b/meta/recipes-devtools/tcltk/tcl_8.6.1.bb | |||
@@ -1,19 +1,21 @@ | |||
1 | SUMMARY = "Tool Command Language" | 1 | SUMMARY = "Tool Command Language" |
2 | LICENSE = "BSD-3-Clause" | ||
3 | SECTION = "devel/tcltk" | ||
4 | HOMEPAGE = "http://tcl.sourceforge.net" | 2 | HOMEPAGE = "http://tcl.sourceforge.net" |
5 | DEPENDS = "tcl-native zlib" | 3 | SECTION = "devel/tcltk" |
4 | |||
5 | # http://www.tcl.tk/software/tcltk/license.html | ||
6 | LICENSE = "tcl & BSD-3-Clause" | ||
6 | LIC_FILES_CHKSUM = "file://../license.terms;md5=3c6f62c07835353e36f0db550ccfb65a \ | 7 | LIC_FILES_CHKSUM = "file://../license.terms;md5=3c6f62c07835353e36f0db550ccfb65a \ |
7 | file://../compat/license.terms;md5=3c6f62c07835353e36f0db550ccfb65a \ | 8 | file://../compat/license.terms;md5=3c6f62c07835353e36f0db550ccfb65a \ |
8 | file://../library/license.terms;md5=3c6f62c07835353e36f0db550ccfb65a \ | 9 | file://../library/license.terms;md5=3c6f62c07835353e36f0db550ccfb65a \ |
9 | file://../macosx/license.terms;md5=3c6f62c07835353e36f0db550ccfb65a \ | 10 | file://../macosx/license.terms;md5=3c6f62c07835353e36f0db550ccfb65a \ |
10 | file://../tests/license.terms;md5=3c6f62c07835353e36f0db550ccfb65a \ | 11 | file://../tests/license.terms;md5=3c6f62c07835353e36f0db550ccfb65a \ |
11 | file://../win/license.terms;md5=3c6f62c07835353e36f0db550ccfb65a \ | 12 | file://../win/license.terms;md5=3c6f62c07835353e36f0db550ccfb65a \ |
12 | " | 13 | " |
13 | 14 | ||
14 | BASE_SRC_URI = "${SOURCEFORGE_MIRROR}/tcl/tcl${PV}-src.tar.gz \ | 15 | DEPENDS = "tcl-native zlib" |
15 | file://tcl-add-soname.patch" | ||
16 | 16 | ||
17 | BASE_SRC_URI = "${SOURCEFORGE_MIRROR}/tcl/${BPN}${PV}-src.tar.gz \ | ||
18 | file://tcl-add-soname.patch" | ||
17 | SRC_URI = "${BASE_SRC_URI} \ | 19 | SRC_URI = "${BASE_SRC_URI} \ |
18 | file://fix_non_native_build_issue.patch \ | 20 | file://fix_non_native_build_issue.patch \ |
19 | file://fix_issue_with_old_distro_glibc.patch \ | 21 | file://fix_issue_with_old_distro_glibc.patch \ |
@@ -21,24 +23,26 @@ SRC_URI = "${BASE_SRC_URI} \ | |||
21 | file://tcl-remove-hardcoded-install-path.patch \ | 23 | file://tcl-remove-hardcoded-install-path.patch \ |
22 | file://alter-includedir.patch \ | 24 | file://alter-includedir.patch \ |
23 | file://run-ptest \ | 25 | file://run-ptest \ |
24 | " | 26 | " |
25 | SRC_URI[md5sum] = "aae4b701ee527c6e4e1a6f9c7399882e" | 27 | SRC_URI[md5sum] = "aae4b701ee527c6e4e1a6f9c7399882e" |
26 | SRC_URI[sha256sum] = "16ee769248e64ba1cae6b4834fcc4e4edd7470d881410e8d58f7dd1434343514" | 28 | SRC_URI[sha256sum] = "16ee769248e64ba1cae6b4834fcc4e4edd7470d881410e8d58f7dd1434343514" |
27 | 29 | ||
28 | SRC_URI_class-native = "${BASE_SRC_URI}" | 30 | SRC_URI_class-native = "${BASE_SRC_URI}" |
29 | 31 | ||
30 | S = "${WORKDIR}/tcl${PV}/unix" | 32 | S = "${WORKDIR}/${BPN}${PV}/unix" |
31 | 33 | ||
32 | VER = "8.6.1" | 34 | VER = "${PV}" |
33 | 35 | ||
34 | inherit autotools ptest | 36 | inherit autotools ptest binconfig |
35 | 37 | ||
36 | DEPENDS_class-native = "zlib-native" | 38 | DEPENDS_class-native = "zlib-native" |
37 | 39 | ||
38 | EXTRA_OECONF = "--enable-threads --disable-rpath --libdir=${libdir}" | 40 | EXTRA_OECONF = "--enable-threads --disable-rpath --libdir=${libdir}" |
39 | 41 | ||
40 | do_configure() { | 42 | do_configure() { |
41 | ( cd ${S}; gnu-configize ) | 43 | cd ${S} |
44 | gnu-configize | ||
45 | cd ${B} | ||
42 | oe_runconf | 46 | oe_runconf |
43 | } | 47 | } |
44 | 48 | ||
@@ -53,13 +57,12 @@ do_install() { | |||
53 | sed -i "s+-L${B}+-L${STAGING_LIBDIR}+g" tclConfig.sh | 57 | sed -i "s+-L${B}+-L${STAGING_LIBDIR}+g" tclConfig.sh |
54 | sed -i "s+${WORKDIR}+${STAGING_INCDIR}+g" tclConfig.sh | 58 | sed -i "s+${WORKDIR}+${STAGING_INCDIR}+g" tclConfig.sh |
55 | sed -i "s,-L${libdir},-L=${libdir},g" tclConfig.sh | 59 | sed -i "s,-L${libdir},-L=${libdir},g" tclConfig.sh |
56 | sed -i "s,-I${includedir},-I=${includedir},g" tclConfig.sh | 60 | sed -i "s,-I${includedir},-I=${includedir},g" tclConfig.sh |
57 | install -d ${D}${bindir_crossscripts} | 61 | install -d ${D}${bindir_crossscripts} |
58 | install -m 0755 tclConfig.sh ${D}${bindir_crossscripts} | 62 | install -m 0755 tclConfig.sh ${D}${bindir_crossscripts} |
59 | install -m 0755 tclConfig.sh ${D}${libdir} | 63 | install -m 0755 tclConfig.sh ${D}${libdir} |
60 | cd .. | 64 | cd .. |
61 | for dir in compat generic unix | 65 | for dir in compat generic unix; do |
62 | do | ||
63 | install -d ${D}${includedir}/${BPN}${VER}/$dir | 66 | install -d ${D}${includedir}/${BPN}${VER}/$dir |
64 | install -m 0644 ${S}/../$dir/*.h ${D}${includedir}/${BPN}${VER}/$dir/ | 67 | install -m 0644 ${S}/../$dir/*.h ${D}${includedir}/${BPN}${VER}/$dir/ |
65 | done | 68 | done |
@@ -91,5 +94,8 @@ do_install_ptest() { | |||
91 | cp -r ${S}/../tests ${D}${PTEST_PATH} | 94 | cp -r ${S}/../tests ${D}${PTEST_PATH} |
92 | } | 95 | } |
93 | 96 | ||
97 | # Fix some paths that might be used by Tcl extensions | ||
98 | BINCONFIG_GLOB = "*Config.sh" | ||
99 | |||
94 | # Fix the path in sstate | 100 | # Fix the path in sstate |
95 | SSTATE_SCAN_FILES += "*Config.sh" | 101 | SSTATE_SCAN_FILES += "*Config.sh" |