31 lines
746 B
Plaintext
31 lines
746 B
Plaintext
# Description: GNUPlot, a graph plotting software
|
|
# URL: http://www.gnuplot.info/
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
# Depends on: pango
|
|
# Optional: libgd lua qt5 (qt6-5compat qt6-tools qt6-svg)
|
|
|
|
name=gnuplot
|
|
version=5.4.9
|
|
release=2
|
|
source=(https://downloads.sourceforge.net/project/$name/$name/$version/$name-$version.tar.gz
|
|
qt6.patch)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
patch -p0 -i $SRC/qt6.patch
|
|
|
|
PKGMK_GNUPLOT='--with-qt=no'
|
|
prt-get isinst qt5 && PKGMK_GNUPLOT='--with-qt=qt5'
|
|
prt-get isinst qt6-5compat qt6-tools qt6-svg && PKGMK_GNUPLOT='--with-qt=qt6'
|
|
|
|
autoconf
|
|
./configure $PKGMK_GNUPLOT \
|
|
--prefix=/usr \
|
|
--libexecdir=/usr/lib
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
rm $PKG/usr/share/gnuplot/${version%.*}/js/README
|
|
}
|