summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthieu CRAPET <Matthieu.CRAPET@ingenico.com>2014-05-07 15:11:56 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2014-05-09 14:57:59 +0200
commitd51eaf7158cd35f8b8bd04283dd1d76db5501d2c (patch)
treea7e8a535b5fc00473d11796e8f2bc3631e3c483b
parent6d81b79fd1b0b76df2b5be1b80b871c798db647c (diff)
downloadmeta-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.bb44
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 @@
1SUMMARY = "Tool Command Language ToolKit Extension" 1SUMMARY = "Tool Command Language ToolKit Extension"
2HOMEPAGE = "http://tcl.sourceforge.net" 2HOMEPAGE = "http://tcl.sourceforge.net"
3SECTION = "devel/tcltk" 3SECTION = "devel/tcltk"
4
5# http://www.tcl.tk/software/tcltk/license.html
4LICENSE = "tcl" 6LICENSE = "tcl"
5LIC_FILES_CHKSUM = "file://license.terms;md5=c88f99decec11afa967ad33d314f87fe" 7LIC_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
6DEPENDS = "tcl virtual/libx11 libxt" 18DEPENDS = "tcl virtual/libx11 libxt"
7 19
8SRC_URI = "\ 20SRC_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 = "\
16SRC_URI[md5sum] = "b883a1a3c489c17413fb602a94bf54e8" 28SRC_URI[md5sum] = "b883a1a3c489c17413fb602a94bf54e8"
17SRC_URI[sha256sum] = "5c708b2b6f658916df59190b27750fa1ea2bc10992108e10f961c0700f058de6" 29SRC_URI[sha256sum] = "5c708b2b6f658916df59190b27750fa1ea2bc10992108e10f961c0700f058de6"
18 30
19S = "${WORKDIR}/tk${PV}/unix" 31S = "${WORKDIR}/${BPN}${PV}/unix"
20LDFLAGS += "-Wl,-rpath,${libdir}/tcltk/8.6.0/lib" 32
33# Short version format: "8.6"
34VER = "${@os.path.splitext(d.getVar('PV', True))[0]}"
35
36LDFLAGS += "-Wl,-rpath,${libdir}/tcltk/${PV}/lib"
21inherit autotools 37inherit autotools
22 38
23EXTRA_OECONF = "\ 39EXTRA_OECONF = "\
@@ -28,27 +44,33 @@ EXTRA_OECONF = "\
28" 44"
29 45
30do_install_append() { 46do_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
60PACKAGECONFIG ??= "xft"
61PACKAGECONFIG[xft] = "--enable-xft,--disable-xft,xft"
62PACKAGECONFIG[xss] = "--enable-xss,--disable-xss,libxscrnsaver libxext"
63
44PACKAGES =+ "${PN}-lib" 64PACKAGES =+ "${PN}-lib"
45 65
46FILES_${PN}-lib = "${libdir}/libtk8.6.so*" 66FILES_${PN}-lib = "${libdir}/libtk${VER}.so*"
47FILES_${PN} += "${libdir}/tk*" 67FILES_${PN} += "${libdir}/tk*"
48 68
49# isn't getting picked up by shlibs code 69# isn't getting picked up by shlibs code
50RDEPENDS_${PN} += "tk-lib" 70RDEPENDS_${PN} += "tk-lib"
51RDEPENDS_${PN}_class-native = "" 71RDEPENDS_${PN}_class-native = ""
52 72
53BINCONFIG_GLOB = "*Config.sh"
54BBCLASSEXTEND = "native" 73BBCLASSEXTEND = "native"
74
75# Fix the path in sstate
76SSTATE_SCAN_FILES += "*Config.sh"