Bläddra i källkod

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
<canvas>) are confirmed to be working :^)
Linus Groh 5 år sedan
förälder
incheckning
4c0ec846a8
2 ändrade filer med 29 tillägg och 0 borttagningar
  1. 15 0
      Ports/gnuplot/package.sh
  2. 14 0
      Ports/gnuplot/patches/fix-makefile.patch

+ 15 - 0
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
+}

+ 14 - 0
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 \