Advertisement
Guest User

tk_8.6.1.bb

a guest
Apr 4th, 2014
1,356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. ----------------- /meta/recipes-devtools/tcltk/tk_8.6.1.bb ---------------------
  2. DESCRIPTION = "Tk graphical toolkit for the Tcl scripting language."
  3. LICENSE = "BSD-3-Clause"
  4. SECTION = "devel/tcltk"
  5. HOMEPAGE = "http://tcl.sourceforge.net"
  6. DEPENDS = "tcl virtual/libx11"
  7.  
  8. LIC_FILES_CHKSUM = "file://../license.terms;md5=c88f99decec11afa967ad33d314f87fe \
  9. file://../compat/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://../win/license.terms;md5=c88f99decec11afa967ad33d314f87fe \
  14. "
  15.  
  16. PR = "r0"
  17.  
  18. SRC_URI = "${SOURCEFORGE_MIRROR}/tcl/tk${PV}-src.tar.gz"
  19. SRC_URI[md5sum] = "63f21c3a0e0cefbd854b4eb29b129ac6"
  20. SRC_URI[sha256sum] = "b691a2e84907392918665fe03a0deb913663a026bed2162185b4a9a14898162c"
  21.  
  22. S = "${WORKDIR}/tk${PV}/unix"
  23.  
  24. inherit autotools
  25.  
  26. EXTRA_OECONF = "--enable-threads \
  27. --disable-rpath \
  28. --with-tcl=${STAGING_BINDIR_CROSS} \
  29. "
  30.  
  31. do_configure() {
  32. gnu-configize
  33. oe_runconf
  34. }
  35.  
  36. do_install() {
  37. autotools_do_install
  38. oe_libinstall -so libtk8.6 ${STAGING_LIBDIR}
  39. sed -i "s+${WORKDIR}+${STAGING_INCDIR}+g" tkConfig.sh
  40. sed -i "s,-L${libdir},," tkConfig.sh
  41. install -d ${STAGING_BINDIR_CROSS}/
  42. install -m 0755 tkConfig.sh ${STAGING_BINDIR_CROSS}
  43. cd ..
  44. for dir in compat generic unix
  45. do
  46. install -d ${STAGING_INCDIR}/tk${PV}/$dir
  47. install -m 0644 $dir/*.h ${STAGING_INCDIR}/tk${PV}/$dir/
  48. done
  49. }
  50.  
  51. PACKAGES =+ "${PN}-demos \
  52. ${PN}-lib \
  53. "
  54. FILES_${PN}-lib = "${libdir}/libtk8.6.so* \
  55. "
  56. FILES_${PN}-demos = "${libdir}/tk8.6/demos/* \
  57. "
  58. FILES_${PN} += "${libdir}/tk8.6/ttk/* \
  59. ${libdir}/tk8.6/images/* \
  60. ${libdir}/tk8.6/msgs/* \
  61. ${libdir}/tk8.6/*.tcl \
  62. ${libdir}/tk8.6/tclIndex \
  63. "
  64. FILES_${PN}-dev += "${libdir}/tkConfig.sh \
  65. ${libdir}/tk8.6/tkAppInit.c \
  66. "
  67.  
  68. RDEPENDS_${PN} += "tk-lib"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement