summaryrefslogtreecommitdiff
path: root/Ports/gnuplot/package.sh
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-04-15 14:23:25 +0100
committerAndreas Kling <kling@serenityos.org>2020-04-15 16:39:09 +0200
commit4c0ec846a89d9a21e2fbff7820debbd6d17713bf (patch)
tree81bd16c0ba875d8ba0d5db09c09dcc5875fe9961 /Ports/gnuplot/package.sh
parent7feb48b1daca1ca23cb3cce762c039c71a722679 (diff)
downloadserenity-4c0ec846a89d9a21e2fbff7820debbd6d17713bf.zip
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 :^)
Diffstat (limited to 'Ports/gnuplot/package.sh')
-rwxr-xr-xPorts/gnuplot/package.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/Ports/gnuplot/package.sh b/Ports/gnuplot/package.sh
new file mode 100755
index 0000000000..ed462a3346
--- /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
+}