# New ports collection makefile for:    blender
# Date created:         14 November 2000
# Whom:                 Jimmy Olgeni <olgeni@uli.it>
#
# $FreeBSD$
#

PORTNAME=	blender
PORTVERSION=	2.04
CATEGORIES=	graphics
MASTER_SITES=	ftp://ftp.blender.nl/pub/
DISTNAME=	blender${PORTVERSION}-freebsd-3.4-i386-static

MAINTAINER=	freebsd-admin@blender.nl

USE_X_PREFIX=	YES
NO_CDROM=	"Commercial distribution prohibited"
NO_BUILD=	YES
ONLY_FOR_ARCHS=	i386

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/blender ${PREFIX}/bin
	${MKDIR} ${PREFIX}/share/doc/blender
	${MKDIR} ${PREFIX}/lib/blender/plugins/texture \
		${PREFIX}/lib/blender/plugins/sequence
.for SEQ in blur.so scatter.so showzbuf.so
	${INSTALL_PROGRAM} ${WRKSRC}/plugins/sequence/${SEQ} \
		${PREFIX}/lib/blender/plugins/sequence
.endfor
.for TEXT in clouds2.so tiles.so
	${INSTALL_PROGRAM} ${WRKSRC}/plugins/texture/${TEXT} \
		${PREFIX}/lib/blender/plugins/texture
.endfor
.if !defined(NOPORTDOCS)
	${MKDIR} ${PREFIX}/share/doc/blender
	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/blender
	${INSTALL_DATA} ${WRKSRC}/copyright.txt ${PREFIX}/share/doc/blender
.endif

.include <bsd.port.mk>
