Added recipe for gnuplot

This commit is contained in:
Vale
2015-12-08 15:05:20 -05:00
parent 147ac296fe
commit d89aadd17b
2 changed files with 90 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
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
}

View File

@@ -0,0 +1,27 @@
* Copyright 1986 - 1993, 1998, 2004 Thomas Williams, Colin Kelley
*
* Permission to use, copy, and distribute this software and its
* documentation for any purpose with or without fee is hereby granted,
* provided that the above copyright notice appear in all copies and
* that both that copyright notice and this permission notice appear
* in supporting documentation.
*
* Permission to modify the software is granted, but not the right to
* distribute the complete modified source code. Modifications are to
* be distributed as patches to the released version. Permission to
* distribute binaries produced by compiling modified sources is granted,
* provided you
* 1. distribute the corresponding source modifications from the
* released version in the form of a patch file along with the binaries,
* 2. add special version identification to distinguish your version
* in addition to the base release version number,
* 3. provide your name and address as the primary contact for the
* support of your modified version, and
* 4. retain our contact information in regard to use of the base
* software.
* Permission to distribute the released version of the source code along
* with corresponding source modifications in the form of a patch file is
* granted with same provisions 2 through 4 for binary distributions.
*
* This software is provided "as is" without express or implied warranty
* to the extent permitted by applicable law.