|
|
# 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. |
DEPEND="virtual/x11 |
# 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 |
|
virtual/motif | virtual/motif |
hdf? dev-libs/hdf |
dev-libs/hdf |
cdf? app-sci/cdf |
app-sci/netcdf |
netcdf? app-sci/netcdf |
media-libs/jasper |
media-gfx/jasper |
>=media-gfx/imagemagick-5.3.4 |
imagemagick? >=media-gfx/imagemagick-5.3.3 |
|
tiff? media-libs/tiff |
|
java? virtual/jdk" | 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} | S=${WORKDIR}/${P/open} |
| |
smp() { | smp() { |
|
|
# 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 |
`use_with cdf` \ |
|
`use_with netcdf` \ |
# 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 java javadx` \ |
`use_with imagemagick magick` \ |
|
`use_with tiff` \ |
|
${myconf} || die | ${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 | emake || die |
|
ARCH="${GENTOOARCH}" |
} | } |
| |
src_install() { | src_install() { |