# $Id: Portfile,v 1.1 2006/03/18 23:07:57 markd Exp $

PortSystem		1.0
name			blender
version			2.41
categories		graphics games
platforms		darwin
maintainers		darwinports@opendarwin.org
description		3D modeler / renderer
long_description	Blender, the open source software for 3D modeling, \
			animation, rendering, post-production, interactive \
			creation and playback.

homepage		http://blender.org
master_sites		ftp://ftp.cs.umn.edu/pub/blender.org/release/Blender2.41/
checksums		md5 6c95f2cb291f666fea457dc4a1224bdb

depends_lib             port:expat \
                        port:fontconfig \
                        port:freetype \
			port:jpeg \
			port:libpng \
			port:libsdl \
			port:python24 \
			port:glut \
			port:ftgl

distname		blender-2.41-OSX-10.3-py2.4-powerpc
use_zip			yes

configure		{}
build			{}

destroot {
        set appPath ${destroot}/Applications/DarwinPorts
        cd ${worksrcpath}
        xinstall -d -m 0755 ${appPath}
        system "ditto -v blender.app ${appPath}/blender.app"
        system "ditto -v blenderplayer.app ${appPath}/blenderplayer.app"
}

post-activate {
ui_msg "\n

NOTE: 	If you don't have a /Library/Frameworks/Python.framework/ directory,
	you will need to make a symlink to the DarwinPorts Python 2.4 Framework
	or blender will not run:

cd /Library/Frameworks
ln -s ${prefix}/Library/Frameworks/Python.framework/ Python.framework
\n"
}
