--- opendx-4.3.0.ebuild 2003-12-17 14:12:18.000000000 +0100 +++ opendx-4.3.2.ebuild 2003-12-17 12:19:31.000000000 +0100 @@ -7,10 +7,11 @@ # Otherwise it will be autodetected from /usr/src/linux. inherit eutils +inherit flag-o-matic DESCRIPTION="A 3D data visualization tool" HOMEPAGE="http://www.opendx.org/" -SRC_URI="${P/open}.tar.gz +SRC_URI="${P/open}.tar.gz" # There are a few jar files that can be added to enhance JX. # These are java40.jar from the Netscape libraries @@ -26,27 +27,14 @@ KEYWORDS="~x86" RESTRICT="fetch" -# HDF4 is not in portage yet, but HDF5 is. -# nor CDF (http://nssdc.gsfc.nasa.gov/cdf/cdf_home.html) -# nor jasper (http://www.ece.uvic.ca/~mdadams/jasper/) -# http://opendx.org/compiling-libs.html -# http://opendx.org/compiling-dx.html - -RDEPEND="virtual/x11 +DEPEND="virtual/x11 virtual/motif - hdf? dev-libs/hdf - cdf? app-sci/cdf - netcdf? app-sci/netcdf - media-gfx/jasper - imagemagick? >=media-gfx/imagemagick-5.3.3 - tiff? media-libs/tiff + dev-libs/hdf + app-sci/netcdf + media-libs/jasper + >=media-gfx/imagemagick-5.3.4 java? virtual/jdk" -# Waiting for this to work -#RDEPEND="${RDEPEND} -# imagemagick? ( tiff? media-gfx/imagemagick[tiff] ) -# similar w/ jpeg, png, mpeg, jbig - S=${WORKDIR}/${P/open} smp() { @@ -80,19 +68,21 @@ # If you are using Lesstif instead of Motif, you may need to create # symbolic links in /usr/include to /usr/X11R6/include/Xm and /usr/X11R/X11. - econf \ - `use_with hdf` \ - `use_with cdf` \ - `use_with netcdf` \ + # with gcc 3.3.2 I had an infinite loop on src/exec/libdx/zclipQ.c + append-flags -fno-strength-reduce + + # szlib is used by hdf package, have to link with it here aswell + + local GENTOOARCH="${ARCH}" + #opendx uses this variable + unset ARCH + econf LIBS="-lsz" \ + --disable-cdf \ `use_with java javadx` \ - `use_with imagemagick magick` \ - `use_with tiff` \ ${myconf} || die - # If you are using Lesstif, check include/dxconfig.h after you configure - # to make sure USING_LESSTIF is set to 1 - emake || die + ARCH="${GENTOOARCH}" } src_install() {