You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
2.0 KiB
89 lines
2.0 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
7 years ago
|
EAPI=6
|
||
13 years ago
|
|
||
12 years ago
|
MYP=dx-${PV}
|
||
7 years ago
|
|
||
|
inherit autotools eutils flag-o-matic
|
||
13 years ago
|
|
||
12 years ago
|
DESCRIPTION="3D data visualization tool"
|
||
13 years ago
|
HOMEPAGE="http://www.opendx.org/"
|
||
7 years ago
|
SRC_URI="http://opendx.sdsc.edu/source/${MYP}.tar.gz
|
||
|
https://dev.gentoo.org/~soap/distfiles/${PN}-4.4.4_p20160917-fix-c++14.patch.bz2"
|
||
13 years ago
|
|
||
|
LICENSE="IBM"
|
||
|
SLOT="0"
|
||
6 years ago
|
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
|
||
13 years ago
|
IUSE="hdf cdf netcdf tiff imagemagick szip smp"
|
||
|
|
||
6 years ago
|
RDEPEND="
|
||
|
x11-libs/libX11
|
||
|
x11-libs/libXmu
|
||
13 years ago
|
x11-libs/libXpm
|
||
6 years ago
|
x11-libs/libXt
|
||
12 years ago
|
>=x11-libs/motif-2.3:0
|
||
13 years ago
|
virtual/opengl
|
||
|
virtual/glu
|
||
8 years ago
|
szip? ( virtual/szip )
|
||
13 years ago
|
hdf? ( sci-libs/hdf )
|
||
|
cdf? ( sci-libs/cdf )
|
||
|
netcdf? ( sci-libs/netcdf )
|
||
7 years ago
|
tiff? ( media-libs/tiff:0 )
|
||
|
imagemagick? ( virtual/imagemagick-tools )"
|
||
13 years ago
|
|
||
12 years ago
|
DEPEND="${RDEPEND}
|
||
|
virtual/pkgconfig"
|
||
|
|
||
|
S="${WORKDIR}/${MYP}"
|
||
7 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}/${PN}-4.3.2-sys.h.patch"
|
||
|
"${FILESDIR}/${P}-installpaths.patch"
|
||
|
"${FILESDIR}/${P}-xdg.patch"
|
||
|
"${FILESDIR}/${P}-gcc43.patch"
|
||
|
"${FILESDIR}/${P}-dx-errno.patch"
|
||
|
"${FILESDIR}/${P}-libtool.patch"
|
||
|
"${FILESDIR}/${P}-concurrent-make-fix.patch"
|
||
|
"${FILESDIR}/${P}-open.patch"
|
||
|
"${FILESDIR}/${P}-szip.patch"
|
||
|
"${FILESDIR}/${P}-null.patch"
|
||
6 years ago
|
"${FILESDIR}/${P}-invalid-conversion.patch"
|
||
7 years ago
|
"${WORKDIR}/${PN}-4.4.4_p20160917-fix-c++14.patch"
|
||
|
)
|
||
13 years ago
|
|
||
|
src_prepare() {
|
||
7 years ago
|
default
|
||
13 years ago
|
eautoreconf
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
# check flag filtering
|
||
|
# with gcc 3.3.2 I had an infinite loop on src/exec/libdx/zclipQ.c
|
||
|
append-flags -fno-strength-reduce
|
||
|
|
||
|
# (#82672)
|
||
|
filter-flags -finline-functions
|
||
|
replace-flags -O3 -O2
|
||
|
|
||
|
# opendx uses this variable
|
||
|
unset ARCH
|
||
|
|
||
|
# javadx is currently broken. we may try to fix it someday.
|
||
|
econf \
|
||
|
--with-x \
|
||
|
--without-javadx \
|
||
|
$(use_with szip szlib) \
|
||
|
$(use_with cdf) \
|
||
|
$(use_with netcdf) \
|
||
|
$(use_with hdf) \
|
||
|
$(use_with tiff) \
|
||
|
$(use_with imagemagick magick) \
|
||
|
$(use_enable smp smp-linux)
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
12 years ago
|
default
|
||
13 years ago
|
newicon src/uipp/ui/icon50.xpm ${PN}.xpm
|
||
|
make_desktop_entry dx "Open Data Explorer"
|
||
|
}
|