2003-03-04 19:34:58 +00:00
|
|
|
# New ports collection makefile for: blender
|
|
|
|
# Date created: 27 Feb 2003
|
|
|
|
# Whom: David Yeske <dyeske@yahoo.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= blender
|
2007-02-27 08:20:14 +00:00
|
|
|
PORTVERSION= 2.43
|
2007-05-19 20:36:56 +00:00
|
|
|
PORTREVISION= 2
|
2003-03-04 19:34:58 +00:00
|
|
|
CATEGORIES= graphics games
|
2006-01-08 12:03:08 +00:00
|
|
|
MASTER_SITES= http://download.blender.org/source/ \
|
|
|
|
ftp://ftp.cs.umn.edu/pub/blender.org/source/ \
|
|
|
|
http://public.planetmirror.com/pub/blender/source/
|
2003-03-04 19:34:58 +00:00
|
|
|
PKGNAMESUFFIX= -devel
|
|
|
|
|
|
|
|
MAINTAINER= dyeske@yahoo.com
|
|
|
|
COMMENT= 3D modeling/rendering/animation/gaming package
|
|
|
|
|
2006-10-04 05:44:57 +00:00
|
|
|
BUILD_DEPENDS= ${X11BASE}/lib/libftgl.a:${PORTSDIR}/graphics/ftgl
|
2003-03-04 19:34:58 +00:00
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
2004-08-26 15:56:07 +00:00
|
|
|
freetype.9:${PORTSDIR}/print/freetype2 \
|
2006-01-08 12:03:08 +00:00
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
2006-09-27 13:09:06 +00:00
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff \
|
|
|
|
SDL.11:${PORTSDIR}/devel/sdl12 \
|
o Update to 1.4.0
o Chase libraries version bump to depending on this port.
[NOTE]
I disabled FLTK support, so you can't use OpenEXR's applications.
Because I'm validating FLTK support.
Spotted by: Nikolaj Thygesen <nikolaj.thygesen <@> diamondbox.dk>
Obtained from: Florian Kainz <kainz <@> ilm.com>
Committed at: AsiaBSDCon 2007 in Tokyo, Japan
Memorial Committing with:
bushman, kuriyama, hrs, gnn, nobutaka, nyan, motoyuki, metal,
simokawa, akiyama, ume, rwatson, pjd, mckusick, takawata,
murray, cjh, brooks, daichi, delphij, ups, rrs
2007-03-11 08:50:26 +00:00
|
|
|
Half.4:${PORTSDIR}/graphics/OpenEXR \
|
2007-02-27 08:20:14 +00:00
|
|
|
openal.0:${PORTSDIR}/audio/openal \
|
|
|
|
alut.1:${PORTSDIR}/audio/freealut \
|
2007-05-25 17:08:35 +00:00
|
|
|
avutil.1:${PORTSDIR}/multimedia/ffmpeg
|
2003-03-04 19:34:58 +00:00
|
|
|
|
2004-02-06 13:12:53 +00:00
|
|
|
PLIST_FILES= bin/blender
|
2003-03-04 19:34:58 +00:00
|
|
|
USE_X_PREFIX= yes
|
2007-03-21 12:36:05 +00:00
|
|
|
USE_GETTEXT= yes
|
2007-02-27 08:20:14 +00:00
|
|
|
USE_PYTHON= 2.4+
|
2004-03-08 01:01:31 +00:00
|
|
|
USE_SDL= sdl
|
2003-12-19 05:55:35 +00:00
|
|
|
USE_GL= yes
|
2007-02-27 08:20:14 +00:00
|
|
|
USE_GMAKE= yes
|
2003-03-04 19:34:58 +00:00
|
|
|
|
|
|
|
.if defined(WITH_OPTIMIZED_CFLAGS)
|
|
|
|
CFLAGS+= -O3 -ffast-math
|
|
|
|
.endif
|
|
|
|
|
2005-05-07 03:05:08 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-02-27 08:20:14 +00:00
|
|
|
ONLY_FOR_ARCHS= i386
|
2006-09-27 13:39:41 +00:00
|
|
|
|
2003-03-04 19:34:58 +00:00
|
|
|
pre-everything::
|
|
|
|
.if !defined(WITH_OPTIMIZED_CFLAGS)
|
|
|
|
@${ECHO_MSG} "You can enable additional compilation optimizations"
|
|
|
|
@${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS"
|
|
|
|
.endif
|
|
|
|
|
2007-02-27 08:20:14 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|sdl11-config|${SDL_CONFIG}|; \
|
|
|
|
s|2.3|${PYTHON_VER}|' \
|
|
|
|
${WRKSRC}/source/nan_definitions.mk
|
|
|
|
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|gcc|${CC}|; \
|
|
|
|
s|g++|${CXX}|; \
|
|
|
|
s|-O2|${CFLAGS}|; \
|
|
|
|
s|-DGAMEBLENDER=1||; \
|
|
|
|
s|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|' \
|
|
|
|
${WRKSRC}/source/nan_compile.mk
|
|
|
|
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|-lc_r||; \
|
|
|
|
s|-pthread|${PTHREAD_LIBS}|' \
|
|
|
|
${WRKSRC}/source/nan_link.mk
|
|
|
|
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|-FIX_NAN_WARN||' \
|
|
|
|
${WRKSRC}/source/nan_warn.mk
|
|
|
|
|
2004-08-26 15:56:07 +00:00
|
|
|
do-install:
|
2007-02-27 08:20:14 +00:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/obj/freebsd/bin/blender ${PREFIX}/bin
|
2003-03-04 19:34:58 +00:00
|
|
|
|
2005-05-07 03:05:08 +00:00
|
|
|
.include <bsd.port.post.mk>
|