# $Id: $

PortSystem      1.0
name            k3d
version         0.5.0.32
revision        2
categories      graphics
platforms       darwin
maintainers     dpollet@users.sf.net
description     3D modeling, animation and rendering system

long_description \
                K-3D is a complete free-as-in-freedom 3D modeling, animation \
                and rendering system. It features a robust, object oriented \
                plugin architecture, designed to scale to the needs of \
                professional artists. It is designed from the ground up to \
                generate motion picture quality animation using RenderMan \
                compliant render engines.

depends_lib     lib:libgtkmm:gtkmm \
                lib:libgtkglext:gtkglext \
                lib:librsvg:librsvg \
                lib:libxml2:libxml2

homepage		http://k3d.sourceforge.net/
master_sites	sourceforge
master_sites.mirror_subdir ${name}
distfiles		${name}-${version}${extract.suffix}
checksums		md5 11808a994c87398dc74dae7e59089081

patchfiles      patch-application-k3d-in.diff \
                patch-application-Makefile-am.diff \
                patch-bootstrap.diff \
                patch-k3dsdk-type_info-h.diff \
                patch-ngui-object_properties-cpp.diff \
                patch-renderframe-Makefile-am.diff \
                patch-renderjob-Makefile-am.diff \
                patch-sl2xml-Makefile-am.diff
                
use_automake yes
use_autoconf yes

pre-configure {
    system "cd ${worksrcpath} && ./bootstrap"
}

configure.env	CPPFLAGS=-I/opt/local/include
                    
configure.args  --prefix=${prefix} \
                --with-libxml2 \
                --without-svg-icons \
                --without-docbook \
                --without-gnome \
                --without-gts \
                --without-imagemagick \
                --without-openexr \
                --without-plib \
                --without-png \
                --without-python \
                --without-superlu
