serenity/Ports/gnuplot/package.sh
2023-09-09 01:06:31 +02:00

29 lines
694 B
Bash
Executable file

#!/usr/bin/env -S bash ../.port_include.sh
port='gnuplot'
version='5.4.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#2b0c1841640b2e33f8421ac83cd91d972d8b0c6acf9753f16385d5eec8a61a73"
)
depends=(
'libgd'
'lua'
)
configopts=(
"--prefix=${SERENITY_INSTALL_ROOT}/usr/local"
'--with-qt=no'
'--with-readline=builtin'
'--without-cairo'
'--without-latex'
'libgd_LIBS=-liconv -lfreetype -lfontconfig -lpng'
)
pre_configure() {
run ./prepare
}
install() {
run make install-strip
}