2013-03-11 07:10:51 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.49 2013/03/11 11:10:51 espie Exp $
|
2001-06-15 05:06:47 -04:00
|
|
|
|
2011-03-23 08:10:54 -04:00
|
|
|
COMMENT = 3D creation software
|
2012-09-26 12:26:01 -04:00
|
|
|
BROKEN-sparc64 = error: cast from 'ccl::uchar*' to 'CUdeviceptr' loses precision
|
2001-06-15 05:06:47 -04:00
|
|
|
|
2012-10-31 13:45:55 -04:00
|
|
|
DISTNAME = blender-2.64a
|
2009-11-01 08:10:52 -05:00
|
|
|
|
2011-03-23 08:10:54 -04:00
|
|
|
CATEGORIES = graphics
|
2001-12-13 04:39:35 -05:00
|
|
|
|
2011-03-23 08:10:54 -04:00
|
|
|
HOMEPAGE = http://www.blender.org/
|
2001-06-15 05:06:47 -04:00
|
|
|
|
2012-02-26 15:37:25 -05:00
|
|
|
MAINTAINER = Pascal Stumpf <Pascal.Stumpf@cubes.de>
|
|
|
|
|
|
|
|
VMEM_WARNING = Yes
|
|
|
|
|
|
|
|
# GPLv2+
|
2011-03-23 08:10:54 -04:00
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
2001-06-15 05:06:47 -04:00
|
|
|
|
2011-03-23 08:10:54 -04:00
|
|
|
MASTER_SITES = http://download.blender.org/source/ \
|
2012-05-14 14:31:43 -04:00
|
|
|
http://mirror.cs.umn.edu/blender.org/source/
|
2001-06-15 05:06:47 -04:00
|
|
|
|
2012-02-26 15:37:25 -05:00
|
|
|
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} \
|
2012-05-07 11:45:42 -04:00
|
|
|
-DWITH_CODEC_FFMPEG=ON
|
2006-07-26 02:45:27 -04:00
|
|
|
|
2012-02-26 15:37:25 -05:00
|
|
|
BUILD_DEPENDS = devel/gflags
|
2011-03-23 08:10:54 -04:00
|
|
|
LIB_DEPENDS = graphics/png \
|
2010-11-17 03:05:12 -05:00
|
|
|
graphics/jpeg \
|
|
|
|
graphics/glew \
|
2012-02-26 15:37:25 -05:00
|
|
|
graphics/openexr \
|
|
|
|
graphics/tiff \
|
|
|
|
devel/boost \
|
2010-11-17 03:05:12 -05:00
|
|
|
devel/sdl \
|
2012-02-26 15:37:25 -05:00
|
|
|
audio/openal \
|
|
|
|
graphics/openjpeg \
|
2012-05-07 11:45:42 -04:00
|
|
|
graphics/ffmpeg>=20111126 \
|
2012-05-09 08:45:50 -04:00
|
|
|
graphics/openimageio \
|
2010-09-19 09:03:33 -04:00
|
|
|
${MODPY_LIB_DEPENDS}
|
2012-02-26 15:37:25 -05:00
|
|
|
RUN_DEPENDS = devel/desktop-file-utils \
|
|
|
|
x11/gnome/librsvg
|
2001-06-15 05:06:47 -04:00
|
|
|
|
2012-05-09 08:45:50 -04:00
|
|
|
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
|
2012-02-26 15:37:25 -05:00
|
|
|
WANTLIB += boost_thread-mt c freetype jpeg m openal openjpeg png
|
2012-05-09 08:45:50 -04:00
|
|
|
WANTLIB += pthread ${MODPY_WANTLIB} stdc++ swscale tiff util z
|
2012-04-02 03:11:46 -04:00
|
|
|
|
2013-03-11 07:10:51 -04:00
|
|
|
NO_TEST = Yes
|
2001-06-15 05:06:47 -04:00
|
|
|
|
2012-05-09 08:45:50 -04:00
|
|
|
CFLAGS += -I${LOCALBASE}/include -I${X11BASE}/include -pthread
|
2012-02-26 15:37:25 -05:00
|
|
|
|
|
|
|
MODPY_ADJ_FILES = release/bin/blender-thumbnailer.py \
|
|
|
|
release/scripts/modules/blend_render_info.py
|
2005-11-24 17:22:56 -05:00
|
|
|
|
2001-06-15 05:06:47 -04:00
|
|
|
do-install:
|
2012-02-26 15:37:25 -05:00
|
|
|
${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 . \
|
2005-11-24 17:22:56 -05:00
|
|
|
${PREFIX}/share/blender/scripts
|
2012-05-09 08:45:50 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/blender/scripts/addons/cycles
|
|
|
|
cd ${WRKSRC}/intern/cycles/blender/addon && pax -rw . \
|
|
|
|
${PREFIX}/share/blender/scripts/addons/cycles
|
2012-02-26 15:37:25 -05:00
|
|
|
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
|
2012-02-26 15:37:25 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/applications
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/release/freedesktop/blender.desktop \
|
|
|
|
${PREFIX}/share/applications
|
2007-09-20 15:58:49 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps
|
2012-02-26 15:37:25 -05:00
|
|
|
${INSTALL_DATA} \
|
|
|
|
${WRKSRC}/release/freedesktop/icons/scalable/apps/blender.svg \
|
2007-09-20 15:58:49 -04:00
|
|
|
${PREFIX}/share/pixmaps
|
2012-02-26 15:37:25 -05:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/manpage/blender.1 ${PREFIX}/man/man1
|
2001-06-15 05:06:47 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|