From 4c0ec846a89d9a21e2fbff7820debbd6d17713bf Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Wed, 15 Apr 2020 14:23:25 +0100 Subject: [PATCH] Ports: Add gnuplot port Obviously we don't support many of the common terminals as we're missing X11, Qt, WxWidgets, Cairo etc. - but at least the "dumb" terminal (ASCII output) and "canvas" terminal (generates JS to plot on a HTML ) are confirmed to be working :^) --- Ports/gnuplot/package.sh | 15 +++++++++++++++ Ports/gnuplot/patches/fix-makefile.patch | 14 ++++++++++++++ 2 files changed, 29 insertions(+) create mode 100755 Ports/gnuplot/package.sh create mode 100644 Ports/gnuplot/patches/fix-makefile.patch diff --git a/Ports/gnuplot/package.sh b/Ports/gnuplot/package.sh new file mode 100755 index 00000000000..ed462a33468 --- /dev/null +++ b/Ports/gnuplot/package.sh @@ -0,0 +1,15 @@ +#!/bin/bash ../.port_include.sh +port=gnuplot +version=5.2.8 +useconfigure=true +# Note: gnuplot's source code is hosted on SourceForge, but using the GitHub mirror makes downloading a versioned .tar.gz easier. +files="https://github.com/gnuplot/gnuplot/archive/${version}.tar.gz gnuplot-${version}.tar.gz" +configopts="--prefix=$SERENITY_ROOT/Root/usr/local --with-readline=builtin" + +pre_configure() { + run ./prepare +} + +install() { + run make install-strip +} diff --git a/Ports/gnuplot/patches/fix-makefile.patch b/Ports/gnuplot/patches/fix-makefile.patch new file mode 100644 index 00000000000..faf87cf34ae --- /dev/null +++ b/Ports/gnuplot/patches/fix-makefile.patch @@ -0,0 +1,14 @@ +--- gnuplot-5.2.8/Makefile.am.orig 2020-04-15 12:56:22.001000000 +0100 ++++ gnuplot-5.2.8/Makefile.am 2020-04-15 12:58:18.603091197 +0100 +@@ -1,7 +1,10 @@ + ## Process this file with automake to produce Makefile.in -*-Makefile-*- + AUTOMAKE_OPTIONS = foreign + +-SUBDIRS = config m4 term src docs man demo tutorial share ++# Note: For the SerenityOS port of gnuplot, the following have been removed: ++# docs - segfault during make :/ ++# demo - i686-pc-serenity-gcc: error: unrecognized command line option '-rdynamic' ++SUBDIRS = config m4 term src man tutorial share + + EXTRA_DIST = BUGS Copyright FAQ.pdf GNUmakefile INSTALL INSTALL.gnu \ + Makefile.maint PATCHLEVEL PGPKEYS README RELEASE_NOTES \