blob: 4e38525cbb1dafcf120a5fff9fdb8d0a320a7a45 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001SUMMARY = "Tool Command Language ToolKit Extension"
2HOMEPAGE = "http://tcl.sourceforge.net"
3SECTION = "devel/tcltk"
4
5# http://www.tcl.tk/software/tcltk/license.html
6LICENSE = "tcl"
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
18DEPENDS = "tcl virtual/libx11 libxt"
19
20SRC_URI = "\
21 ${SOURCEFORGE_MIRROR}/tcl/${BPN}${PV}-src.tar.gz \
22 file://confsearch.diff;striplevel=2 \
23 file://non-linux.diff;striplevel=2 \
24 file://tklibrary.diff;striplevel=2 \
25 file://tkprivate.diff;striplevel=2 \
26 file://fix-xft.diff \
27 file://configure.use.fontconfig.with.xft.patch \
28"
29SRC_URI[md5sum] = "5e0faecba458ee1386078fb228d008ba"
30SRC_URI[sha256sum] = "49e7bca08dde95195a27f594f7c850b088be357a7c7096e44e1158c7a5fd7b33"
31
32S = "${WORKDIR}/${BPN}${PV}/unix"
33
34# Short version format: "8.6"
35VER = "${@os.path.splitext(d.getVar('PV'))[0]}"
36
37LDFLAGS += "-Wl,-rpath,${libdir}/tcltk/${PV}/lib"
38inherit autotools distro_features_check
39# depends on virtual/libx11
40REQUIRED_DISTRO_FEATURES = "x11"
41
42EXTRA_OECONF = "\
43 --enable-threads \
44 --with-x \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080045 --with-tcl=${STAGING_BINDIR}/crossscripts \
Brad Bishop316dfdd2018-06-25 12:45:53 -040046 --libdir=${libdir} \
47"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080048export TK_LIBRARY='${libdir}/tk${VER}'
Brad Bishop316dfdd2018-06-25 12:45:53 -040049do_install_append() {
50 ln -sf libtk${VER}.so ${D}${libdir}/libtk${VER}.so.0
51 oe_libinstall -so libtk${VER} ${D}${libdir}
52 ln -sf wish${VER} ${D}${bindir}/wish
Brad Bishop316dfdd2018-06-25 12:45:53 -040053}
54
55PACKAGECONFIG ??= "xft"
56PACKAGECONFIG[xft] = "--enable-xft,--disable-xft,xft"
57PACKAGECONFIG[xss] = "--enable-xss,--disable-xss,libxscrnsaver libxext"
58
59PACKAGES =+ "${PN}-lib"
60
61FILES_${PN}-lib = "${libdir}/libtk${VER}.so*"
62FILES_${PN} += "${libdir}/tk*"
63
64# isn't getting picked up by shlibs code
65RDEPENDS_${PN} += "tk-lib"
66RDEPENDS_${PN}_class-native = ""
67
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080068BBCLASSEXTEND = "native nativesdk"
Brad Bishop316dfdd2018-06-25 12:45:53 -040069
70# Fix the path in sstate
71SSTATE_SCAN_FILES += "*Config.sh"