summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-12-19 05:55:35 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-12-19 05:55:35 +0000
commit6dbfcfd92fb4c01ad65d8220618575ffeece39e9 (patch)
treefec7647bf434119f6cd0ee9e7cca21a12cd00309 /graphics
parentFix the version info so the port/package tools recognize this as (diff)
* Update to 2.31a
* Re-add OpenAL support * USE_MESA -> USE_GL PR: 60388 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=96183
Diffstat (limited to 'graphics')
-rw-r--r--graphics/blender-devel/Makefile38
-rw-r--r--graphics/blender-devel/distinfo2
2 files changed, 25 insertions, 15 deletions
diff --git a/graphics/blender-devel/Makefile b/graphics/blender-devel/Makefile
index e340adb9d24a..8dc109e49087 100644
--- a/graphics/blender-devel/Makefile
+++ b/graphics/blender-devel/Makefile
@@ -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>
diff --git a/graphics/blender-devel/distinfo b/graphics/blender-devel/distinfo
index e7ab3fdc6467..af773278e596 100644
--- a/graphics/blender-devel/distinfo
+++ b/graphics/blender-devel/distinfo
@@ -1 +1 @@
-MD5 (blender-2.28c.tar.bz2) = b1e00a4d8f63ca2a7598e20c89a0b7fd
+MD5 (blender-2.31a.tar.bz2) = 834d9236b233951d854b02f7cd3721fb