openbsd-ports/graphics/blender/Makefile

91 lines
2.9 KiB
Makefile
Raw Normal View History

2013-03-11 07:10:51 -04:00
# $OpenBSD: Makefile,v 1.49 2013/03/11 11:10:51 espie Exp $
COMMENT = 3D creation software
BROKEN-sparc64 = error: cast from 'ccl::uchar*' to 'CUdeviceptr' loses precision
2012-10-31 13:45:55 -04:00
DISTNAME = blender-2.64a
2009-11-01 08:10:52 -05:00
CATEGORIES = graphics
2001-12-13 04:39:35 -05:00
HOMEPAGE = http://www.blender.org/
MAINTAINER = Pascal Stumpf <Pascal.Stumpf@cubes.de>
VMEM_WARNING = Yes
# GPLv2+
PERMIT_PACKAGE_CDROM = Yes
MASTER_SITES = http://download.blender.org/source/ \
http://mirror.cs.umn.edu/blender.org/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_CODEC_FFMPEG=ON
2006-07-26 02:45:27 -04:00
BUILD_DEPENDS = devel/gflags
LIB_DEPENDS = graphics/png \
2010-11-17 03:05:12 -05:00
graphics/jpeg \
graphics/glew \
graphics/openexr \
graphics/tiff \
devel/boost \
2010-11-17 03:05:12 -05:00
devel/sdl \
audio/openal \
graphics/openjpeg \
graphics/ffmpeg>=20111126 \
graphics/openimageio \
${MODPY_LIB_DEPENDS}
RUN_DEPENDS = devel/desktop-file-utils \
x11/gnome/librsvg
WANTLIB += GL GLEW GLU Half Iex IlmImf IlmThread Imath OpenImageIO
WANTLIB += SDL X11 Xi Xxf86vm avcodec avdevice avformat avutil
WANTLIB += 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++ swscale tiff util z
2013-03-11 07:10:51 -04:00
NO_TEST = Yes
CFLAGS += -I${LOCALBASE}/include -I${X11BASE}/include -pthread
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
${INSTALL_DATA_DIR} ${PREFIX}/share/blender/scripts/addons/cycles
cd ${WRKSRC}/intern/cycles/blender/addon && pax -rw . \
${PREFIX}/share/blender/scripts/addons/cycles
cd ${WRKSRC}/release/datafiles && pax -rw . \
${PREFIX}/share/blender/datafiles
2006-07-26 02:45:27 -04:00
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/blender
2006-07-30 03:29:13 -04:00
${INSTALL_DATA} ${WRKSRC}/release/text/*license* \
${PREFIX}/share/doc/blender
${INSTALL_DATA} ${WRKSRC}/release/text/copy* \
2006-07-26 02:45:27 -04:00
${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 <bsd.port.mk>