summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2009-12-03 20:13:52 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2009-12-03 20:13:52 +0000
commit7eaf3b361c8be11648f9b7dba7844b2170e76b84 (patch)
tree1159fb7c14bb6d6aaaec60e9e568f7f2bac423aa /sci-visualization/opendx/opendx-4.4.4-r4.ebuild
parentUse correct function for users install. (diff)
downloadgentoo-2-7eaf3b361c8be11648f9b7dba7844b2170e76b84.tar.gz
gentoo-2-7eaf3b361c8be11648f9b7dba7844b2170e76b84.tar.bz2
gentoo-2-7eaf3b361c8be11648f9b7dba7844b2170e76b84.zip
Revision bump for the install paths according to bug #295395. Thanks Francois Bissey to follow-up
(Portage version: 2.2_rc54/cvs/Linux x86_64)
Diffstat (limited to 'sci-visualization/opendx/opendx-4.4.4-r4.ebuild')
-rw-r--r--sci-visualization/opendx/opendx-4.4.4-r4.ebuild81
1 files changed, 81 insertions, 0 deletions
diff --git a/sci-visualization/opendx/opendx-4.4.4-r4.ebuild b/sci-visualization/opendx/opendx-4.4.4-r4.ebuild
new file mode 100644
index 000000000000..f6caebf6864b
--- /dev/null
+++ b/sci-visualization/opendx/opendx-4.4.4-r4.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/opendx/opendx-4.4.4-r4.ebuild,v 1.1 2009/12/03 20:13:51 bicatali Exp $
+
+EAPI=2
+
+inherit eutils flag-o-matic autotools
+
+DESCRIPTION="A 3D data visualization tool"
+HOMEPAGE="http://www.opendx.org/"
+SRC_URI="http://opendx.sdsc.edu/source/${P/open}.tar.gz"
+
+LICENSE="IPL-1"
+SLOT="0"
+
+KEYWORDS="~amd64 ~ppc ~x86"
+
+IUSE="hdf cdf netcdf tiff imagemagick szip smp"
+
+DEPEND="x11-libs/libXmu
+ x11-libs/libXi
+ x11-libs/libXp
+ x11-libs/libXpm
+ x11-libs/openmotif
+ szip? ( sci-libs/szip )
+ hdf? ( sci-libs/hdf )
+ cdf? ( sci-libs/cdf )
+ netcdf? ( sci-libs/netcdf )
+ tiff? ( media-libs/tiff )
+ imagemagick? ( >=media-gfx/imagemagick-5.3.4[-hdri] )"
+
+RDEPEND="${DEPEND}"
+# waiting on bug #36349 for media-libs/jasper in imagemagick
+
+S="${WORKDIR}/${P/open}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-4.3.2-sys.h.patch"
+ epatch "${FILESDIR}/${P}-installpaths.patch"
+ epatch "${FILESDIR}/${P}-xdg.patch"
+ epatch "${FILESDIR}/${P}-gcc43.patch"
+ epatch "${FILESDIR}/${P}-dx-errno.patch"
+ epatch "${FILESDIR}/${P}-libtool.patch"
+ epatch "${FILESDIR}/${P}-concurrent-make-fix.patch"
+ epatch "${FILESDIR}/${P}-open.patch"
+ epatch "${FILESDIR}/${P}-szip.patch"
+ epatch "${FILESDIR}/${P}-null.patch"
+ 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 \
+ --libdir=/usr/$(get_libdir) \
+ --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() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ newicon src/uipp/ui/icon50.xpm ${PN}.xpm
+ make_desktop_entry dx "Open Data Explorer" ${PN}.xpm
+}