# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/games-fps/savagedemo/savagedemo-0.ebuild,v 1.2 2003/10/12 04:50:18 vapier Exp $ # Set SMP="no" to force disable of SMP compilation. # Set SMP="yes" to force enable of SMP compilation. # Otherwise it will be autodetected from /usr/src/linux. inherit eutils DESCRIPTION="A 3D data visualization tool" HOMEPAGE="http://www.opendx.org/" 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 # (we've provided them in the OpenDX.org lib area) nscosmop211.jar # from the Cosmo Player libs. # http://opendx.npaci.edu/libs/ #SRC_URI="${SRC_URI} # http://opendx.npaci.edu/libs/netscape-java40.tar.gz # http://opendx.npaci.edu/libs/cosmoplayer-jar.tar.gz" LICENSE="opendx" SLOT="0" 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 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 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() { has "$1" "${SMP}" } pkg_nofetch() { einfo "Please visit http://www.opendx.org/download.html" einfo "download the source code" einfo "and place ${A} in ${DISTDIR}" } src_compile() { local myconf="--with-x \ --host=${CHOST}" # More configure ideas # --enable-ddx --enable-shared # Check for SMP # This needs to be done for /usr/src/linux, NOT the running kernel # Allow override using smp(). if smp no ; then myconf="${myconf} --disable-smp-linux" elif smp yes || [ "`grep SMP /usr/src/linux/.config | cut -d= -f2`" = "y" ] ; then myconf="${myconf} --enable-smp-linux" else myconf="${myconf} --disable-smp-linux" fi # 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` \ `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 } src_install() { make DESTDIR=${D} install || die }