xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-extended/gnuplot/gnuplot_5.4.3.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "Gnuplot is a portable command-line driven graphing utility"
2*4882a593SmuzhiyunDESCRIPTION = "Gnuplot is a portable command-line driven interactive datafile \
3*4882a593Smuzhiyun(text or binary) and function plotting utility."
4*4882a593SmuzhiyunHOMEPAGE = "http://www.gnuplot.info/"
5*4882a593SmuzhiyunSECTION = "console/scientific"
6*4882a593SmuzhiyunLICENSE = "gnuplot"
7*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://Copyright;md5=243a186fc2fd3b992125d60d5b1bab8f"
8*4882a593SmuzhiyunDEPENDS = "${BPN}-native virtual/libx11 gd readline"
9*4882a593Smuzhiyun
10*4882a593Smuzhiyuninherit autotools features_check pkgconfig
11*4882a593Smuzhiyun# depends on virtual/libx11
12*4882a593SmuzhiyunREQUIRED_DISTRO_FEATURES = "x11"
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunSRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${PV}/${BP}.tar.gz;name=archive \
15*4882a593Smuzhiyun           http://www.mneuroth.de/privat/zaurus/qtplot-0.2.tar.gz;name=qtplot \
16*4882a593Smuzhiyun           file://gnuplot.desktop \
17*4882a593Smuzhiyun           file://gnuplot.png \
18*4882a593Smuzhiyun           "
19*4882a593SmuzhiyunSRC_URI:append:class-target = " \
20*4882a593Smuzhiyun    file://0002-do-not-build-demos.patch \
21*4882a593Smuzhiyun    file://0003-Use-native-tools-to-build-docs.patch \
22*4882a593Smuzhiyun    file://0004-Add-configure-option-to-find-qt5-native-tools.patch \
23*4882a593Smuzhiyun"
24*4882a593Smuzhiyun
25*4882a593SmuzhiyunSRC_URI[archive.sha256sum] = "51f89bbab90f96d3543f95235368d188eb1e26eda296912256abcd3535bd4d84"
26*4882a593SmuzhiyunSRC_URI[qtplot.sha256sum] = "6df317183ff62cc82f3dcf88207a267cd6478cb5147f55d7530c94f1ad5f4132"
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun# for building docs (they deserve it) we need *doc2* tools native
29*4882a593SmuzhiyunBBCLASSEXTEND = "native"
30*4882a593SmuzhiyunDEPENDS:class-native = "readline-native"
31*4882a593SmuzhiyunPACKAGECONFIG:class-native = ""
32*4882a593Smuzhiyun
33*4882a593SmuzhiyunSRC_URI:append:class-native = " file://0001-reduce-build-to-conversion-tools-for-native-build.patch"
34*4882a593Smuzhiyun
35*4882a593Smuzhiyundo_install:class-native() {
36*4882a593Smuzhiyun    install -d ${D}${bindir}
37*4882a593Smuzhiyun	install ${B}/docs/*doc* ${D}${bindir}
38*4882a593Smuzhiyun    rm ${D}${bindir}/*.o
39*4882a593Smuzhiyun}
40*4882a593Smuzhiyun
41*4882a593SmuzhiyunPACKAGECONFIG ??= "cairo"
42*4882a593SmuzhiyunPACKAGECONFIG[cairo] = "--with-cairo,--without-cairo,cairo pango"
43*4882a593SmuzhiyunPACKAGECONFIG[lua] = "--with-lua,--without-lua,lua"
44*4882a593SmuzhiyunPACKAGECONFIG[qt5] = "--with-qt --with-qt5nativesysroot=${STAGING_DIR_NATIVE},--without-qt,qtbase-native qtbase qtsvg qttools-native"
45*4882a593Smuzhiyun
46*4882a593SmuzhiyunEXTRA_OECONF = " \
47*4882a593Smuzhiyun    --with-readline=${STAGING_LIBDIR}/.. \
48*4882a593Smuzhiyun    --disable-wxwidgets \
49*4882a593Smuzhiyun    --without-libcerf \
50*4882a593Smuzhiyun"
51*4882a593Smuzhiyun
52*4882a593Smuzhiyundo_compile:prepend() {
53*4882a593Smuzhiyun    install -m 0644 ${WORKDIR}/qtplot-0.2/qtopia.trm ${S}/term/
54*4882a593Smuzhiyun}
55*4882a593Smuzhiyun
56*4882a593Smuzhiyundo_install:append:class-target() {
57*4882a593Smuzhiyun    install -d ${D}${datadir}/applications/
58*4882a593Smuzhiyun    install -m 0644 ${WORKDIR}/gnuplot.desktop ${D}${datadir}/applications/
59*4882a593Smuzhiyun    install -d ${D}${datadir}/pixmaps/
60*4882a593Smuzhiyun    install -m 0644 ${WORKDIR}/gnuplot.png ${D}${datadir}/pixmaps/
61*4882a593Smuzhiyun}
62*4882a593Smuzhiyun
63*4882a593SmuzhiyunPACKAGES =+ "${PN}-x11"
64*4882a593Smuzhiyun
65*4882a593SmuzhiyunRPROVIDES:${PN}-dbg += "${PN}-x11-dbg"
66*4882a593Smuzhiyun
67*4882a593SmuzhiyunDESCRIPTION:${PN}-x11 = "X11 display terminal for Gnuplot."
68*4882a593SmuzhiyunSECTION:${PN}-x11 = "x11/scientific"
69*4882a593SmuzhiyunFILES:${PN}-x11 = "${libexecdir} ${datadir}/applications ${datadir}/pixmaps ${libdir}/X11 "
70*4882a593Smuzhiyun
71*4882a593SmuzhiyunFILES:${PN} += "${datadir}/texmf"
72