* Update to 2.31a

* Re-add OpenAL support
* USE_MESA -> USE_GL

PR:		60388
Submitted by:	maintainer
This commit is contained in:
Joe Marcus Clarke 2003-12-19 05:55:35 +00:00
parent cb31ceb490
commit 6dbfcfd92f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=96183
2 changed files with 25 additions and 15 deletions

View file

@ -5,7 +5,7 @@
# $FreeBSD$
PORTNAME= blender
PORTVERSION= 2.28c
PORTVERSION= 2.31a
CATEGORIES= graphics games
MASTER_SITES= http://download.blender.org/source/
PKGNAMESUFFIX= -devel
@ -23,16 +23,35 @@ USE_LIBTOOL= yes
USE_GMAKE= yes
USE_PYTHON= yes
USE_SDL= yes
USE_MESA= yes
USE_GL= yes
CONFIGURE_ARGS= --disable-oggtest --disable-vorbistest --disable-sdltest
CONFIGURE_ARGS= --with-sdl=${LOCALBASE} --disable-oggtest --disable-vorbistest --disable-sdltest
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${X11BASE}/include -I${LOCALBASE}/include"
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS} -I${X11BASE}/include -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS} -L${LOCALBASE}/lib -L${X11BASE}/lib"
.if defined(WITH_OPTIMIZED_CFLAGS)
CFLAGS+= -O3 -ffast-math
.endif
.if exists(${LOCALBASE}/lib/libfreetype.so.9) && !defined(WITHOUT_FREETYPE)
WITH_FREETYPE= yes
.endif
.if exists(${LOCALBASE}/lib/libopenal.so) && !defined(WITHOUT_OPENAL)
WITH_OPENAL= yes
.endif
.if defined(WITH_FREETYPE)
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
CONFIGURE_ARGS+= --with-freetype2=${LOCALBASE}
.endif
.if defined(WITH_OPENAL)
LIB_DEPENDS+= openal.0:${PORTSDIR}/audio/openal
CONFIGURE_ARGS+= --enable-openal
.endif
pre-everything::
.if !defined(WITH_OPTIMIZED_CFLAGS)
@${ECHO_MSG} "You can enable additional compilation optimizations"
@ -47,7 +66,7 @@ post-patch:
@${REINPLACE_CMD} -E -e \
's|^program_transform_name.+$$||; \
s| -DFreeBSD||; \
s|-lSDL|-lSDL-1.1 -L${X11BASE}/lib|' \
s|-lSDL|-lSDL-1.1|' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
@${REINPLACE_CMD} -e \
@ -55,13 +74,4 @@ post-patch:
${WRKSRC}/source/blender/python/api2_2x/Makefile.in \
${WRKSRC}/source/blender/python/Makefile.in
post-configure:
@${FIND} ${WRKSRC} -name "Makefile" | \
${XARGS} ${REINPLACE_CMD} -e \
's|-lesd||; \
s|-lsmpeg||; \
s|-lvorbisfile||; \
s|-lvorbis||; \
s|-logg||'
.include <bsd.port.mk>

View file

@ -1 +1 @@
MD5 (blender-2.28c.tar.bz2) = b1e00a4d8f63ca2a7598e20c89a0b7fd
MD5 (blender-2.31a.tar.bz2) = 834d9236b233951d854b02f7cd3721fb