|
|
# Otherwise it will be autodetected from /usr/src/linux. | # Otherwise it will be autodetected from /usr/src/linux. |
| |
inherit eutils | inherit eutils |
|
inherit flag-o-matic |
| |
DESCRIPTION="A 3D data visualization tool" | DESCRIPTION="A 3D data visualization tool" |
HOMEPAGE="http://www.opendx.org/" | 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. | # There are a few jar files that can be added to enhance JX. |
# These are java40.jar from the Netscape libraries | # These are java40.jar from the Netscape libraries |
|
|
KEYWORDS="~x86" | KEYWORDS="~x86" |
RESTRICT="fetch" | RESTRICT="fetch" |
| |
# HDF4 is not in portage yet, but HDF5 is. |
IUSE="hdf cdf netcdf tiff imagemagick" # java" |
# 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 | virtual/motif |
hdf? dev-libs/hdf |
hdf? ( dev-libs/hdf ) |
cdf? app-sci/cdf |
cdf? ( app-sci/cdf ) |
netcdf? app-sci/netcdf |
netcdf? ( app-sci/netcdf ) |
media-gfx/jasper |
media-libs/jasper |
imagemagick? >=media-gfx/imagemagick-5.3.3 |
tiff? ( media-libs/tiff ) |
tiff? media-libs/tiff |
imagemagick? ( >=media-gfx/imagemagick-5.3.4 )" |
java? virtual/jdk" |
# java support gives some trouble - deprecated api and other unresolved symbols |
|
# java? ( virtual/jdk |
# Waiting for this to work |
# dev-java/java-config )" |
#RDEPEND="${RDEPEND} |
|
# imagemagick? ( tiff? media-gfx/imagemagick[tiff] ) |
|
# similar w/ jpeg, png, mpeg, jbig |
|
| |
S=${WORKDIR}/${P/open} | S=${WORKDIR}/${P/open} |
| |
|
|
# If you are using Lesstif instead of Motif, you may need to create | # 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. | # symbolic links in /usr/include to /usr/X11R6/include/Xm and /usr/X11R/X11. |
| |
econf \ |
# with gcc 3.3.2 I had an infinite loop on src/exec/libdx/zclipQ.c |
`use_with hdf` \ |
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 |
|
# use java && myconf="${myconf} JNIPATH=$(java-config -O)/include:$(java-config -O)/include/linux" |
|
econf LIBS="-lsz" \ |
`use_with cdf` \ | `use_with cdf` \ |
`use_with netcdf` \ | `use_with netcdf` \ |
`use_with java javadx` \ |
`use_with hdf` \ |
`use_with imagemagick magick` \ |
|
`use_with tiff` \ | `use_with tiff` \ |
|
`use_with imagemagick magick` \ |
${myconf} || die | ${myconf} || die |
| |
# If you are using Lesstif, check include/dxconfig.h after you configure |
# `use_with java javadx` |
# to make sure USING_LESSTIF is set to 1 |
|
| |
emake || die | emake || die |
|
ARCH="${GENTOOARCH}" |
} | } |
| |
src_install() { | src_install() { |