Files
haikuports/sci-visualization/gnuplot/gnuplot-5.0.1.recipe
2015-12-13 21:51:39 +03:00

79 lines
2.1 KiB
Bash

SUMMARY="Command-line driven graphing utility"
DESCRIPTION="Originally created to allow both students and scientists to \
visualize mathematical functions and data interactively, but has grown to \
support many non-interactive uses such as web scripting. It is also used \
as a plotting engine by third-party applications like Octave."
HOMEPAGE="http://www.gnuplot.info"
COPYRIGHT="1986 - 1993, 1998, 2004 Thomas Williams, Colin Kelley"
LICENSE="Gnuplot"
SOURCE_URI="http://downloads.sourceforge.net/gnuplot/gnuplot-$portVersion.tar.gz"
CHECKSUM_SHA256="7cbc557e71df581ea520123fb439dea5f073adcc9010a2885dc80d4ed28b3c47"
REVISION="3"
ARCHITECTURES="!x86_gcc2 ?x86"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
gnuplot$secondaryArchSuffix = $portVersion
cmd:gnuplot$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku${secondaryArchSuffix}
lib:libfontconfig$secondaryArchSuffix
lib:libfreetype$secondaryArchSuffix
lib:libgd$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
lib:libpng16$secondaryArchSuffix
lib:libqt5$secondaryArchSuffix
lib:libreadline$secondaryArchSuffix
lib:libvpx$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcairo$secondaryArchSuffix
# devel:libcerf$secondaryArchSuffix
devel:libGL$secondaryArchSuffix
devel:libgd$secondaryArchSuffix
devel:libjpeg$secondaryArchSuffix
# devel:libpango_1.0$secondaryArchSuffix
devel:libqt5$secondaryArchSuffix
devel:libreadline$secondaryArchSuffix
devel:libvpx$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:automake
cmd:autoconf
cmd:awk
cmd:cmp
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
PATCH()
{
sed -i 's/-lm/$(LIBS)/g' src/Makefile.am
sed -i 's/-rdynamic/-Wl,-export-dynamic/g' demo/plugin/Makefile.am
sed -i 's/isnan/std::isnan/g' src/qtterminal/qt_conversion.cpp
}
BUILD()
{
aclocal
automake
runConfigure ./configure --without-cairo --with-qt
make $jobArgs
}
INSTALL()
{
make install-strip
}