From d89aadd17bf1458a2103ffaf1a1574a21072b5d6 Mon Sep 17 00:00:00 2001 From: Vale Date: Tue, 8 Dec 2015 15:05:20 -0500 Subject: [PATCH] Added recipe for gnuplot --- .../gnuplot/gnuplot-5.0.1.recipe | 63 +++++++++++++++++++ sci-visualization/gnuplot/licenses/Gnuplot | 27 ++++++++ 2 files changed, 90 insertions(+) create mode 100644 sci-visualization/gnuplot/gnuplot-5.0.1.recipe create mode 100644 sci-visualization/gnuplot/licenses/Gnuplot diff --git a/sci-visualization/gnuplot/gnuplot-5.0.1.recipe b/sci-visualization/gnuplot/gnuplot-5.0.1.recipe new file mode 100644 index 000000000..df455ef3b --- /dev/null +++ b/sci-visualization/gnuplot/gnuplot-5.0.1.recipe @@ -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 +} diff --git a/sci-visualization/gnuplot/licenses/Gnuplot b/sci-visualization/gnuplot/licenses/Gnuplot new file mode 100644 index 000000000..634c335ff --- /dev/null +++ b/sci-visualization/gnuplot/licenses/Gnuplot @@ -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.