diff options
11 files changed, 286 insertions, 568 deletions
diff --git a/meta-oe/recipes-extended/gnuplot/gnuplot.inc b/meta-oe/recipes-extended/gnuplot/gnuplot.inc deleted file mode 100644 index 19ee874e2d..0000000000 --- a/meta-oe/recipes-extended/gnuplot/gnuplot.inc +++ /dev/null | |||
| @@ -1,42 +0,0 @@ | |||
| 1 | DESCRIPTION = "Gnuplot is a portable command-line driven interactive datafile \ | ||
| 2 | (text or binary) and function plotting utility." | ||
| 3 | HOMEPAGE = "http://www.gnuplot.info/" | ||
| 4 | SECTION = "console/scientific" | ||
| 5 | LICENSE = "gnuplot" | ||
| 6 | LIC_FILES_CHKSUM = "file://Copyright;md5=243a186fc2fd3b992125d60d5b1bab8f" | ||
| 7 | DEPENDS = "virtual/libx11 gd readline" | ||
| 8 | |||
| 9 | inherit autotools distro_features_check | ||
| 10 | # depends on virtual/libx11 | ||
| 11 | REQUIRED_DISTRO_FEATURES = "x11" | ||
| 12 | |||
| 13 | acpaths = "" | ||
| 14 | |||
| 15 | PACKAGECONFIG ??= "cairo" | ||
| 16 | PACKAGECONFIG[cairo] = "--with-cairo,--without-cairo,cairo pango" | ||
| 17 | PACKAGECONFIG[lua] = "--with-lua,--without-lua,lua" | ||
| 18 | # there's compilation failure if qt4 is enabled | ||
| 19 | PACKAGECONFIG[qt4] = "--with-qt,--without-qt,qt4-x11-free" | ||
| 20 | |||
| 21 | EXTRA_OECONF = "--with-readline=${STAGING_LIBDIR}/.. \ | ||
| 22 | --without-tutorial \ | ||
| 23 | --disable-wxwidgets" | ||
| 24 | |||
| 25 | do_compile_prepend() { | ||
| 26 | install -m 0644 ${WORKDIR}/qtplot-0.2/qtopia.trm ${S}/term/ | ||
| 27 | } | ||
| 28 | |||
| 29 | do_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 | |||
| 36 | PACKAGES =+ "${PN}-x11-dbg ${PN}-x11" | ||
| 37 | DESCRIPTION_${PN}-x11 = "X11 display terminal for Gnuplot." | ||
| 38 | SECTION_${PN}-x11 = "x11/scientific" | ||
| 39 | FILES_${PN}-x11 = "${libexecdir} ${datadir}/applications ${datadir}/pixmaps ${libdir}/X11 " | ||
| 40 | |||
| 41 | FILES_${PN} += "${datadir}/texmf" | ||
| 42 | FILES_${PN}-x11-dbg += "${libexecdir}/gnuplot/*/.debug" | ||
diff --git a/meta-oe/recipes-extended/gnuplot/gnuplot/0001-reduce-build-to-conversion-tools-for-native-build.patch b/meta-oe/recipes-extended/gnuplot/gnuplot/0001-reduce-build-to-conversion-tools-for-native-build.patch new file mode 100644 index 0000000000..f8f1fd00f7 --- /dev/null +++ b/meta-oe/recipes-extended/gnuplot/gnuplot/0001-reduce-build-to-conversion-tools-for-native-build.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | From a2ac966813fdc04b788be9c8474a4c5e36c109a0 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> | ||
| 3 | Date: Tue, 6 Mar 2018 21:53:26 +0100 | ||
| 4 | Subject: [PATCH] reduce build to conversion tools for native build | ||
| 5 | MIME-Version: 1.0 | ||
| 6 | Content-Type: text/plain; charset=UTF-8 | ||
| 7 | Content-Transfer-Encoding: 8bit | ||
| 8 | |||
| 9 | Upstream-Status: Inappropriate [embedded specific] | ||
| 10 | |||
| 11 | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> | ||
| 12 | --- | ||
| 13 | Makefile.am | 2 +- | ||
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 15 | |||
| 16 | diff --git a/Makefile.am b/Makefile.am | ||
| 17 | index 9241ce5..b24e291 100644 | ||
| 18 | --- a/Makefile.am | ||
| 19 | +++ b/Makefile.am | ||
| 20 | @@ -1,7 +1,7 @@ | ||
| 21 | ## Process this file with automake to produce Makefile.in -*-Makefile-*- | ||
| 22 | AUTOMAKE_OPTIONS = foreign | ||
| 23 | |||
| 24 | -SUBDIRS = config m4 term src docs man demo tutorial share | ||
| 25 | +SUBDIRS = docs | ||
| 26 | |||
| 27 | EXTRA_DIST = BUGS Copyright FAQ.pdf GNUmakefile INSTALL INSTALL.gnu \ | ||
| 28 | Makefile.maint PATCHLEVEL PGPKEYS README RELEASE_NOTES \ | ||
| 29 | -- | ||
| 30 | 2.14.3 | ||
| 31 | |||
diff --git a/meta-oe/recipes-extended/gnuplot/gnuplot/0002-do-not-build-demos.patch b/meta-oe/recipes-extended/gnuplot/gnuplot/0002-do-not-build-demos.patch new file mode 100644 index 0000000000..8e0b4a271d --- /dev/null +++ b/meta-oe/recipes-extended/gnuplot/gnuplot/0002-do-not-build-demos.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | From a2ac966813fdc04b788be9c8474a4c5e36c109a0 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> | ||
| 3 | Date: Tue, 6 Mar 2018 21:53:26 +0100 | ||
| 4 | Subject: [PATCH] Do not build demos | ||
| 5 | MIME-Version: 1.0 | ||
| 6 | Content-Type: text/plain; charset=UTF-8 | ||
| 7 | Content-Transfer-Encoding: 8bit | ||
| 8 | |||
| 9 | Upstream-Status: Inappropriate [embedded specific] | ||
| 10 | |||
| 11 | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> | ||
| 12 | --- | ||
| 13 | Makefile.am | 2 +- | ||
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 15 | |||
| 16 | diff --git a/Makefile.am b/Makefile.am | ||
| 17 | index 9241ce5..b24e291 100644 | ||
| 18 | --- a/Makefile.am | ||
| 19 | +++ b/Makefile.am | ||
| 20 | @@ -1,7 +1,7 @@ | ||
| 21 | ## Process this file with automake to produce Makefile.in -*-Makefile-*- | ||
| 22 | AUTOMAKE_OPTIONS = foreign | ||
| 23 | |||
| 24 | -SUBDIRS = config m4 term src docs man demo tutorial share | ||
| 25 | +SUBDIRS = config m4 term src docs man tutorial share | ||
| 26 | |||
| 27 | EXTRA_DIST = BUGS Copyright FAQ.pdf GNUmakefile INSTALL INSTALL.gnu \ | ||
| 28 | Makefile.maint PATCHLEVEL PGPKEYS README RELEASE_NOTES \ | ||
| 29 | -- | ||
| 30 | 2.14.3 | ||
| 31 | |||
diff --git a/meta-oe/recipes-extended/gnuplot/gnuplot/0003-Use-native-tools-to-build-docs.patch b/meta-oe/recipes-extended/gnuplot/gnuplot/0003-Use-native-tools-to-build-docs.patch new file mode 100644 index 0000000000..a4039c3170 --- /dev/null +++ b/meta-oe/recipes-extended/gnuplot/gnuplot/0003-Use-native-tools-to-build-docs.patch | |||
| @@ -0,0 +1,111 @@ | |||
| 1 | From 1128a98fd1676981e536d8773f363cb832cfa6bb Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> | ||
| 3 | Date: Tue, 6 Mar 2018 22:28:56 +0100 | ||
| 4 | Subject: [PATCH] Use native tools to build docs | ||
| 5 | MIME-Version: 1.0 | ||
| 6 | Content-Type: text/plain; charset=UTF-8 | ||
| 7 | Content-Transfer-Encoding: 8bit | ||
| 8 | |||
| 9 | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> | ||
| 10 | --- | ||
| 11 | docs/Makefile.am | 22 +++++++++++----------- | ||
| 12 | 1 file changed, 11 insertions(+), 11 deletions(-) | ||
| 13 | |||
| 14 | diff --git a/docs/Makefile.am b/docs/Makefile.am | ||
| 15 | index 3baf0c4..e82f87d 100644 | ||
| 16 | --- a/docs/Makefile.am | ||
| 17 | +++ b/docs/Makefile.am | ||
| 18 | @@ -152,7 +152,7 @@ gnuplot-groff.ps: gnuplot.ms $(srcdir)/titlepag.ms | ||
| 19 | |||
| 20 | ### doc2xxx dependencies | ||
| 21 | gnuplot.ms: doc2ms$(EXEEXT) $(srcdir)/gnuplot.doc | ||
| 22 | - $(AM_V_GEN) ./doc2ms$(EXEEXT) $(srcdir)/gnuplot.doc gnuplot.ms "$(srcdir)/titlepag.ms" | ||
| 23 | + $(AM_V_GEN) doc2ms$(EXEEXT) $(srcdir)/gnuplot.doc gnuplot.ms "$(srcdir)/titlepag.ms" | ||
| 24 | |||
| 25 | doc2ms_SOURCES = doc2ms.c termdoc.c | ||
| 26 | doc2ms_CPPFLAGS = -DALL_TERM_DOC $(AM_CPPFLAGS) | ||
| 27 | @@ -173,10 +173,10 @@ pdf_figures: $(GNUPLOT_EXE) $(srcdir)/plotstyles.gnu | ||
| 28 | $(AM_V_GEN)touch $@ | ||
| 29 | |||
| 30 | figures.tex: allterm.h doc2tex$(EXEEXT) $(srcdir)/gnuplot.doc | ||
| 31 | - $(AM_V_GEN)./doc2tex$(EXEEXT) -figures $(srcdir)/gnuplot.doc $@ | ||
| 32 | + $(AM_V_GEN) doc2tex$(EXEEXT) -figures $(srcdir)/gnuplot.doc $@ | ||
| 33 | |||
| 34 | nofigures.tex: allterm.h doc2tex$(EXEEXT) $(srcdir)/gnuplot.doc | ||
| 35 | - $(AM_V_GEN)./doc2tex$(EXEEXT) $(srcdir)/gnuplot.doc $@ | ||
| 36 | + $(AM_V_GEN) doc2tex$(EXEEXT) $(srcdir)/gnuplot.doc $@ | ||
| 37 | |||
| 38 | pdf: gnuplot.pdf | ||
| 39 | pdf_nofig: nofigures.pdf | ||
| 40 | @@ -256,7 +256,7 @@ gnuplot.ps: gnuplot.dvi | ||
| 41 | hlp: gnuplot.hlp | ||
| 42 | |||
| 43 | gnuplot.hlp: doc2hlp$(EXEEXT) $(srcdir)/gnuplot.doc | ||
| 44 | - $(AM_V_GEN)./doc2hlp$(EXEEXT) $(srcdir)/gnuplot.doc gnuplot.hlp | ||
| 45 | + $(AM_V_GEN)doc2hlp$(EXEEXT) $(srcdir)/gnuplot.doc gnuplot.hlp | ||
| 46 | |||
| 47 | doc2hlp_SOURCES = doc2hlp.c termdoc.c | ||
| 48 | |||
| 49 | @@ -264,14 +264,14 @@ doc2hlp_SOURCES = doc2hlp.c termdoc.c | ||
| 50 | gih: gnuplot.gih | ||
| 51 | |||
| 52 | gnuplot.gih: doc2gih$(EXEEXT) $(srcdir)/gnuplot.doc | ||
| 53 | - $(AM_V_GEN)./doc2gih$(EXEEXT) $(srcdir)/gnuplot.doc gnuplot.gih | ||
| 54 | + $(AM_V_GEN)doc2gih$(EXEEXT) $(srcdir)/gnuplot.doc gnuplot.gih | ||
| 55 | |||
| 56 | doc2gih_SOURCES = doc2gih.c termdoc.c | ||
| 57 | |||
| 58 | # To include all terminals in the .gih file | ||
| 59 | allgih: alldoc2gih$(EXEEXT) $(srcdir)/gnuplot.doc | ||
| 60 | @echo "generate gnuplot.gih with all terminals" | ||
| 61 | - $(AM_V_at)./alldoc2gih$(EXEEXT) $(srcdir)/gnuplot.doc gnuplot.gih | ||
| 62 | + $(AM_V_at)alldoc2gih$(EXEEXT) $(srcdir)/gnuplot.doc gnuplot.gih | ||
| 63 | |||
| 64 | alldoc2gih_SOURCES = doc2gih.c termdoc.c | ||
| 65 | alldoc2gih_CPPFLAGS = -DALL_TERM_DOC $(AM_CPPFLAGS) | ||
| 66 | @@ -286,7 +286,7 @@ $(srcdir)/windows/wgnuplot.hhk | ||
| 67 | wxhelp/wgnuplot.hhc wxhelp/wgnuplot.hhk wxhelp/*.html windows/*.png | ||
| 68 | |||
| 69 | wxhelp/wgnuplot.html: doc2wxhtml$(EXEEXT) $(srcdir)/gnuplot.doc | ||
| 70 | - $(AM_V_GEN) ./doc2wxhtml$(EXEEXT) $(srcdir)/gnuplot.doc wxhelp/ | ||
| 71 | + $(AM_V_GEN) doc2wxhtml$(EXEEXT) $(srcdir)/gnuplot.doc wxhelp/ | ||
| 72 | |||
| 73 | #doc2wxhtml_SOURCES = windows/doc2html.c termdoc.c xref.c allterm.h | ||
| 74 | #doc2wxhtml_CPPFLAGS = -DALL_TERM_DOC -DWXHELP -I../src $(AM_CPPFLAGS) | ||
| 75 | @@ -336,7 +336,7 @@ install-info: gnuplot.info | ||
| 76 | ipf: gnuplot.ipf | ||
| 77 | |||
| 78 | gnuplot.ipf: doc2ipf$(EXEEXT) $(srcdir)/gnuplot.doc | ||
| 79 | - $(AM_V_GEN) ./doc2ipf$(EXEEXT) $(srcdir)/gnuplot.doc gnuplot.ipf | ||
| 80 | + $(AM_V_GEN) doc2ipf$(EXEEXT) $(srcdir)/gnuplot.doc gnuplot.ipf | ||
| 81 | |||
| 82 | doc2ipf_SOURCES = doc2ipf.c termdoc.c xref.c | ||
| 83 | |||
| 84 | @@ -344,7 +344,7 @@ doc2ipf_SOURCES = doc2ipf.c termdoc.c xref.c | ||
| 85 | rtf: gnuplot.rtf | ||
| 86 | |||
| 87 | gnuplot.rtf: doc2rtf$(EXEEXT) $(srcdir)/gnuplot.doc | ||
| 88 | - $(AM_V_GEN) ./doc2rtf$(EXEEXT) $(srcdir)/gnuplot.doc gnuplot.rtf | ||
| 89 | + $(AM_V_GEN) doc2rtf$(EXEEXT) $(srcdir)/gnuplot.doc gnuplot.rtf | ||
| 90 | |||
| 91 | doc2rtf_SOURCES = doc2rtf.c termdoc.c xref.c | ||
| 92 | |||
| 93 | @@ -352,13 +352,13 @@ doc2rtf_SOURCES = doc2rtf.c termdoc.c xref.c | ||
| 94 | rnh: gnuplot.rnh | ||
| 95 | |||
| 96 | gnuplot.rnh: doc2rnh$(EXEEXT) $(srcdir)/gnuplot.doc | ||
| 97 | - $(AM_V_GEN) ./doc2rnh$(EXEEXT) $(srcdir)/gnuplot.doc gnuplot.rnh | ||
| 98 | + $(AM_V_GEN) doc2rnh$(EXEEXT) $(srcdir)/gnuplot.doc gnuplot.rnh | ||
| 99 | |||
| 100 | doc2rnh_SOURCES = doc2rnh.c termdoc.c | ||
| 101 | |||
| 102 | # this is how to check the gnuplot.doc file | ||
| 103 | check-local: checkdoc$(EXEEXT) | ||
| 104 | - $(AM_V_at)./checkdoc$(EXEEXT) < $(srcdir)/gnuplot.doc; \ | ||
| 105 | + $(AM_V_at)checkdoc$(EXEEXT) < $(srcdir)/gnuplot.doc; \ | ||
| 106 | if test $$? -eq 0; then \ | ||
| 107 | echo "PASS: gnuplot.doc"; \ | ||
| 108 | else \ | ||
| 109 | -- | ||
| 110 | 2.14.3 | ||
| 111 | |||
diff --git a/meta-oe/recipes-extended/gnuplot/gnuplot/0004-Add-configure-option-to-find-qt5-native-tools.patch b/meta-oe/recipes-extended/gnuplot/gnuplot/0004-Add-configure-option-to-find-qt5-native-tools.patch new file mode 100644 index 0000000000..7ed9e761f2 --- /dev/null +++ b/meta-oe/recipes-extended/gnuplot/gnuplot/0004-Add-configure-option-to-find-qt5-native-tools.patch | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | From 577e21622475fa29fd471149cf2380c53fdbfcbd Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> | ||
| 3 | Date: Tue, 6 Mar 2018 22:26:48 +0100 | ||
| 4 | Subject: [PATCH] Add configure option to find qt5 native tools | ||
| 5 | MIME-Version: 1.0 | ||
| 6 | Content-Type: text/plain; charset=UTF-8 | ||
| 7 | Content-Transfer-Encoding: 8bit | ||
| 8 | |||
| 9 | Pkg-config checks for target locations. With these qt5 tools as uic/moc.. | ||
| 10 | cannot be used. | ||
| 11 | |||
| 12 | Upstream-Status: Inappropriate [embedded specific] | ||
| 13 | |||
| 14 | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> | ||
| 15 | --- | ||
| 16 | configure.ac | 6 +++++- | ||
| 17 | 1 file changed, 5 insertions(+), 1 deletion(-) | ||
| 18 | |||
| 19 | diff --git a/configure.ac b/configure.ac | ||
| 20 | index cdd831a..fdd192b 100644 | ||
| 21 | --- a/configure.ac | ||
| 22 | +++ b/configure.ac | ||
| 23 | @@ -1133,11 +1133,15 @@ if test "${enable_qt}" = yes ; then | ||
| 24 | else | ||
| 25 | try_qt4=yes | ||
| 26 | fi | ||
| 27 | + AC_ARG_WITH(qt5nativesysroot, | ||
| 28 | + AC_HELP_STRING([--with-qt5nativesysroot=PATH], [prepend path - for native qt5 tools]), | ||
| 29 | + [QT5NATIVESYSROOT="$withval"], [QT5NATIVESYSROOT=""]) | ||
| 30 | + | ||
| 31 | if test "x${with_qt}" != "xqt4"; then | ||
| 32 | PKG_CHECK_MODULES_NOFAIL(QT, [Qt5Core Qt5Gui Qt5Network Qt5Svg Qt5PrintSupport]) | ||
| 33 | if test $pkg_failed = no; then | ||
| 34 | try_qt4=no | ||
| 35 | - QT5LOC=`$PKG_CONFIG --variable=host_bins Qt5Core` | ||
| 36 | + QT5LOC=${QT5NATIVESYSROOT}`$PKG_CONFIG --variable=host_bins Qt5Core` | ||
| 37 | if test "x${QT5LOC}" != "x"; then | ||
| 38 | UIC=${QT5LOC}/uic | ||
| 39 | MOC=${QT5LOC}/moc | ||
| 40 | -- | ||
| 41 | 2.14.3 | ||
| 42 | |||
diff --git a/meta-oe/recipes-extended/gnuplot/gnuplot/gnuplot.desktop b/meta-oe/recipes-extended/gnuplot/gnuplot/gnuplot.desktop index f67df9e193..1012e477f7 100644 --- a/meta-oe/recipes-extended/gnuplot/gnuplot/gnuplot.desktop +++ b/meta-oe/recipes-extended/gnuplot/gnuplot/gnuplot.desktop | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | [Desktop Entry] | 1 | [Desktop Entry] |
| 2 | Name=Gnuplot | 2 | Name=Gnuplot |
| 3 | Comment=Plot data and function graphs | 3 | Comment=Plot data and function graphs |
| 4 | Exec=x-terminal-emulator -e gnuplot | 4 | Exec=gnuplot |
| 5 | Terminal=false | 5 | Terminal=true |
| 6 | Type=Application | 6 | Type=Application |
| 7 | Icon=gnuplot | 7 | Icon=gnuplot |
| 8 | Categories=Science; | 8 | Categories=Science; |
diff --git a/meta-oe/recipes-extended/gnuplot/gnuplot/lua-loadlibs-configure-in-fix.patch b/meta-oe/recipes-extended/gnuplot/gnuplot/lua-loadlibs-configure-in-fix.patch deleted file mode 100644 index 23f2cd26a5..0000000000 --- a/meta-oe/recipes-extended/gnuplot/gnuplot/lua-loadlibs-configure-in-fix.patch +++ /dev/null | |||
| @@ -1,16 +0,0 @@ | |||
| 1 | Index: gnuplot-4.6.5/configure.in | ||
| 2 | =================================================================== | ||
| 3 | --- gnuplot-4.6.5.orig/configure.in | ||
| 4 | +++ gnuplot-4.6.5/configure.in | ||
| 5 | @@ -690,6 +690,11 @@ if test "${with_lua}" = yes ; then | ||
| 6 | fi | ||
| 7 | |||
| 8 | if test "$with_lua" != no; then | ||
| 9 | + dnl check for dlopen/dl to fix loadlibs link failure | ||
| 10 | + AC_CHECK_FUNC([dlopen], [], | ||
| 11 | + AC_CHECK_LIB([dl], [dlopen], DLOPEN_LIBS="-ldl")) | ||
| 12 | + AC_SUBST(DLOPEN_LIBS) | ||
| 13 | + LUA_LIBS="$LUA_LIBS $DLOPEN_LIBS" | ||
| 14 | TERMLIBS="$TERMLIBS $LUA_LIBS" | ||
| 15 | CPPFLAGS="$CPPFLAGS $LUA_CFLAGS" | ||
| 16 | else | ||
diff --git a/meta-oe/recipes-extended/gnuplot/gnuplot/qtopia.trm b/meta-oe/recipes-extended/gnuplot/gnuplot/qtopia.trm deleted file mode 100644 index b52f9bb975..0000000000 --- a/meta-oe/recipes-extended/gnuplot/gnuplot/qtopia.trm +++ /dev/null | |||
| @@ -1,483 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * $Id: dumb.trm,v 1.16 2004/04/13 17:24:16 broeker Exp $ | ||
| 3 | * | ||
| 4 | */ | ||
| 5 | |||
| 6 | /* GNUPLOT - qtopia.trm */ | ||
| 7 | |||
| 8 | /*[ | ||
| 9 | * Copyright 1991 - 1993, 1998, 2004 Thomas Williams, Colin Kelley | ||
| 10 | * | ||
| 11 | * Permission to use, copy, and distribute this software and its | ||
| 12 | * documentation for any purpose with or without fee is hereby granted, | ||
| 13 | * provided that the above copyright notice appear in all copies and | ||
| 14 | * that both that copyright notice and this permission notice appear | ||
| 15 | * in supporting documentation. | ||
| 16 | * | ||
| 17 | * Permission to modify the software is granted, but not the right to | ||
| 18 | * distribute the complete modified source code. Modifications are to | ||
| 19 | * be distributed as patches to the released version. Permission to | ||
| 20 | * distribute binaries produced by compiling modified sources is granted, | ||
| 21 | * provided you | ||
| 22 | * 1. distribute the corresponding source modifications from the | ||
| 23 | * released version in the form of a patch file along with the binaries, | ||
| 24 | * 2. add special version identification to distinguish your version | ||
| 25 | * in addition to the base release version number, | ||
| 26 | * 3. provide your name and address as the primary contact for the | ||
| 27 | * support of your modified version, and | ||
| 28 | * 4. retain our contact information in regard to use of the base | ||
| 29 | * software. | ||
| 30 | * Permission to distribute the released version of the source code along | ||
| 31 | * with corresponding source modifications in the form of a patch file is | ||
| 32 | * granted with same provisions 2 through 4 for binary distributions. | ||
| 33 | * | ||
| 34 | * This software is provided "as is" without express or implied warranty | ||
| 35 | * to the extent permitted by applicable law. | ||
| 36 | ]*/ | ||
| 37 | |||
| 38 | /* | ||
| 39 | * This file is included by ../term.c. | ||
| 40 | * | ||
| 41 | * This terminal driver supports: | ||
| 42 | * qtopia terminals | ||
| 43 | * | ||
| 44 | * AUTHORS | ||
| 45 | * Michael Neuroth, 2004-05-16 | ||
| 46 | * INTERNET: michael.neuroth@freenet.de | ||
| 47 | * | ||
| 48 | * send your comments or suggestions to (gnuplot-info@lists.sourceforge.net). | ||
| 49 | * | ||
| 50 | */ | ||
| 51 | #include "driver.h" | ||
| 52 | |||
| 53 | #define NO_QTOPIA_ENHANCED_SUPPORT | ||
| 54 | |||
| 55 | #ifdef TERM_REGISTER | ||
| 56 | register_term(qtopia_driver) | ||
| 57 | #endif | ||
| 58 | |||
| 59 | #ifdef TERM_PROTO | ||
| 60 | TERM_PUBLIC void QTOPIA_options __PROTO((void)); | ||
| 61 | TERM_PUBLIC void QTOPIA_init __PROTO((void)); | ||
| 62 | TERM_PUBLIC void QTOPIA_graphics __PROTO((void)); | ||
| 63 | TERM_PUBLIC void QTOPIA_text __PROTO((void)); | ||
| 64 | TERM_PUBLIC void QTOPIA_reset __PROTO((void)); | ||
| 65 | TERM_PUBLIC void QTOPIA_linetype __PROTO((int linetype)); | ||
| 66 | TERM_PUBLIC void QTOPIA_move __PROTO((unsigned int x, unsigned int y)); | ||
| 67 | TERM_PUBLIC void QTOPIA_point __PROTO((unsigned int x, unsigned int y, | ||
| 68 | int point)); | ||
| 69 | TERM_PUBLIC void QTOPIA_vector __PROTO((unsigned int x, unsigned int y)); | ||
| 70 | TERM_PUBLIC void QTOPIA_put_text __PROTO((unsigned int x, unsigned int y, | ||
| 71 | const char *str)); | ||
| 72 | TERM_PUBLIC void QTOPIA_arrow __PROTO((unsigned int sx, unsigned int sy, | ||
| 73 | unsigned int ex, unsigned int ey, | ||
| 74 | int head)); | ||
| 75 | |||
| 76 | #define ENHqtopia_put_text NULL | ||
| 77 | |||
| 78 | |||
| 79 | #define QTOPIA_XMAX 4096 | ||
| 80 | #define QTOPIA_YMAX 4096 | ||
| 81 | |||
| 82 | #ifdef ZAURUS | ||
| 83 | #define QTOPIA_VCHAR (QTOPIA_YMAX/25) | ||
| 84 | #define QTOPIA_HCHAR (QTOPIA_XMAX/40) | ||
| 85 | #define QTOPIA_VTIC (QTOPIA_YMAX/50) | ||
| 86 | #define QTOPIA_HTIC (QTOPIA_XMAX/40) | ||
| 87 | #else | ||
| 88 | #define QTOPIA_VCHAR (QTOPIA_YMAX/25) | ||
| 89 | #define QTOPIA_HCHAR (QTOPIA_XMAX/50) | ||
| 90 | #define QTOPIA_VTIC (QTOPIA_YMAX/100) | ||
| 91 | #define QTOPIA_HTIC (QTOPIA_XMAX/150) | ||
| 92 | #endif | ||
| 93 | |||
| 94 | #endif /* TERM_PROTO */ | ||
| 95 | |||
| 96 | #ifdef TERM_BODY | ||
| 97 | |||
| 98 | /*#include <winsock2.h>*/ | ||
| 99 | /* needs: ws2_32.lib */ | ||
| 100 | #ifndef _MSC_VER | ||
| 101 | #include <sys/types.h> | ||
| 102 | #include <sys/socket.h> | ||
| 103 | #include <netinet/in.h> | ||
| 104 | #include <arpa/inet.h> | ||
| 105 | #endif | ||
| 106 | |||
| 107 | #define QTOPIA_MAX_BUFFER 512 | ||
| 108 | #define QTOPIA_MAX_DELAY_COUNT 20 /* * 100 ms = 2 s */ | ||
| 109 | |||
| 110 | #ifdef _MSC_VER | ||
| 111 | #define QTOPIA_BAD_SOCKET INVALID_SOCKET /* -1 */ | ||
| 112 | #define QTOPIA_BAD_CONNECT SOCKET_ERROR | ||
| 113 | #else | ||
| 114 | #define QTOPIA_BAD_SOCKET -1 | ||
| 115 | #define QTOPIA_BAD_CONNECT -1 | ||
| 116 | #endif | ||
| 117 | #define QTOPIA_PORT_NO 5050 | ||
| 118 | |||
| 119 | static int qtopia_client_socket = QTOPIA_BAD_SOCKET; | ||
| 120 | static unsigned short qtopia_port_no = QTOPIA_PORT_NO; | ||
| 121 | static char qtopia_host_name[QTOPIA_MAX_BUFFER+1] = { "localhost" }; | ||
| 122 | |||
| 123 | static int OpenClient __PROTO(( int test)); | ||
| 124 | static void CloseClient(); | ||
| 125 | |||
| 126 | static void MySleep( delay ) | ||
| 127 | int delay; | ||
| 128 | { | ||
| 129 | #ifdef _MSC_VER | ||
| 130 | Sleep( delay ); | ||
| 131 | #else | ||
| 132 | usleep( delay ); | ||
| 133 | #endif | ||
| 134 | } | ||
| 135 | |||
| 136 | static void InitSockets() | ||
| 137 | { | ||
| 138 | #ifdef _MSC_VER | ||
| 139 | WORD wVersionRequested; | ||
| 140 | WSADATA wsaData; | ||
| 141 | int err; | ||
| 142 | |||
| 143 | wVersionRequested = MAKEWORD( 2, 2 ); | ||
| 144 | |||
| 145 | err = WSAStartup( wVersionRequested, &wsaData ); | ||
| 146 | #endif | ||
| 147 | } | ||
| 148 | |||
| 149 | static void ExitSockets() | ||
| 150 | { | ||
| 151 | #ifdef _MSC_VER | ||
| 152 | WSACleanup(); | ||
| 153 | #endif | ||
| 154 | } | ||
| 155 | |||
| 156 | static int CheckForQtplot( count ) | ||
| 157 | int count; | ||
| 158 | { | ||
| 159 | /* test (via sockets) if qtplot is allready running */ | ||
| 160 | if( !OpenClient( 1 ) ) | ||
| 161 | { | ||
| 162 | /* give qtplot a litle bit time to start... */ | ||
| 163 | if( count < QTOPIA_MAX_DELAY_COUNT ) | ||
| 164 | { | ||
| 165 | if( count == 0 ) | ||
| 166 | { | ||
| 167 | #ifdef _MSC_VER | ||
| 168 | system( "start qtplot" ); | ||
| 169 | #else | ||
| 170 | system( "qtplot&" ); | ||
| 171 | #endif | ||
| 172 | } | ||
| 173 | |||
| 174 | MySleep(100); | ||
| 175 | |||
| 176 | return CheckForQtplot( count+1 ); | ||
| 177 | } | ||
| 178 | else | ||
| 179 | { | ||
| 180 | return 0; | ||
| 181 | } | ||
| 182 | } | ||
| 183 | else | ||
| 184 | { | ||
| 185 | CloseClient(); | ||
| 186 | |||
| 187 | return 1; | ||
| 188 | } | ||
| 189 | } | ||
| 190 | |||
| 191 | static int OpenClient( test ) | ||
| 192 | int test; | ||
| 193 | { | ||
| 194 | int len; | ||
| 195 | struct sockaddr_in address; | ||
| 196 | int result; | ||
| 197 | |||
| 198 | /* Create a socket for the client. */ | ||
| 199 | |||
| 200 | qtopia_client_socket = socket(AF_INET, SOCK_STREAM, 0); | ||
| 201 | |||
| 202 | if( qtopia_client_socket != QTOPIA_BAD_SOCKET ) | ||
| 203 | { | ||
| 204 | /* Name the socket, as agreed with the server. */ | ||
| 205 | |||
| 206 | address.sin_family = AF_INET; | ||
| 207 | address.sin_addr.s_addr = inet_addr(/*qtopia_host_name*/"127.0.0.1"); /* localhost */ | ||
| 208 | address.sin_port = htons(qtopia_port_no); | ||
| 209 | len = sizeof(address); | ||
| 210 | |||
| 211 | /* Now connect our socket to the server's socket. */ | ||
| 212 | |||
| 213 | result = connect(qtopia_client_socket, (struct sockaddr *)&address, len); | ||
| 214 | |||
| 215 | if( result == QTOPIA_BAD_SOCKET ) | ||
| 216 | { | ||
| 217 | /* mark this socket as bad */ | ||
| 218 | |||
| 219 | close( qtopia_client_socket ); | ||
| 220 | |||
| 221 | qtopia_client_socket = QTOPIA_BAD_SOCKET; | ||
| 222 | |||
| 223 | if( !test ) | ||
| 224 | { | ||
| 225 | fprintf( gpoutfile, "error connecting to server !\n" ); | ||
| 226 | } | ||
| 227 | return 0; /* something went wrong */ | ||
| 228 | } | ||
| 229 | } | ||
| 230 | else | ||
| 231 | { | ||
| 232 | if( !test ) | ||
| 233 | { | ||
| 234 | fprintf( gpoutfile, "error creating socket !\n" ); | ||
| 235 | } | ||
| 236 | return 0; /* something went wrong */ | ||
| 237 | } | ||
| 238 | |||
| 239 | return 1; /* everything ist ok ! */ | ||
| 240 | } | ||
| 241 | |||
| 242 | static void CloseClient() | ||
| 243 | { | ||
| 244 | close( qtopia_client_socket ); | ||
| 245 | } | ||
| 246 | |||
| 247 | static int IsClientOk() | ||
| 248 | { | ||
| 249 | return qtopia_client_socket != QTOPIA_BAD_SOCKET; | ||
| 250 | } | ||
| 251 | |||
| 252 | static void SendDataToSocket( sLine ) | ||
| 253 | const char * sLine; | ||
| 254 | { | ||
| 255 | if( IsClientOk() ) | ||
| 256 | { | ||
| 257 | int send_count; | ||
| 258 | |||
| 259 | send_count = send( qtopia_client_socket, sLine, strlen( sLine ), 0 ); | ||
| 260 | |||
| 261 | if( send_count <= 0 ) | ||
| 262 | { | ||
| 263 | fprintf( gpoutfile, "error writing to socket str=%s!\n", sLine ); | ||
| 264 | } | ||
| 265 | /* | ||
| 266 | else | ||
| 267 | { | ||
| 268 | fprintf( gpoutfile, "wrote %d bytes\n", send_count ); | ||
| 269 | } | ||
| 270 | */ | ||
| 271 | } | ||
| 272 | else | ||
| 273 | { | ||
| 274 | /* for testing... */ | ||
| 275 | /*fprintf( gpoutfile, sLine );*/ | ||
| 276 | } | ||
| 277 | } | ||
| 278 | |||
| 279 | /* ************************************************** */ | ||
| 280 | |||
| 281 | enum QTOPIA_id { QTOPIA_PORT, QTOPIA_HOST, QTOPIA_OTHER }; | ||
| 282 | |||
| 283 | static struct gen_table QTOPIA_opts[] = | ||
| 284 | { | ||
| 285 | { "po$rt", QTOPIA_PORT }, | ||
| 286 | { "ho$st", QTOPIA_HOST }, | ||
| 287 | { NULL, QTOPIA_OTHER } | ||
| 288 | }; | ||
| 289 | |||
| 290 | TERM_PUBLIC void | ||
| 291 | QTOPIA_options() | ||
| 292 | { | ||
| 293 | /* this is not for the qtopia terminal ! */ | ||
| 294 | /*SendDataToSocket( "qtd options\n" );*/ | ||
| 295 | |||
| 296 | int x, y; | ||
| 297 | struct value a; | ||
| 298 | |||
| 299 | while (!END_OF_COMMAND) | ||
| 300 | { | ||
| 301 | switch(lookup_table(&QTOPIA_opts[0],c_token)) | ||
| 302 | { | ||
| 303 | case QTOPIA_PORT: | ||
| 304 | c_token++; | ||
| 305 | if (END_OF_COMMAND) | ||
| 306 | int_error(c_token, "expecting port number"); | ||
| 307 | qtopia_port_no = (int) real(const_express(&a)); | ||
| 308 | break; | ||
| 309 | case QTOPIA_HOST: | ||
| 310 | c_token++; | ||
| 311 | if (END_OF_COMMAND) | ||
| 312 | int_error(c_token, "expecting host name"); | ||
| 313 | if (isstring(c_token)) | ||
| 314 | quote_str( qtopia_host_name, c_token, sizeof(qtopia_host_name) ); | ||
| 315 | else | ||
| 316 | copy_str( qtopia_host_name, c_token, sizeof(qtopia_host_name) ); | ||
| 317 | c_token++; | ||
| 318 | break; | ||
| 319 | case QTOPIA_OTHER: | ||
| 320 | default: | ||
| 321 | break; | ||
| 322 | } | ||
| 323 | } | ||
| 324 | |||
| 325 | sprintf(term_options, "host=%s port=%d",qtopia_host_name,qtopia_port_no); | ||
| 326 | } | ||
| 327 | |||
| 328 | |||
| 329 | TERM_PUBLIC void | ||
| 330 | QTOPIA_init() | ||
| 331 | { | ||
| 332 | /* initialize lib (if necassary) */ | ||
| 333 | InitSockets(); | ||
| 334 | CheckForQtplot( 0 ); | ||
| 335 | OpenClient( 0 ); | ||
| 336 | |||
| 337 | SendDataToSocket( "qtd init\n" ); | ||
| 338 | } | ||
| 339 | |||
| 340 | |||
| 341 | TERM_PUBLIC void | ||
| 342 | QTOPIA_graphics() | ||
| 343 | { | ||
| 344 | SendDataToSocket( "qtd graphics\n" ); | ||
| 345 | } | ||
| 346 | |||
| 347 | TERM_PUBLIC void | ||
| 348 | QTOPIA_text() | ||
| 349 | { | ||
| 350 | SendDataToSocket( "qtd text\n" ); | ||
| 351 | } | ||
| 352 | |||
| 353 | |||
| 354 | TERM_PUBLIC void | ||
| 355 | QTOPIA_reset() | ||
| 356 | { | ||
| 357 | SendDataToSocket( "qtd reset\n" ); | ||
| 358 | |||
| 359 | /* give the qtplot a litle bit time to shutdown */ | ||
| 360 | MySleep(100); | ||
| 361 | |||
| 362 | CloseClient(); | ||
| 363 | ExitSockets(); | ||
| 364 | } | ||
| 365 | |||
| 366 | |||
| 367 | TERM_PUBLIC void | ||
| 368 | QTOPIA_linetype(linetype) | ||
| 369 | int linetype; | ||
| 370 | { | ||
| 371 | char sBuffer[QTOPIA_MAX_BUFFER]; | ||
| 372 | |||
| 373 | sprintf( sBuffer, "qtd linetype type=%d\n",linetype ); | ||
| 374 | |||
| 375 | SendDataToSocket( sBuffer ); | ||
| 376 | } | ||
| 377 | |||
| 378 | |||
| 379 | TERM_PUBLIC void | ||
| 380 | QTOPIA_move(x, y) | ||
| 381 | unsigned int x, y; | ||
| 382 | { | ||
| 383 | char sBuffer[QTOPIA_MAX_BUFFER]; | ||
| 384 | |||
| 385 | sprintf( sBuffer, "qtd move x=%d y=%d\n",x,y ); | ||
| 386 | |||
| 387 | SendDataToSocket( sBuffer ); | ||
| 388 | } | ||
| 389 | |||
| 390 | |||
| 391 | TERM_PUBLIC void | ||
| 392 | QTOPIA_point(x, y, point) | ||
| 393 | unsigned int x, y; | ||
| 394 | int point; | ||
| 395 | { | ||
| 396 | char sBuffer[QTOPIA_MAX_BUFFER]; | ||
| 397 | |||
| 398 | sprintf( sBuffer, "qtd point x=%d y=%d point=%d\n",x,y,point ); | ||
| 399 | |||
| 400 | SendDataToSocket( sBuffer ); | ||
| 401 | } | ||
| 402 | |||
| 403 | |||
| 404 | TERM_PUBLIC void | ||
| 405 | QTOPIA_vector(_x, _y) | ||
| 406 | unsigned int _x, _y; | ||
| 407 | { | ||
| 408 | char sBuffer[QTOPIA_MAX_BUFFER]; | ||
| 409 | |||
| 410 | sprintf( sBuffer, "qtd vector x=%d y=%d\n",_x,_y ); | ||
| 411 | |||
| 412 | SendDataToSocket( sBuffer ); | ||
| 413 | } | ||
| 414 | |||
| 415 | |||
| 416 | TERM_PUBLIC void | ||
| 417 | QTOPIA_put_text(x, y, str) | ||
| 418 | unsigned int x, y; | ||
| 419 | const char *str; | ||
| 420 | { | ||
| 421 | char sBuffer[QTOPIA_MAX_BUFFER]; | ||
| 422 | |||
| 423 | sprintf( sBuffer, "qtd put_text x=%d y=%d str=%s\n",x,y,str ); | ||
| 424 | |||
| 425 | SendDataToSocket( sBuffer ); | ||
| 426 | } | ||
| 427 | |||
| 428 | /* not suported yet ! */ | ||
| 429 | TERM_PUBLIC void | ||
| 430 | QTOPIA_arrow(sx, sy, ex, ey, head) | ||
| 431 | unsigned int sx, sy, ex, ey; | ||
| 432 | int head; /* ignored */ | ||
| 433 | { | ||
| 434 | char sBuffer[QTOPIA_MAX_BUFFER]; | ||
| 435 | |||
| 436 | sprintf( sBuffer, "qtd arrow sx=%d sy=%d ex=%d ey=%d head=%d\n",sx,sy,ex,ey,head ); | ||
| 437 | |||
| 438 | SendDataToSocket( sBuffer ); | ||
| 439 | } | ||
| 440 | |||
| 441 | |||
| 442 | #endif /* TERM_BODY */ | ||
| 443 | |||
| 444 | #ifdef TERM_TABLE | ||
| 445 | TERM_TABLE_START(qtopia_driver) | ||
| 446 | "qtopia", "qtopia or Qt", | ||
| 447 | QTOPIA_XMAX, QTOPIA_YMAX, QTOPIA_VCHAR, QTOPIA_HCHAR, | ||
| 448 | QTOPIA_VTIC, QTOPIA_HTIC, QTOPIA_options, QTOPIA_init, QTOPIA_reset, | ||
| 449 | QTOPIA_text, null_scale, QTOPIA_graphics, QTOPIA_move, QTOPIA_vector, | ||
| 450 | QTOPIA_linetype, QTOPIA_put_text, null_text_angle, | ||
| 451 | null_justify_text, QTOPIA_point, /*QTOPIA_arrow*/0, set_font_null, | ||
| 452 | 0, /* pointsize */ | ||
| 453 | TERM_CAN_MULTIPLOT, | ||
| 454 | NULL, NULL, NULL, NULL | ||
| 455 | #ifdef USE_MOUSE | ||
| 456 | , NULL, NULL, NULL, NULL, NULL | ||
| 457 | #endif | ||
| 458 | #ifdef PM3D | ||
| 459 | , NULL, NULL, NULL, NULL | ||
| 460 | #endif | ||
| 461 | TERM_TABLE_END(qtopia_driver) | ||
| 462 | |||
| 463 | #undef LAST_TERM | ||
| 464 | #define LAST_TERM qtopia_driver | ||
| 465 | |||
| 466 | #endif /* TERM_TABLE */ | ||
| 467 | |||
| 468 | #ifdef TERM_HELP | ||
| 469 | START_HELP(qtopia) | ||
| 470 | "1 qtopia", | ||
| 471 | "?commands set terminal qtopia", | ||
| 472 | "?set terminal qtopia", | ||
| 473 | "?set term qtopia", | ||
| 474 | "?terminal qtopia", | ||
| 475 | "?term qtopia", | ||
| 476 | "?qtopia", | ||
| 477 | " The `qtopia` terminal driver has no additional options.", | ||
| 478 | "", | ||
| 479 | " Syntax:", | ||
| 480 | " set terminal qtopia", | ||
| 481 | "" | ||
| 482 | END_HELP(qtopia) | ||
| 483 | #endif /* TERM_HELP */ | ||
diff --git a/meta-oe/recipes-extended/gnuplot/gnuplot/subdirs.patch b/meta-oe/recipes-extended/gnuplot/gnuplot/subdirs.patch deleted file mode 100644 index 8c7d1f0d35..0000000000 --- a/meta-oe/recipes-extended/gnuplot/gnuplot/subdirs.patch +++ /dev/null | |||
| @@ -1,11 +0,0 @@ | |||
| 1 | --- /tmp/Makefile.am 2007-08-23 13:10:15.560659023 +0200 | ||
| 2 | +++ gnuplot-4.2.0/Makefile.am 2007-08-23 13:10:34.961764629 +0200 | ||
| 3 | @@ -1,7 +1,7 @@ | ||
| 4 | ## Process this file with automake to produce Makefile.in -*-Makefile-*- | ||
| 5 | AUTOMAKE_OPTIONS = foreign 1.2h | ||
| 6 | |||
| 7 | -SUBDIRS = config m4 term src docs $(LISPDIR) man demo tutorial share | ||
| 8 | +SUBDIRS = config m4 term src $(LISPDIR) man share | ||
| 9 | |||
| 10 | EXTRA_DIST = BUGS CodeStyle Copyright FAQ GNUmakefile INSTALL INSTALL.gnu \ | ||
| 11 | Makefile.maint PATCHLEVEL PGPKEYS PORTING README README.1ST README.exp \ | ||
diff --git a/meta-oe/recipes-extended/gnuplot/gnuplot_5.0.5.bb b/meta-oe/recipes-extended/gnuplot/gnuplot_5.0.5.bb deleted file mode 100644 index 42308ba0be..0000000000 --- a/meta-oe/recipes-extended/gnuplot/gnuplot_5.0.5.bb +++ /dev/null | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | require gnuplot.inc | ||
| 2 | |||
| 3 | SRC_URI = "${SOURCEFORGE_MIRROR}/gnuplot/${BP}.tar.gz;name=archive \ | ||
| 4 | http://www.mneuroth.de/privat/zaurus/qtplot-0.2.tar.gz;name=qtplot \ | ||
| 5 | file://subdirs.patch \ | ||
| 6 | file://lua-loadlibs-configure-in-fix.patch \ | ||
| 7 | file://gnuplot.desktop \ | ||
| 8 | file://gnuplot.png \ | ||
| 9 | " | ||
| 10 | |||
| 11 | SRC_URI[archive.md5sum] = "c5e96fca73afbee4f57cbc1bfce6b3b8" | ||
| 12 | SRC_URI[archive.sha256sum] = "25f3e0bf192e01115c580f278c3725d7a569eb848786e12b455a3fda70312053" | ||
| 13 | SRC_URI[qtplot.md5sum] = "0a481885a496092c77eb4017540b5cf6" | ||
| 14 | SRC_URI[qtplot.sha256sum] = "6df317183ff62cc82f3dcf88207a267cd6478cb5147f55d7530c94f1ad5f4132" | ||
diff --git a/meta-oe/recipes-extended/gnuplot/gnuplot_5.2.2.bb b/meta-oe/recipes-extended/gnuplot/gnuplot_5.2.2.bb new file mode 100644 index 0000000000..4cc289d3ab --- /dev/null +++ b/meta-oe/recipes-extended/gnuplot/gnuplot_5.2.2.bb | |||
| @@ -0,0 +1,69 @@ | |||
| 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 virtual/libx11 gd readline" | ||
| 9 | |||
| 10 | inherit autotools distro_features_check | ||
| 11 | # depends on virtual/libx11 | ||
| 12 | REQUIRED_DISTRO_FEATURES = "x11" | ||
| 13 | |||
| 14 | SRC_URI = "${SOURCEFORGE_MIRROR}/gnuplot/${BP}.tar.gz;name=archive \ | ||
| 15 | http://www.mneuroth.de/privat/zaurus/qtplot-0.2.tar.gz;name=qtplot \ | ||
| 16 | file://gnuplot.desktop \ | ||
| 17 | file://gnuplot.png \ | ||
| 18 | " | ||
| 19 | SRC_URI_append_class-target = " \ | ||
| 20 | file://0002-do-not-build-demos.patch \ | ||
| 21 | file://0003-Use-native-tools-to-build-docs.patch \ | ||
| 22 | file://0004-Add-configure-option-to-find-qt5-native-tools.patch \ | ||
| 23 | " | ||
| 24 | |||
| 25 | SRC_URI[archive.md5sum] = "60aedd08998160593199459dea8467fe" | ||
| 26 | SRC_URI[archive.sha256sum] = "a416d22f02bdf3873ef82c5eb7f8e94146795811ef808e12b035ada88ef7b1a1" | ||
| 27 | SRC_URI[qtplot.md5sum] = "0a481885a496092c77eb4017540b5cf6" | ||
| 28 | SRC_URI[qtplot.sha256sum] = "6df317183ff62cc82f3dcf88207a267cd6478cb5147f55d7530c94f1ad5f4132" | ||
| 29 | |||
| 30 | # for building docs (they deserve it) we need *doc2* tools native | ||
| 31 | BBCLASSEXTEND = "native" | ||
| 32 | DEPENDS_class-native = "readline-native" | ||
| 33 | PACKAGECONFIG_class-native = "" | ||
| 34 | |||
| 35 | SRC_URI_append_class-native = "file://0001-reduce-build-to-conversion-tools-for-native-build.patch" | ||
| 36 | |||
| 37 | do_install_class-native() { | ||
| 38 | install -d ${D}${bindir} | ||
| 39 | install ${B}/docs/*doc* ${D}${bindir} | ||
| 40 | rm ${D}${bindir}/*.o | ||
| 41 | } | ||
| 42 | |||
| 43 | PACKAGECONFIG ??= "cairo" | ||
| 44 | PACKAGECONFIG[cairo] = "--with-cairo,--without-cairo,cairo pango" | ||
| 45 | PACKAGECONFIG[lua] = "--with-lua,--without-lua,lua" | ||
| 46 | PACKAGECONFIG[qt5] = "--with-qt --with-qt5nativesysroot=${STAGING_DIR_NATIVE},--without-qt,qtbase-native qtbase qtsvg qttools-native" | ||
| 47 | |||
| 48 | EXTRA_OECONF = "--with-readline=${STAGING_LIBDIR}/.. \ | ||
| 49 | --without-tutorial \ | ||
| 50 | --disable-wxwidgets" | ||
| 51 | |||
| 52 | do_compile_prepend() { | ||
| 53 | install -m 0644 ${WORKDIR}/qtplot-0.2/qtopia.trm ${S}/term/ | ||
| 54 | } | ||
| 55 | |||
| 56 | do_install_append_class-target() { | ||
| 57 | install -d ${D}${datadir}/applications/ | ||
| 58 | install -m 0644 ${WORKDIR}/gnuplot.desktop ${D}${datadir}/applications/ | ||
| 59 | install -d ${D}${datadir}/pixmaps/ | ||
| 60 | install -m 0644 ${WORKDIR}/gnuplot.png ${D}${datadir}/pixmaps/ | ||
| 61 | } | ||
| 62 | |||
| 63 | PACKAGES =+ "${PN}-x11-dbg ${PN}-x11" | ||
| 64 | DESCRIPTION_${PN}-x11 = "X11 display terminal for Gnuplot." | ||
| 65 | SECTION_${PN}-x11 = "x11/scientific" | ||
| 66 | FILES_${PN}-x11 = "${libexecdir} ${datadir}/applications ${datadir}/pixmaps ${libdir}/X11 " | ||
| 67 | |||
| 68 | FILES_${PN} += "${datadir}/texmf" | ||
| 69 | FILES_${PN}-x11-dbg += "${libexecdir}/gnuplot/*/.debug" | ||
