# $OpenBSD: Makefile,v 1.41 2012/04/16 12:03:25 naddy Exp $ COMMENT = 3D creation software DISTNAME = blender-2.62 REVISION = 2 CATEGORIES = graphics HOMEPAGE = http://www.blender.org/ MAINTAINER = Pascal Stumpf VMEM_WARNING = Yes # GPLv2+ PERMIT_PACKAGE_CDROM = Yes PERMIT_PACKAGE_FTP = Yes PERMIT_DISTFILES_CDROM =Yes PERMIT_DISTFILES_FTP = Yes MASTER_SITES = http://download.blender.org/source/ \ http://mirror.cs.umn.edu/blender.org/source/ \ http://public.planetmirror.com/pub/blender/source/ MODULES = devel/cmake \ lang/python \ devel/gettext MODPY_VERSION = ${MODPY_DEFAULT_VERSION_3} CONFIGURE_ARGS = -DPYTHON_LIBRARY="${LOCALBASE}/lib/libpython${MODPY_VERSION}m.so" \ -DPYTHON_INCLUDE_DIR="${MODPY_INCDIR}" \ -DPYTHON_VERSION=${MODPY_VERSION} \ -DWITH_BUILTIN_GLEW=OFF BUILD_DEPENDS = devel/gflags LIB_DEPENDS = graphics/png \ graphics/jpeg \ graphics/glew \ graphics/openexr \ graphics/tiff \ devel/boost \ devel/sdl \ audio/openal \ graphics/openjpeg \ ${MODPY_LIB_DEPENDS} RUN_DEPENDS = devel/desktop-file-utils \ x11/gnome/librsvg WANTLIB += GL GLEW GLU Half Iex IlmImf IlmThread Imath SDL X11 WANTLIB += Xi Xxf86vm boost_filesystem-mt boost_regex-mt boost_system-mt WANTLIB += boost_thread-mt c freetype jpeg m openal openjpeg png WANTLIB += pthread ${MODPY_WANTLIB} stdc++ tiff util z # until ffmpeg works on mips64el, make it a FLAVOR FLAVORS = ffmpeg FLAVOR ?= .if ${FLAVOR:L:Mffmpeg} CONFIGURE_ARGS += -DWITH_CODEC_FFMPEG=ON LIB_DEPENDS += graphics/ffmpeg>=20111126 WANTLIB += avcodec avdevice avformat avutil .endif NO_REGRESS = Yes CFLAGS += -I${LOCALBASE}/include -I${X11BASE}/include MODPY_ADJ_FILES = release/bin/blender-thumbnailer.py \ release/scripts/modules/blend_render_info.py do-install: ${INSTALL_SCRIPT} ${FILESDIR}/blender ${PREFIX}/bin ${SUBST_CMD} ${PREFIX}/bin/blender ${INSTALL_PROGRAM} ${WRKBUILD}/bin/blender ${PREFIX}/bin/blender-bin ${INSTALL_SCRIPT} ${WRKSRC}/release/bin/blender-thumbnailer.py \ ${PREFIX}/bin/blender-thumbnailer ${INSTALL_DATA_DIR} ${PREFIX}/share/blender/scripts ${INSTALL_DATA_DIR} ${PREFIX}/share/blender/datafiles cd ${WRKSRC}/release/scripts && pax -rw . \ ${PREFIX}/share/blender/scripts cd ${WRKSRC}/release/datafiles && pax -rw . \ ${PREFIX}/share/blender/datafiles ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/blender ${INSTALL_DATA} ${WRKSRC}/release/text/*license* \ ${PREFIX}/share/doc/blender ${INSTALL_DATA} ${WRKSRC}/release/text/copy* \ ${PREFIX}/share/doc/blender ${INSTALL_DATA_DIR} ${PREFIX}/share/applications ${INSTALL_DATA} ${WRKSRC}/release/freedesktop/blender.desktop \ ${PREFIX}/share/applications ${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps ${INSTALL_DATA} \ ${WRKSRC}/release/freedesktop/icons/scalable/apps/blender.svg \ ${PREFIX}/share/pixmaps ${INSTALL_MAN} ${WRKSRC}/doc/manpage/blender.1 ${PREFIX}/man/man1 .include