diff options
author | ryoon <ryoon@pkgsrc.org> | 2012-12-03 13:15:50 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2012-12-03 13:15:50 +0000 |
commit | e5540786876d862176c028a1c33977c48b22ddc8 (patch) | |
tree | 0895af6d7edb3ea327aace35e60ea83e74a13658 /graphics/blender/Makefile | |
parent | e6227b5ac89034d47283fba7d0eb6cc9074edf23 (diff) | |
download | pkgsrc-e5540786876d862176c028a1c33977c48b22ddc8.tar.gz |
Update to 2.64a
XXX This revision may build on NetBSD 6.* and Linux only.
* Convert to scons build
* Remove MESSAGE file, we need not to copy files to ~/.blender
Changelog:
* Add cycles engine
* New features and bugfixes
Diffstat (limited to 'graphics/blender/Makefile')
-rw-r--r-- | graphics/blender/Makefile | 101 |
1 files changed, 63 insertions, 38 deletions
diff --git a/graphics/blender/Makefile b/graphics/blender/Makefile index a20dae3a457..9045298241e 100644 --- a/graphics/blender/Makefile +++ b/graphics/blender/Makefile @@ -1,7 +1,6 @@ -# $NetBSD: Makefile,v 1.81 2012/10/06 14:10:42 asau Exp $ +# $NetBSD: Makefile,v 1.82 2012/12/03 13:15:50 ryoon Exp $ -DISTNAME= blender-2.49b -PKGREVISION= 10 +DISTNAME= blender-2.64a CATEGORIES= graphics MASTER_SITES= http://download.blender.org/source/ @@ -12,59 +11,85 @@ LICENSE= gnu-gpl-v2 USE_TOOLS+= gmake USE_LANGUAGES= c c++ -USE_CMAKE= yes -CMAKE_ARG_PATH= .. -CONFIGURE_DIRS= _build -MAKE_JOBS_SAFE= no +PYTHON_VERSIONS_ACCEPTED= 32 -LDFLAGS+= -lcrypto -LDFLAGS.DragonFly= -lX11 +BUILD_DEPENDS+= scons-[0-9]*:../../devel/scons -.include "options.mk" - -INSTALLATION_DIRS= bin +FIND_PREFIX:= SCONSDIR=scons +.include "../../mk/find-prefix.mk" -CMAKE_ARGS+= -DFREETYPE_INC:PATH=${BUILDLINK_PREFIX.freetype2}/include/freetype2 -CMAKE_ARGS+= -DSDL_INCLUDE_DIR:PATH=${BUILDLINK_PREFIX.SDL}/include/SDL +.include "options.mk" -CHECK_INTERPRETER_SKIP= share/blender/scripts/*.py share/blender/scripts/*/*.py +INSTALLATION_DIRS= bin share/blender +# To pass LDFLAGS to compiler/linker +MYLDFLAGS= `printf "'%s'," ${LDFLAGS} | sed -e 's:,$$::'` pre-configure: - ${MKDIR} ${WRKSRC}/_build + ${CP} -f ${WRKSRC}/user-config.py ${WRKSRC}/user-config.py.1 + ${SED} \ + -e "s|@MYLDFLAGS@|${MYLDFLAGS}|g" \ + < ${WRKSRC}/user-config.py.1 > ${WRKSRC}/user-config.py + ${RM} -f ${WRKSRC}/user-config.py.1 + +SCONS_ARGS+= WITH_BF_JACK=False +SCONS_ARGS+= WITH_BF_OPENAL=False +SCONS_ARGS+= WITH_BF_SNDFILE=False +SCONS_ARGS+= WITH_BF_FFMPEG=False + +SCONS_ARGS+= BF_PYTHON=${PREFIX} +SCONS_ARGS+= BF_SDL=${BUILDLINK_PREFIX.SDL} +SCONS_ARGS+= BF_OPENEXR=${BUILDLINK_PREFIX.openexr} +SCONS_ARGS+= BF_JPEG=${BUILDLINK_PREFIX.jpeg} +SCONS_ARGS+= BF_PNG=${BUILDLINK_PREFIX.png} +SCONS_ARGS+= BF_TIFF=${BUILDLINK_PREFIX.tiff} +SCONS_ARGS+= BF_GETTEXT=${BUILDLINK_PREFIX.gettext-tools} +SCONS_ARGS+= BF_FREETYPE=${BUILDLINK_PREFIX.freetype2} +SCONS_ARGS+= BF_OPENJPEG=${BUILDLINK_PREFIX.openjpeg} +SCONS_ARGS+= BF_OPENGL=${BUILDLINK_PREFIX.Mesa} +SCONS_ARGS+= BF_PCRE=${BUILDLINK_PREFIX.pcre} +#SCONS_ARGS+= BF_FFMPEG=${BUILDLINK_PREFIX.ffmpeg010} +#SCONS_ARGS+= BF_FFMPEG_INC=${BUILDLINK_PREFIX.ffmpeg010}/include/ffmpeg010 +#SCONS_ARGS+= BF_FFMPEG_LIBPATH='${BUILDLINK_PREFIX.ffmpeg010}/lib/ffmpeg010' +SCONS_ARGS+= BF_FFTW3=${BUILDLINK_PREFIX.fftw} +SCONS_ARGS+= BF_INSTALLDIR=${DESTDIR}${PREFIX}/share/blender + +# I cannot separate build and install... +do-build: + +# build is done in install phase. +do-install: + cd ${WRKSRC} && \ + ${SCONSDIR}/bin/scons ${SCONS_ARGS} -WRKSRCBIN= ${WRKSRC}/_build/bin +.if !empty(MACHINE_PLATFORM:MNetBSD-6.*-*) +BFINSTALLDIR= netbsd6 +.elif !empty(MACHINE_PLATFORM:MLinux-*-*) +BFINSTALLDIR= linux +.endif -post-build: - ${CP} -f ${WRKSRCBIN}/blender ${WRKSRCBIN}/blender-bin - ${SED} -e "s|__PREFIX__|${PREFIX}|g" files/blender > ${WRKSRCBIN}/blender - ${CHMOD} +x ${WRKSRCBIN}/blender - ${CHMOD} -x ${WRKSRCBIN}/.blender/scripts/*.py - ${CHMOD} -x ${WRKSRCBIN}/.blender/scripts/*/*.py +CHECK_INTERPRETER_SKIP= share/blender/${DISTNAME:S/blender-//:C/[a-z]//}/scripts/*.py share/blender/${DISTNAME:S/blender-//:C/[a-z]//}datafiles/*.py -do-install: - ${INSTALL_PROGRAM} ${WRKSRCBIN}/blender-bin ${DESTDIR}${PREFIX}/bin - ${INSTALL_SCRIPT} ${WRKSRCBIN}/blender ${DESTDIR}${PREFIX}/bin - ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/blender - ${CP} -R ${WRKSRCBIN}/.blender/scripts \ - ${DESTDIR}${PREFIX}/share/blender/ - ${CP} -R ${WRKSRCBIN}/.blender/locale \ - ${DESTDIR}${PREFIX}/share/blender/ - ${INSTALL_DATA} ${WRKSRCBIN}/.blender/.Blanguages \ - ${DESTDIR}${PREFIX}/share/blender - ${INSTALL_DATA} ${WRKSRCBIN}/.blender/.bfont.ttf \ - ${DESTDIR}${PREFIX}/share/blender - ${INSTALL_DATA} ${WRKSRC}/release/text/BlenderQuickStart.pdf \ - ${DESTDIR}${PREFIX}/share/blender +post-install: + ${LN} -sf ${PREFIX}/share/blender/blender \ + ${DESTDIR}${PREFIX}/bin .include "../../devel/SDL/buildlink3.mk" +.include "../../devel/boost-libs/buildlink3.mk" +.include "../../devel/gettext-tools/buildlink3.mk" +.include "../../devel/pcre/buildlink3.mk" .include "../../graphics/Mesa/buildlink3.mk" .include "../../graphics/freetype2/buildlink3.mk" +#.include "../../graphics/glew/buildlink3.mk" .include "../../graphics/openexr/buildlink3.mk" +.include "../../graphics/openimageio/buildlink3.mk" +.include "../../graphics/openjpeg/buildlink3.mk" .include "../../graphics/png/buildlink3.mk" .include "../../graphics/tiff/buildlink3.mk" +.include "../../math/fftw/buildlink3.mk" +#.include "../../multimedia/ffmpeg010/buildlink3.mk" .include "../../security/openssl/buildlink3.mk" -.include "../../lang/python/pyversion.mk" +.include "../../lang/python/application.mk" .include "../../mk/bsd.pkg.mk" |