Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | SUMMARY = "Tool Command Language ToolKit Extension" |
| 2 | HOMEPAGE = "http://tcl.sourceforge.net" |
| 3 | SECTION = "devel/tcltk" |
| 4 | |
| 5 | # http://www.tcl.tk/software/tcltk/license.html |
| 6 | LICENSE = "tcl" |
| 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 | |
| 18 | DEPENDS = "tcl virtual/libx11 libxt" |
| 19 | |
| 20 | SRC_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 | " |
| 29 | SRC_URI[md5sum] = "5e0faecba458ee1386078fb228d008ba" |
| 30 | SRC_URI[sha256sum] = "49e7bca08dde95195a27f594f7c850b088be357a7c7096e44e1158c7a5fd7b33" |
| 31 | |
| 32 | S = "${WORKDIR}/${BPN}${PV}/unix" |
| 33 | |
| 34 | # Short version format: "8.6" |
| 35 | VER = "${@os.path.splitext(d.getVar('PV'))[0]}" |
| 36 | |
| 37 | LDFLAGS += "-Wl,-rpath,${libdir}/tcltk/${PV}/lib" |
| 38 | inherit autotools distro_features_check |
| 39 | # depends on virtual/libx11 |
| 40 | REQUIRED_DISTRO_FEATURES = "x11" |
| 41 | |
| 42 | EXTRA_OECONF = "\ |
| 43 | --enable-threads \ |
| 44 | --with-x \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 45 | --with-tcl=${STAGING_BINDIR}/crossscripts \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 46 | --libdir=${libdir} \ |
| 47 | " |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 48 | export TK_LIBRARY='${libdir}/tk${VER}' |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 49 | do_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 Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 53 | } |
| 54 | |
| 55 | PACKAGECONFIG ??= "xft" |
| 56 | PACKAGECONFIG[xft] = "--enable-xft,--disable-xft,xft" |
| 57 | PACKAGECONFIG[xss] = "--enable-xss,--disable-xss,libxscrnsaver libxext" |
| 58 | |
| 59 | PACKAGES =+ "${PN}-lib" |
| 60 | |
| 61 | FILES_${PN}-lib = "${libdir}/libtk${VER}.so*" |
| 62 | FILES_${PN} += "${libdir}/tk*" |
| 63 | |
| 64 | # isn't getting picked up by shlibs code |
| 65 | RDEPENDS_${PN} += "tk-lib" |
| 66 | RDEPENDS_${PN}_class-native = "" |
| 67 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 68 | BBCLASSEXTEND = "native nativesdk" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 69 | |
| 70 | # Fix the path in sstate |
| 71 | SSTATE_SCAN_FILES += "*Config.sh" |