- Update to 2.45

- Fix build with amd64

PR:		ports/116936
Submitted by:	David Yeske <dyeske@gmail.com>,
		thierry (PR)
Approved by:	sat (mentor)
This commit is contained in:
Beech Rintoul 2007-10-29 21:11:28 +00:00
parent caf0339c6a
commit b51bae9300
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=202355
4 changed files with 30 additions and 37 deletions

View file

@ -5,10 +5,11 @@
# $FreeBSD$
PORTNAME= blender
PORTVERSION= 2.44.1
PORTREVISION= 1
PORTVERSION= 2.45
CATEGORIES= graphics games
MASTER_SITES= CENKES
MASTER_SITES= http://download.blender.org/source/ \
http://mirror.cs.umn.edu/blender.org/source/ \
http://public.planetmirror.com/pub/blender/source/
MAINTAINER= dyeske@gmail.com
COMMENT= 3D modeling/rendering/animation/gaming package
@ -23,7 +24,6 @@ LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
alut.1:${PORTSDIR}/audio/freealut \
avutil.1:${PORTSDIR}/multimedia/ffmpeg
CONFLICTS= blender-devel-[0-9]*
PLIST_FILES= bin/blender
USE_XORG= x11 xext xmu xi
USE_GETTEXT= yes
@ -44,16 +44,26 @@ OPTIONS= OCFLAGS "With Optimized Cflags" off \
MAKE_ENV+= NAN_CPPFLAGS="-I${LOCALBASE}/include/freetype2 \
-I${LOCALBASE}/include \
-I${LOCALBASE}/include/OpenEXR \
-I${PYTHON_INCLUDEDIR}"
MAKE_ENV+= NAN_FREETYPE="${LOCALBASE}"
MAKE_ENV+= NAN_OPENEXR="${LOCALBASE}"
MAKE_ENV+= WITH_BF_BLENDERPLAYER="false"
-I${PYTHON_INCLUDEDIR}/"
MAKE_ENV+= NAN_FREETYPE="${LOCALBASE}/"
MAKE_ENV+= NAN_OPENEXR="${LOCALBASE}/"
MAKE_ENV+= NAN_OPENAL="${LOCALBASE}/"
.if defined(WITH_OCFLAGS)
CFLAGS+= -O3 -ffast-math
.endif
post-patch:
.if ${ARCH} == "amd64"
MAKE_ENV+= NAN_NO_KETSJI="true"
MAKE_ENV+= WITH_BF_BLENDERGAMEENGINE="false"
MAKE_ENV+= WITH_BF_BLENDERPLAYER="false"
.else
MAKE_ENV+= WITH_BF_BLENDERGAMEENGINE="true"
MAKE_ENV+= WITH_BF_OPENAL="true"
MAKE_ENV+= WITH_BF_BLENDERPLAYER="true"
.endif
pre-configure:
@${REINPLACE_CMD} -e \
's|sdl11-config|${SDL_CONFIG}|; \
s|2.3|${PYTHON_VER}|' \
@ -79,7 +89,7 @@ post-patch:
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/obj/freebsd/bin/blender ${PREFIX}/bin
.if !defined(WITH_NOPORTDOCS)
@${MV} ${WRKSRC}/README ${WRKSRC}/doc/
@${CP} -p ${WRKSRC}/README ${WRKSRC}/doc/
@${INSTALL} -d ${DOCSDIR}/
@cd ${WRKSRC}/doc/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif

View file

@ -1,3 +1,3 @@
MD5 (blender-2.44.1.tar.gz) = 926d6ca3f0b1b4aeaa75a2b1767dc2a3
SHA256 (blender-2.44.1.tar.gz) = 8d682ece9ce8ef15cffb5bb16e9099b11bef4c0eb3efae9b352853d58406b317
SIZE (blender-2.44.1.tar.gz) = 14743807
MD5 (blender-2.45.tar.gz) = 1358ca481b7f2b8eadd3327ebbd563ef
SHA256 (blender-2.45.tar.gz) = 921f72a15d4076f62e52674337f5d3a90cd7a82675b12bb549ebe6cd5c9027ae
SIZE (blender-2.45.tar.gz) = 14226829

View file

@ -1,5 +1,5 @@
--- source/nan_definitions.mk.orig Wed Nov 22 11:05:35 2006
+++ source/nan_definitions.mk Wed Mar 21 21:24:37 2007
--- source/nan_definitions.mk.orig Tue Sep 18 06:58:49 2007
+++ source/nan_definitions.mk Thu Oct 4 22:00:38 2007
@@ -55,9 +55,9 @@
export NAN_LIBDIR ?= $(NANBLENDERHOME)/../lib
export NAN_OBJDIR ?= $(NANBLENDERHOME)/obj
@ -10,22 +10,5 @@
- export OCGDIR = $(NAN_OBJDIR)/$(CONFIG_GUESS)
+ export OCGDIR = $(NAN_OBJDIR)/freebsd
export NAN_MOTO ?= $(LCGDIR)/moto
ifeq ($(FREE_WINDOWS), true)
@@ -132,7 +132,7 @@
export NAN_OPENEXR_LIBS ?= $(NAN_OPENEXR)/lib/libIlmImf.a $(NAN_OPENEXR)/lib/libHalf.a $(NAN_OPENEXR)/lib/libIex.a
else
export NAN_OPENEXR ?= /usr/local
- export NAN_OPENEXR_LIBS ?= $(NAN_OPENEXR)/lib/libIlmImf.a $(NAN_OPENEXR)/lib/libHalf.a $(NAN_OPENEXR)/lib/libIex.a
+ export NAN_OPENEXR_LIBS ?= $(NAN_OPENEXR)/lib/libIlmImf.a $(NAN_OPENEXR)/lib/libIlmThread.a $(NAN_OPENEXR)/lib/libHalf.a $(NAN_OPENEXR)/lib/libIex.a
endif
endif
export NAN_OPENEXR_INC ?= -I$(NAN_OPENEXR)/include -I$(NAN_OPENEXR)/include/OpenEXR
@@ -291,6 +291,7 @@
# enable freetype2 support for text objects
# export WITH_FREETYPE2 ?= true
+ export NAN_NO_KETSJI=true
else
ifeq ($(OS),irix)
# Determines what targets are built
export WITH_BF_DYNAMICOPENGL ?= true

View file

@ -1,5 +1,5 @@
--- user-def.mk.orig 1969-12-31 14:00:00.000000000 -1000
+++ user-def.mk 2007-08-07 00:38:53.000000000 -0800
--- ./user-def.mk.orig Thu Oct 4 22:55:33 2007
+++ ./user-def.mk Thu Oct 4 22:56:26 2007
@@ -0,0 +1,74 @@
+export NAN_DEBUG=-g
+
@ -44,7 +44,7 @@
+ export WITH_FFMPEG=false
+ export NAN_PYTHON=/usr/local
+ export NAN_PYTHON_VERSION=2.5
+ export NAN_OPENAL=/usr
+ #export NAN_OPENAL=/usr
+ export NAN_FMOD=/usr/local
+ export NAN_JPEG=/usr/local
+ export NAN_PNG=/usr/local