Makefile 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. # $OpenBSD: Makefile,v 1.80 2017/05/31 08:08:16 espie Exp $
  2. ONLY_FOR_ARCHS = amd64 i386
  3. COMMENT = 3D creation software
  4. DISTNAME = blender-2.78c
  5. CATEGORIES = graphics
  6. HOMEPAGE = http://www.blender.org/
  7. MAINTAINER = Pascal Stumpf <pascal@stumpf.co>
  8. # GPLv2+
  9. PERMIT_PACKAGE_CDROM = Yes
  10. WANTLIB += GL GLEW GLU Half Iex IlmImf IlmThread Imath OpenColorIO
  11. WANTLIB += OpenImageIO X11 Xi Xrender Xxf86vm avcodec avdevice avformat
  12. WANTLIB += avutil boost_date_time-mt boost_filesystem-mt boost_regex-mt
  13. WANTLIB += boost_system-mt boost_thread-mt c freetype jpeg m openal
  14. WANTLIB += openjpeg png pthread ${MODPY_WANTLIB} swscale tiff tinyxml
  15. WANTLIB += util yaml-cpp z boost_atomic-mt boost_chrono-mt ${LIBECXX}
  16. MASTER_SITES = http://download.blender.org/source/ \
  17. http://mirror.cs.umn.edu/blender.org/source/
  18. MODULES = devel/cmake \
  19. lang/python \
  20. COMPILER = gcc
  21. MODPY_VERSION = ${MODPY_DEFAULT_VERSION_3}
  22. CONFIGURE_ARGS = -DPYTHON_INCLUDE_DIR="${MODPY_INCDIR}" \
  23. -DPYTHON_VERSION=${MODPY_VERSION} \
  24. -DWITH_CODEC_FFMPEG=ON \
  25. -DWITH_INTERNATIONAL=OFF \
  26. -DWITH_RAYOPTIMIZATION=OFF \
  27. -DWITH_OPENCOLORIO=ON \
  28. -DWITH_SYSTEM_OPENJPEG=ON \
  29. -DWITH_CPU_SSE=OFF
  30. BUILD_DEPENDS = devel/gflags
  31. LIB_DEPENDS = graphics/png \
  32. graphics/jpeg \
  33. graphics/glew \
  34. graphics/openexr \
  35. graphics/tiff \
  36. devel/boost \
  37. audio/openal \
  38. graphics/openjpeg \
  39. graphics/ffmpeg>=20111126 \
  40. graphics/openimageio \
  41. ${MODPY_LIB_DEPENDS}
  42. RUN_DEPENDS = devel/desktop-file-utils \
  43. x11/gnome/librsvg
  44. NO_TEST = Yes
  45. CXXFLAGS += -I${LOCALBASE}/include -I${X11BASE}/include -pthread
  46. CFLAGS += -I${LOCALBASE}/include
  47. MODPY_ADJ_FILES = release/bin/blender-thumbnailer.py \
  48. release/scripts/modules/blend_render_info.py
  49. do-install:
  50. ${INSTALL_SCRIPT} ${FILESDIR}/blender ${PREFIX}/bin
  51. ${SUBST_CMD} ${PREFIX}/bin/blender
  52. ${INSTALL_PROGRAM} ${WRKBUILD}/bin/blender ${PREFIX}/bin/blender-bin
  53. ${INSTALL_SCRIPT} ${WRKSRC}/release/bin/blender-thumbnailer.py \
  54. ${PREFIX}/bin/blender-thumbnailer
  55. ${INSTALL_DATA_DIR} ${PREFIX}/share/blender/scripts
  56. ${INSTALL_DATA_DIR} ${PREFIX}/share/blender/datafiles
  57. cd ${WRKSRC}/release/scripts && pax -rw . \
  58. ${PREFIX}/share/blender/scripts
  59. ${INSTALL_DATA_DIR} ${PREFIX}/share/blender/scripts/addons/cycles
  60. cd ${WRKSRC}/intern/cycles/blender/addon && pax -rw . \
  61. ${PREFIX}/share/blender/scripts/addons/cycles
  62. cd ${WRKSRC}/release/datafiles && pax -rw . \
  63. ${PREFIX}/share/blender/datafiles
  64. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/blender
  65. ${INSTALL_DATA} ${WRKSRC}/release/text/*license* \
  66. ${PREFIX}/share/doc/blender
  67. ${INSTALL_DATA} ${WRKSRC}/release/text/copy* \
  68. ${PREFIX}/share/doc/blender
  69. ${INSTALL_DATA_DIR} ${PREFIX}/share/applications
  70. ${INSTALL_DATA} ${WRKSRC}/release/freedesktop/blender.desktop \
  71. ${PREFIX}/share/applications
  72. ${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps
  73. ${INSTALL_DATA} \
  74. ${WRKSRC}/release/freedesktop/icons/scalable/apps/blender.svg \
  75. ${PREFIX}/share/pixmaps
  76. ${MODPY_BIN} ${WRKSRC}/doc/manpage/blender.1.py \
  77. ${WRKBUILD}/bin/blender ${PREFIX}/man/man1/blender.1
  78. .include <bsd.port.mk>