blob: 19ee874e2d7899096389092f791528a7ad88825d [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001DESCRIPTION = "Gnuplot is a portable command-line driven interactive datafile \
2(text or binary) and function plotting utility."
3HOMEPAGE = "http://www.gnuplot.info/"
4SECTION = "console/scientific"
5LICENSE = "gnuplot"
6LIC_FILES_CHKSUM = "file://Copyright;md5=243a186fc2fd3b992125d60d5b1bab8f"
7DEPENDS = "virtual/libx11 gd readline"
8
9inherit autotools distro_features_check
10# depends on virtual/libx11
11REQUIRED_DISTRO_FEATURES = "x11"
12
13acpaths = ""
14
15PACKAGECONFIG ??= "cairo"
16PACKAGECONFIG[cairo] = "--with-cairo,--without-cairo,cairo pango"
17PACKAGECONFIG[lua] = "--with-lua,--without-lua,lua"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050018# there's compilation failure if qt4 is enabled
19PACKAGECONFIG[qt4] = "--with-qt,--without-qt,qt4-x11-free"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050020
21EXTRA_OECONF = "--with-readline=${STAGING_LIBDIR}/.. \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050022 --without-tutorial \
23 --disable-wxwidgets"
24
25do_compile_prepend() {
26 install -m 0644 ${WORKDIR}/qtplot-0.2/qtopia.trm ${S}/term/
27}
28
29do_install_append() {
30 install -d ${D}${datadir}/applications/
31 install -m 0644 ${WORKDIR}/gnuplot.desktop ${D}${datadir}/applications/
32 install -d ${D}${datadir}/pixmaps/
33 install -m 0644 ${WORKDIR}/gnuplot.png ${D}${datadir}/pixmaps/
34}
35
36PACKAGES =+ "${PN}-x11-dbg ${PN}-x11"
37DESCRIPTION_${PN}-x11 = "X11 display terminal for Gnuplot."
38SECTION_${PN}-x11 = "x11/scientific"
39FILES_${PN}-x11 = "${libexecdir} ${datadir}/applications ${datadir}/pixmaps ${libdir}/X11 "
40
41FILES_${PN} += "${datadir}/texmf"
42FILES_${PN}-x11-dbg += "${libexecdir}/gnuplot/*/.debug"