aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/blender-devel
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2003-12-19 13:55:35 +0800
committermarcus <marcus@FreeBSD.org>2003-12-19 13:55:35 +0800
commite2d142886451dbb2a33836841448f2e6b9ea0940 (patch)
tree96564da5faa237ccbf178ec99b51645e90074654 /graphics/blender-devel
parentaf2afeadf9b149e52ab63e2672d8a32140cca566 (diff)
downloadfreebsd-ports-gnome-e2d142886451dbb2a33836841448f2e6b9ea0940.tar.gz
freebsd-ports-gnome-e2d142886451dbb2a33836841448f2e6b9ea0940.tar.zst
freebsd-ports-gnome-e2d142886451dbb2a33836841448f2e6b9ea0940.zip
* Update to 2.31a
* Re-add OpenAL support * USE_MESA -> USE_GL PR: 60388 Submitted by: maintainer
Diffstat (limited to 'graphics/blender-devel')
-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