diff options
author | Matthieu CRAPET <Matthieu.CRAPET@ingenico.com> | 2014-05-07 15:11:56 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-05-09 14:57:59 +0200 |
commit | d51eaf7158cd35f8b8bd04283dd1d76db5501d2c (patch) | |
tree | a7e8a535b5fc00473d11796e8f2bc3631e3c483b | |
parent | 6d81b79fd1b0b76df2b5be1b80b871c798db647c (diff) | |
download | meta-openembedded-d51eaf7158cd35f8b8bd04283dd1d76db5501d2c.tar.gz |
tk: cleanup & add PACKAGECONFIG
Changes:
- add PACKAGECONFIG "xft" enables XFontConfig features
- add PACKAGECONFIG "xss" enables XScreenSaver extension
- use ${BPN} and ${PV}
- use ${VER} intermediate variable for readability
- fulfill LIC_FILES_CHKSUM
- remove BINCONFIG_GLOB: inherit binconfig is not present, lib/tkConfig.sh paths are valid
- add SSTATE_SCAN_FILES, like it is done in tcl recipe (OE-Core)
Note: tcl and tk are sharing the same licence, tcl licence file in commited in OE-Core.
Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r-- | meta-oe/recipes-devtools/tcltk/tk_8.6.0.bb | 44 |
1 files changed, 33 insertions, 11 deletions
diff --git a/meta-oe/recipes-devtools/tcltk/tk_8.6.0.bb b/meta-oe/recipes-devtools/tcltk/tk_8.6.0.bb index d12973cbe..36a1729f0 100644 --- a/meta-oe/recipes-devtools/tcltk/tk_8.6.0.bb +++ b/meta-oe/recipes-devtools/tcltk/tk_8.6.0.bb | |||
@@ -1,12 +1,24 @@ | |||
1 | SUMMARY = "Tool Command Language ToolKit Extension" | 1 | SUMMARY = "Tool Command Language ToolKit Extension" |
2 | HOMEPAGE = "http://tcl.sourceforge.net" | 2 | HOMEPAGE = "http://tcl.sourceforge.net" |
3 | SECTION = "devel/tcltk" | 3 | SECTION = "devel/tcltk" |
4 | |||
5 | # http://www.tcl.tk/software/tcltk/license.html | ||
4 | LICENSE = "tcl" | 6 | LICENSE = "tcl" |
5 | LIC_FILES_CHKSUM = "file://license.terms;md5=c88f99decec11afa967ad33d314f87fe" | 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 | |||
6 | DEPENDS = "tcl virtual/libx11 libxt" | 18 | DEPENDS = "tcl virtual/libx11 libxt" |
7 | 19 | ||
8 | SRC_URI = "\ | 20 | SRC_URI = "\ |
9 | ${SOURCEFORGE_MIRROR}/tcl/tk${PV}-src.tar.gz \ | 21 | ${SOURCEFORGE_MIRROR}/tcl/${BPN}${PV}-src.tar.gz \ |
10 | file://confsearch.diff;striplevel=2 \ | 22 | file://confsearch.diff;striplevel=2 \ |
11 | file://non-linux.diff;striplevel=2 \ | 23 | file://non-linux.diff;striplevel=2 \ |
12 | file://tklibrary.diff;striplevel=2 \ | 24 | file://tklibrary.diff;striplevel=2 \ |
@@ -16,8 +28,12 @@ SRC_URI = "\ | |||
16 | SRC_URI[md5sum] = "b883a1a3c489c17413fb602a94bf54e8" | 28 | SRC_URI[md5sum] = "b883a1a3c489c17413fb602a94bf54e8" |
17 | SRC_URI[sha256sum] = "5c708b2b6f658916df59190b27750fa1ea2bc10992108e10f961c0700f058de6" | 29 | SRC_URI[sha256sum] = "5c708b2b6f658916df59190b27750fa1ea2bc10992108e10f961c0700f058de6" |
18 | 30 | ||
19 | S = "${WORKDIR}/tk${PV}/unix" | 31 | S = "${WORKDIR}/${BPN}${PV}/unix" |
20 | LDFLAGS += "-Wl,-rpath,${libdir}/tcltk/8.6.0/lib" | 32 | |
33 | # Short version format: "8.6" | ||
34 | VER = "${@os.path.splitext(d.getVar('PV', True))[0]}" | ||
35 | |||
36 | LDFLAGS += "-Wl,-rpath,${libdir}/tcltk/${PV}/lib" | ||
21 | inherit autotools | 37 | inherit autotools |
22 | 38 | ||
23 | EXTRA_OECONF = "\ | 39 | EXTRA_OECONF = "\ |
@@ -28,27 +44,33 @@ EXTRA_OECONF = "\ | |||
28 | " | 44 | " |
29 | 45 | ||
30 | do_install_append() { | 46 | do_install_append() { |
31 | ln -sf libtk8.6.so ${D}${libdir}/libtk8.6.so.0 | 47 | ln -sf libtk${VER}.so ${D}${libdir}/libtk${VER}.so.0 |
32 | oe_libinstall -so libtk8.6 ${D}${libdir} | 48 | oe_libinstall -so libtk${VER} ${D}${libdir} |
33 | ln -sf wish8.6 ${D}${bindir}/wish | 49 | ln -sf wish${VER} ${D}${bindir}/wish |
34 | 50 | ||
35 | # Even after passing libdir=${libdir} at config, some incorrect dirs are still generated for the multilib build | 51 | # Even after passing libdir=${libdir} at config, some incorrect dirs are still generated for the multilib build |
36 | if [ "$libdir" != "/usr/lib" ]; then | 52 | if [ "$libdir" != "/usr/lib" ]; then |
37 | # Move files to correct library directory | 53 | # Move files to correct library directory |
38 | mv ${D}/usr/lib/tk8.6/* ${D}/${libdir}/tk8.6/ | 54 | mv ${D}/usr/lib/tk${VER}/* ${D}/${libdir}/tk${VER}/ |
39 | # Remove unneeded/incorrect dir ('usr/lib/') | 55 | # Remove unneeded/incorrect dir ('usr/lib/') |
40 | rm -rf ${D}/usr/lib | 56 | rm -rf ${D}/usr/lib |
41 | fi | 57 | fi |
42 | } | 58 | } |
43 | 59 | ||
60 | PACKAGECONFIG ??= "xft" | ||
61 | PACKAGECONFIG[xft] = "--enable-xft,--disable-xft,xft" | ||
62 | PACKAGECONFIG[xss] = "--enable-xss,--disable-xss,libxscrnsaver libxext" | ||
63 | |||
44 | PACKAGES =+ "${PN}-lib" | 64 | PACKAGES =+ "${PN}-lib" |
45 | 65 | ||
46 | FILES_${PN}-lib = "${libdir}/libtk8.6.so*" | 66 | FILES_${PN}-lib = "${libdir}/libtk${VER}.so*" |
47 | FILES_${PN} += "${libdir}/tk*" | 67 | FILES_${PN} += "${libdir}/tk*" |
48 | 68 | ||
49 | # isn't getting picked up by shlibs code | 69 | # isn't getting picked up by shlibs code |
50 | RDEPENDS_${PN} += "tk-lib" | 70 | RDEPENDS_${PN} += "tk-lib" |
51 | RDEPENDS_${PN}_class-native = "" | 71 | RDEPENDS_${PN}_class-native = "" |
52 | 72 | ||
53 | BINCONFIG_GLOB = "*Config.sh" | ||
54 | BBCLASSEXTEND = "native" | 73 | BBCLASSEXTEND = "native" |
74 | |||
75 | # Fix the path in sstate | ||
76 | SSTATE_SCAN_FILES += "*Config.sh" | ||