# $Id: Portfile 72959 2010-10-30 20:40:39Z jmr@macports.org $

PortSystem          1.0

name                k3dsurf
version             0.6.2
categories          math graphics science
maintainers         nomaintainer
description         Multidimensional surface visualizer
long_description \
    K3DSurf is a program to visualize and manipulate multidimensional \
    surfaces by using mathematical equations.  It's also a "modeler" for \
    POV-Ray in the area of parametric surfaces.

platforms           darwin
supported_archs     i386 ppc

homepage            http://k3dsurf.sourceforge.net/
master_sites        sourceforge

checksums           md5 a7328ffde8453bb8c9977e46eaa170e6 \
                    sha1 6e63885cbdd174dc0d9828bf0fc3723461ffb58e

depends_lib         port:qt3-mac

configure {
    system "cd ${worksrcpath} && qmake"
}

build.env           QTDIR=${prefix}

destroot {
    xinstall -m 755 -d ${destroot}${applications_dir}
    file copy ${worksrcpath}/bin/k3dsurf.app \
        ${destroot}${applications_dir}
}
