Files
haikuports/sci-visualization/gnuplot/gnuplot-5.0.1.recipe
2015-12-08 15:05:20 -05:00

64 lines
1.6 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="1"
ARCHITECTURES="x86_gcc2 ?x86"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
gnuplot$secondaryArchSuffix = $portVersion
cmd:gnuplot$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku${secondaryArchSuffix}
#libqt4$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
#libqt4${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:automake
cmd:autoconf
cmd:awk
cmd:cmp
cmd:gcc$secondaryArchSuffx
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
PATCH()
{
# remove hardcoded libm
sed -i 's/-lm/$(LIBS)/g' src/Makefile.am
}
BUILD()
{
#TODO: add Qt4 support (needs gcc4)
aclocal
automake
# work around for a gcc4 bug (output_operand_lossage)
export CFLAGS=-O3
runConfigure ./configure --without-cairo
make $jobArgs
}
INSTALL()
{
make install
}