diff options
author | lioux <lioux@FreeBSD.org> | 2003-03-05 03:34:58 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2003-03-05 03:34:58 +0800 |
commit | 40af68657dd571ee9aac272911b5093392e1bb37 (patch) | |
tree | a9c8a13a1edb4e2a0667b89bec0e7d17ac03b44a /graphics/blender-devel | |
parent | defbf7b1a115a8d9f5f0b22bbcf01c333049c8bb (diff) | |
download | freebsd-ports-gnome-40af68657dd571ee9aac272911b5093392e1bb37.tar.gz freebsd-ports-gnome-40af68657dd571ee9aac272911b5093392e1bb37.tar.zst freebsd-ports-gnome-40af68657dd571ee9aac272911b5093392e1bb37.zip |
o New port blender-devel version 2.26: 3D
modeling/rendering/animation/gaming package
o Now, users can compile blender from source code
PR: 48863
Submitted by: David Yeske <dyeske@yahoo.com>
Diffstat (limited to 'graphics/blender-devel')
-rw-r--r-- | graphics/blender-devel/Makefile | 90 | ||||
-rw-r--r-- | graphics/blender-devel/distinfo | 1 | ||||
-rw-r--r-- | graphics/blender-devel/files/patch-extern_ode_Makefile | 13 | ||||
-rw-r--r-- | graphics/blender-devel/files/patch-intern_python_freeze_freeze.py | 11 | ||||
-rw-r--r-- | graphics/blender-devel/files/patch-source_creator_creator.c | 10 | ||||
-rw-r--r-- | graphics/blender-devel/pkg-descr | 7 | ||||
-rw-r--r-- | graphics/blender-devel/pkg-plist | 5 |
7 files changed, 137 insertions, 0 deletions
diff --git a/graphics/blender-devel/Makefile b/graphics/blender-devel/Makefile new file mode 100644 index 000000000000..7dc5a46bde75 --- /dev/null +++ b/graphics/blender-devel/Makefile @@ -0,0 +1,90 @@ +# New ports collection makefile for: blender +# Date created: 27 Feb 2003 +# Whom: David Yeske <dyeske@yahoo.com> +# +# $FreeBSD$ + +PORTNAME= blender +PORTVERSION= 2.26 +CATEGORIES= graphics games +MASTER_SITES= http://download.blender.org/source/ +PKGNAMESUFFIX= -devel + +MAINTAINER= dyeske@yahoo.com +COMMENT= 3D modeling/rendering/animation/gaming package + +LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \ + nspr4.1:${PORTSDIR}/devel/nspr \ + openal.0:${PORTSDIR}/audio/openal \ + png.5:${PORTSDIR}/graphics/png + +USE_X_PREFIX= yes +USE_BZIP2= yes +USE_REINPLACE= yes +USE_GMAKE= yes +USE_PYTHON= yes + +.if defined(WITH_OPTIMIZED_CFLAGS) +CFLAGS+= -O3 -ffast-math +.endif + +PLUGIN_DIR?= lib/mozilla/plugins +PLIST_SUB= PLUGIN_DIR=${PLUGIN_DIR} + +pre-everything:: +.if !defined(WITH_OPTIMIZED_CFLAGS) + @${ECHO_MSG} "You can enable additional compilation optimizations" + @${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS" +.endif + +post-patch: + @${REINPLACE_CMD} -e \ + 's|malloc.h|stdlib.h|g' \ + ${WRKSRC}/extern/ode/dist/configurator.c \ + ${WRKSRC}/source/gameengine/SoundSystem/intern/SND_WaveCache.cpp + @${REINPLACE_CMD} -E -e \ + 's|-Wall||; \ + s|g\+\+|${CXX}|; \ + s|LEVEL_2_C_WARNINGS.+$$||; \ + s|LEVEL_2_CPP_WARNINGS.+$$||; \ + s|-FIX_NAN_WARN||' \ + ${WRKSRC}/source/nan_warn.mk + @${REINPLACE_CMD} -e \ + 's|gcc|${CC}|; \ + s|\$$(C_OPT)1|${CFLAGS}|; \ + s|\$$(C_OPT)\$$(OPT)|${CFLAGS}|' \ + ${WRKSRC}/extern/ode/dist/Makefile + @${REINPLACE_CMD} -E -e \ + 's|g\+\+|${CXX}|; \ + s,(-O2|-DNDEBUG|^DBG_C.+$$),,; \ + s|-pipe|${CFLAGS}|; \ + s|gcc|${CC}|' \ + ${WRKSRC}/source/nan_compile.mk + @${REINPLACE_CMD} -e \ + 's|-pthread -lc_r|${PTHREAD_LIBS}|' \ + ${WRKSRC}/source/nan_link.mk + @${REINPLACE_CMD} -e \ + 's|%%CFLAGS%%|${CFLAGS}|' \ + ${WRKSRC}/intern/python/freeze/freeze.py + @${REINPLACE_CMD} -E -e \ + 's|-Wall||g; \ + s|^CC.+$$|CC=${CC}|; \ + s|g\+\+|${CXX}|; \ + s|-L/usr/lib/X11R6||; \ + s|-L/usr/lib/X11|-lXext|; \ + s|-ffast-math|-I${X11BASE}/include|' \ + ${WRKSRC}/extern/ode/dist/config/makefile.unix-gcc + @${REINPLACE_CMD} -e \ + 's|\$$(NAN_LIBDIR)/\$$(CONFIG_GUESS)|\$$(NAN_LIBDIR)|; \ + s|\$$(NAN_OBJDIR)/\$$(CONFIG_GUESS)|\$$(NAN_OBJDIR)|' \ + ${WRKSRC}/source/nan_definitions.mk + +do-install: + @${INSTALL_PROGRAM} ${WRKSRC}/obj/bin/blender ${PREFIX}/bin + @${INSTALL_PROGRAM} ${WRKSRC}/obj/bin/blenderplayer \ + ${PREFIX}/bin + @${MKDIR} ${PREFIX}/${PLUGIN_DIR} + @${INSTALL_PROGRAM} ${WRKSRC}/obj/npBlender3DPlugin.so \ + ${PREFIX}/${PLUGIN_DIR} + +.include <bsd.port.mk> diff --git a/graphics/blender-devel/distinfo b/graphics/blender-devel/distinfo new file mode 100644 index 000000000000..140b2cec2bac --- /dev/null +++ b/graphics/blender-devel/distinfo @@ -0,0 +1 @@ +MD5 (blender-2.26.tar.bz2) = 02fcaa6d6b13397b7428728a30e0385e diff --git a/graphics/blender-devel/files/patch-extern_ode_Makefile b/graphics/blender-devel/files/patch-extern_ode_Makefile new file mode 100644 index 000000000000..644842004f68 --- /dev/null +++ b/graphics/blender-devel/files/patch-extern_ode_Makefile @@ -0,0 +1,13 @@ +--- extern/ode/Makefile.orig Fri Feb 21 01:05:20 2003 ++++ extern/ode/Makefile Fri Feb 21 01:06:27 2003 +@@ -37,10 +37,6 @@ + TEMPSETTINGS = ./user-settings + + all: +- ifeq ($(OS),freebsd) +- (grep FreeBSD $(DISTDIR)/Makefile >/dev/null ; \ +- [ $$? -eq 0 ] || patch < patchfile.FreeBSD ) +- endif + ifeq ($(OS),$(findstring $(OS), "freebsd linux")) + [ -d $(DISTDIR)/lib ] || mkdir $(DISTDIR)/lib + $(MAKE) -C $(DISTDIR) diff --git a/graphics/blender-devel/files/patch-intern_python_freeze_freeze.py b/graphics/blender-devel/files/patch-intern_python_freeze_freeze.py new file mode 100644 index 000000000000..97f4d35a0370 --- /dev/null +++ b/graphics/blender-devel/files/patch-intern_python_freeze_freeze.py @@ -0,0 +1,11 @@ +--- intern/python/freeze/freeze.py.orig Sat Mar 1 22:57:16 2003 ++++ intern/python/freeze/freeze.py Sat Mar 1 23:10:45 2003 +@@ -420,7 +420,7 @@ + outfp.close() + infp.close() + +- cflags = defines + includes + ['$(OPT)'] ++ cflags = defines + includes + ['$(OPT)'] + ['%%CFLAGS%%'] + libs = [os.path.join(binlib, 'libpython$(VERSION).a')] + + somevars = {} diff --git a/graphics/blender-devel/files/patch-source_creator_creator.c b/graphics/blender-devel/files/patch-source_creator_creator.c new file mode 100644 index 000000000000..71c3820a5931 --- /dev/null +++ b/graphics/blender-devel/files/patch-source_creator_creator.c @@ -0,0 +1,10 @@ +--- source/creator/creator.c.orig Fri Feb 14 22:11:48 2003 ++++ source/creator/creator.c Fri Feb 14 23:17:26 2003 +@@ -91,6 +91,7 @@ + #ifdef __FreeBSD__ + #ifndef __OpenBSD__ + #include <floatingpoint.h> ++ #include <sys/types.h> + #include <sys/rtprio.h> + #endif + #endif diff --git a/graphics/blender-devel/pkg-descr b/graphics/blender-devel/pkg-descr new file mode 100644 index 000000000000..fdfa8745551c --- /dev/null +++ b/graphics/blender-devel/pkg-descr @@ -0,0 +1,7 @@ +Blender is a free and fully functional 3D +modeling/rendering/animation/gaming package. + +WWW: http://www.blender.org/ + +- David +dyeske@yahoo.com diff --git a/graphics/blender-devel/pkg-plist b/graphics/blender-devel/pkg-plist new file mode 100644 index 000000000000..2975f00a106d --- /dev/null +++ b/graphics/blender-devel/pkg-plist @@ -0,0 +1,5 @@ +bin/blender +bin/blenderplayer +%%PLUGIN_DIR%%/npBlender3DPlugin.so +@unexec rmdir %D/lib/mozilla/plugins 2>/dev/null || true +@unexec rmdir %D/lib/mozilla 2>/dev/null || true |