1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools flag-o-matic
8 DESCRIPTION="2D and 3D data visualization and analysis program"
9 HOMEPAGE="https://github.com/gsteele13/spyview"
11 if [[ ${PV} == *9999* ]] ; then
13 EGIT_REPO_URI="https://github.com/gsteele13/spyview.git"
15 SRC_URI="https://github.com/gsteele13/spyview/archive/710b9ddb6aa00fada1a758d42b57b75f92bb32a7.tar.gz -> ${P}.tgz"
24 >=dev-libs/boost-1.62.0:=
26 x11-libs/fltk:1[opengl]
27 app-text/ghostscript-gpl
31 DEPEND="${COMMON_DEPEND}
34 RDEPEND="${COMMON_DEPEND}
35 sci-visualization/gnuplot"
38 if [[ ${PV} == *9999* ]] ; then
40 S="${WORKDIR}/${P}/source"
43 mv -v "${WORKDIR}"/spyview-*/source "${S}" || die
48 append-cflags $(fltk-config --cflags)
49 append-cxxflags $(fltk-config --cxxflags)
51 append-cxxflags -std=c++14
53 append-cppflags -I"${EPREFIX}"/usr/include/netpbm
55 # append-ldflags $(fltk-config --ldflags)
56 # this one leads to an insane amount of warnings
57 append-ldflags -L$(dirname $(fltk-config --libs))
59 while IFS="" read -d $'\0' -r file; do
60 sed -i -e 's:-mwindows -mconsole::g' "$file" || die
61 done < <(find "${S}" -name Makefile.am -print0)
63 if [[ ${PV} == *9999* ]] ; then