gnuplot_5.4.3.bb 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. SUMMARY = "Gnuplot is a portable command-line driven graphing utility"
  2. DESCRIPTION = "Gnuplot is a portable command-line driven interactive datafile \
  3. (text or binary) and function plotting utility."
  4. HOMEPAGE = "http://www.gnuplot.info/"
  5. SECTION = "console/scientific"
  6. LICENSE = "gnuplot"
  7. LIC_FILES_CHKSUM = "file://Copyright;md5=243a186fc2fd3b992125d60d5b1bab8f"
  8. DEPENDS = "${BPN}-native gd readline"
  9. inherit autotools pkgconfig
  10. # depends on virtual/libx11
  11. SRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${PV}/${BP}.tar.gz;name=archive \
  12. http://www.mneuroth.de/privat/zaurus/qtplot-0.2.tar.gz;name=qtplot \
  13. file://gnuplot.desktop \
  14. file://gnuplot.png \
  15. "
  16. SRC_URI:append:class-target = " \
  17. file://0002-do-not-build-demos.patch \
  18. file://0003-Use-native-tools-to-build-docs.patch \
  19. file://0004-Add-configure-option-to-find-qt5-native-tools.patch \
  20. "
  21. SRC_URI[archive.sha256sum] = "51f89bbab90f96d3543f95235368d188eb1e26eda296912256abcd3535bd4d84"
  22. SRC_URI[qtplot.sha256sum] = "6df317183ff62cc82f3dcf88207a267cd6478cb5147f55d7530c94f1ad5f4132"
  23. # for building docs (they deserve it) we need *doc2* tools native
  24. BBCLASSEXTEND = "native"
  25. DEPENDS:class-native = "readline-native"
  26. PACKAGECONFIG:class-native = ""
  27. SRC_URI:append:class-native = " file://0001-reduce-build-to-conversion-tools-for-native-build.patch"
  28. do_install:class-native() {
  29. install -d ${D}${bindir}
  30. install ${B}/docs/*doc* ${D}${bindir}
  31. rm ${D}${bindir}/*.o
  32. }
  33. PACKAGECONFIG ??= "cairo ${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}"
  34. PACKAGECONFIG[cairo] = "--with-cairo,--without-cairo,cairo pango"
  35. PACKAGECONFIG[lua] = "--with-lua,--without-lua,lua"
  36. PACKAGECONFIG[qt5] = "--with-qt --with-qt5nativesysroot=${STAGING_DIR_NATIVE},--without-qt,qtbase-native qtbase qtsvg qttools-native"
  37. PACKAGECONFIG[x11] = "--with-x,--without-x,virtual/libx11"
  38. EXTRA_OECONF = " \
  39. --with-readline=${STAGING_LIBDIR}/.. \
  40. --disable-wxwidgets \
  41. --without-libcerf \
  42. "
  43. do_compile:prepend() {
  44. install -m 0644 ${UNPACKDIR}/qtplot-0.2/qtopia.trm ${S}/term/
  45. }
  46. do_install:append:class-target() {
  47. install -d ${D}${datadir}/applications/
  48. install -m 0644 ${UNPACKDIR}/gnuplot.desktop ${D}${datadir}/applications/
  49. install -d ${D}${datadir}/pixmaps/
  50. install -m 0644 ${UNPACKDIR}/gnuplot.png ${D}${datadir}/pixmaps/
  51. }
  52. PACKAGES =+ "${PN}-x11"
  53. RPROVIDES:${PN}-dbg += "${PN}-x11-dbg"
  54. DESCRIPTION:${PN}-x11 = "X11 display terminal for Gnuplot."
  55. SECTION:${PN}-x11 = "x11/scientific"
  56. FILES:${PN}-x11 = "${libexecdir} ${datadir}/applications ${datadir}/pixmaps ${libdir}/X11 "
  57. FILES:${PN} += "${datadir}/texmf"