mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-10 02:21:15 +02:00
add blender
This commit is contained in:
@@ -59,7 +59,7 @@ CONFIGURE_ARGS+= --with-vorbisenc
|
||||
CONFIGURE_ARGS+= --with-wavpack
|
||||
|
||||
CONFIGURE_ARGS+= --without-alsa
|
||||
CONFIGURE_ARGS+= --without-cdda
|
||||
CONFIGURE_ARGS+= --with-cdda
|
||||
CONFIGURE_ARGS+= --without-cddb
|
||||
CONFIGURE_ARGS+= --without-ifp
|
||||
CONFIGURE_ARGS+= --without-jack
|
||||
|
||||
139
xapp/blender/Makefile
Normal file
139
xapp/blender/Makefile
Normal file
@@ -0,0 +1,139 @@
|
||||
# Created by: Jimmy Olgeni <olgeni@uli.it>
|
||||
# $FreeBSD: head/graphics/blender/Makefile 542741 2020-07-21 13:40:42Z lwhsu $
|
||||
|
||||
PORTNAME= blender
|
||||
DISTVERSION= 2.83.2
|
||||
CATEGORIES= graphics multimedia
|
||||
MASTER_SITES+= http://download.blender.org/source/
|
||||
MASTER_SITES+= http://mirror.cs.umn.edu/blender.org/source/ \
|
||||
MASTER_SITES+= http://public.planetmirror.com/pub/blender/source/
|
||||
|
||||
MAINTAINER= FreeBSD@Shaneware.biz
|
||||
COMMENT= 3D modeling/rendering/animation package
|
||||
|
||||
LIB_DEPENDS+= libdrm.so:system/libdrm
|
||||
LIB_DEPENDS+= libexpat.so:text/libexpat
|
||||
LIB_DEPENDS+= libfreetype.so:graph/libfreetype2
|
||||
|
||||
LIB_DEPENDS+= libGL.so:graph/libmesa
|
||||
LIB_DEPENDS+= libglapi.so:graph/libmesa
|
||||
|
||||
LIB_DEPENDS+= libjpeg.so:graph/libjpeg
|
||||
LIB_DEPENDS+= libpng16.so:graph/libpng
|
||||
##LIB_DEPENDS+= libpython3.7m.so:lang/python37
|
||||
LIB_DEPENDS+= libX11-xcb.so:x11/libX11
|
||||
LIB_DEPENDS+= libXau.so:x11/libXau
|
||||
#LIB_DEPENDS+= libxcb-dri2.so:x11/libxcb
|
||||
#LIB_DEPENDS+= libxcb-glx.so:x11/libxcb
|
||||
#LIB_DEPENDS+= libxcb.so:x11/libxcb
|
||||
#LIB_DEPENDS+= libXdamage.so:x11/libXdamage
|
||||
#LIB_DEPENDS+= libXdmcp.so:x11/libXdmcp
|
||||
LIB_DEPENDS+= libXext.so:x11/libXext
|
||||
LIB_DEPENDS+= libXfixes.so:x11/libXfixes
|
||||
LIB_DEPENDS+= libXi.so:x11/libXi
|
||||
LIB_DEPENDS+= libXrender.so:x11/libXrender
|
||||
#LIB_DEPENDS+= libXxf86vm.so:x11/libXxf86vm
|
||||
|
||||
|
||||
LIB_DEPENDS+= libboost_atomic.so:devel/libboost70
|
||||
LIB_DEPENDS+= libboost_chrono.so:devel/libboost70
|
||||
LIB_DEPENDS+= libboost_date_time.so:devel/libboost70
|
||||
LIB_DEPENDS+= libboost_filesystem.so:devel/libboost70
|
||||
LIB_DEPENDS+= libboost_locale.so:devel/libboost70
|
||||
LIB_DEPENDS+= libboost_regex.so:devel/libboost70
|
||||
LIB_DEPENDS+= libboost_system.so:devel/libboost70
|
||||
LIB_DEPENDS+= libboost_thread.so:devel/libboost70
|
||||
|
||||
LIB_DEPENDS+= libfftw3.so:math/libfftw3
|
||||
|
||||
LIB_DEPENDS+= libicudata.so:devel/libicu
|
||||
LIB_DEPENDS+= libicui18n.so:devel/libicu
|
||||
LIB_DEPENDS+= libicuuc.so:devel/libicu
|
||||
|
||||
|
||||
USES= cmake compiler:c++14-lang python:3.7 shebangfix tar:xz
|
||||
|
||||
CMAKE_OFF+= WITH_IMAGE_OPENJPEG
|
||||
CMAKE_OFF+= WITH_PYTHON_INSTALL
|
||||
CMAKE_OFF+= WITH_PYTHON_INSTALL_NUMPY
|
||||
CMAKE_OFF+= WITH_INSTALL_PORTABLE
|
||||
CMAKE_OFF+= WITH_CYCLES_LOGGING
|
||||
|
||||
SHEBANG_FILES+= release/bin/blender-thumbnailer.py
|
||||
SHEBANG_FILES+= release/scripts/modules/bl_i18n_utils/merge_po.py
|
||||
SHEBANG_FILES+= release/scripts/modules/bl_i18n_utils/utils_rtl.py
|
||||
SHEBANG_FILES+= release/scripts/modules/blend_render_info.py
|
||||
|
||||
CFLAGS+= ${CFLAGS_${CHOSEN_COMPILER_TYPE}}
|
||||
CFLAGS_gcc= -Wno-float-conversion
|
||||
|
||||
CFLAGS_i386= -march=i586
|
||||
CXXFLAGS_i386= -march=i586
|
||||
# Use LLVM linker where available
|
||||
#.if exists(/usr/bin/ld.lld) && (${/usr/bin/ld:L:tA} != /usr/bin/ld.lld)
|
||||
LDFLAGS+= -fuse-ld=lld
|
||||
#.endif
|
||||
|
||||
CMAKE_OFF+= WITH_XR_OPENXR
|
||||
CMAKE_ON+= WITH_PYTHON
|
||||
CMAKE_OFF+= WITH_ALEMBIC
|
||||
CMAKE_OFF+= WITH_ALEMBIC_HDF5
|
||||
CMAKE_OFF+= WITH_BULLET
|
||||
CMAKE_OFF+= WITH_CODEC_AVI
|
||||
CMAKE_OFF+= WITH_CODEC_FFMPEG
|
||||
CMAKE_OFF+= WITH_CODEC_SNDFILE
|
||||
CMAKE_OFF+= WITH_COMPOSITOR
|
||||
CMAKE_OFF+= WITH_CYCLES
|
||||
CMAKE_OFF+= WITH_CYCLES_EMBREE
|
||||
CMAKE_OFF+= WITH_CYCLES_OSL
|
||||
CMAKE_OFF+= WITH_DRACO
|
||||
CMAKE_ON+= WITH_FFTW3
|
||||
CMAKE_ON+= WITH_FREESTYLE
|
||||
CMAKE_OFF+= WITH_HEADLESS
|
||||
CMAKE_OFF+= WITH_IMAGE_CINEON
|
||||
CMAKE_OFF+= WITH_IMAGE_DDS
|
||||
CMAKE_OFF+= WITH_IMAGE_FRAMESERVER
|
||||
CMAKE_OFF+= WITH_IMAGE_HDR
|
||||
CMAKE_OFF+= WITH_IMAGE_OPENEXR
|
||||
CMAKE_OFF+= WITH_IMAGE_TIFF
|
||||
CMAKE_OFF+= WITH_INPUT_NDOF
|
||||
CMAKE_ON+= WITH_INTERNATIONAL
|
||||
CMAKE_OFF+= WITH_JACK
|
||||
CMAKE_OFF+= WITH_LIBMV
|
||||
CMAKE_ON+= WITH_LZMA
|
||||
CMAKE_ON+= WITH_LZO
|
||||
|
||||
CMAKE_ON+= WITH_MOD_BOOLEAN
|
||||
CMAKE_OFF+= WITH_MOD_FLUID
|
||||
CMAKE_OFF+= WITH_MOD_OCEANSIM
|
||||
CMAKE_OFF+= WITH_MOD_REMESH
|
||||
CMAKE_OFF+= WITH_MOD_SMOKE
|
||||
|
||||
CMAKE_OFF+= WITH_OPENAL
|
||||
CMAKE_OFF+= WITH_OPENCOLLADA
|
||||
CMAKE_OFF+= WITH_OPENCOLORIO
|
||||
CMAKE_OFF+= WITH_OPENIMAGEDENOISE
|
||||
CMAKE_OFF+= WITH_OPENIMAGEIO
|
||||
CMAKE_OFF+= WITH_OPENMP
|
||||
CMAKE_OFF+= WITH_OPENSUBDIV
|
||||
CMAKE_OFF+= WITH_OPENVDB
|
||||
CMAKE_OFF+= WITH_RAYOPTIMIZATION
|
||||
|
||||
CMAKE_OFF+= WITH_SDL
|
||||
CMAKE_OFF+= WITH_TBB
|
||||
|
||||
CMAKE_ON+= WITH_X11_XF86VMODE
|
||||
CMAKE_ON+= WITH_X11_XINPUT
|
||||
|
||||
CMAKE_ARGS+= -DBoost_INCLUDE_DIR=${LOCALBASE}/boost70/include
|
||||
CMAKE_ON+= WITH_BOOST
|
||||
|
||||
post-build:
|
||||
cd ${WRKSRC}/doc/manpage && ${PYTHON_CMD} blender.1.py \
|
||||
${INSTALL_WRKSRC}/bin/blender ${INSTALL_WRKSRC}/bin/${PORTNAME}.1
|
||||
|
||||
post-install:
|
||||
${INSTALL_MAN} ${INSTALL_WRKSRC}/bin/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
|
||||
|
||||
|
||||
.include <bsd.port.mk>
|
||||
3
xapp/blender/distinfo
Normal file
3
xapp/blender/distinfo
Normal file
@@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1594629379
|
||||
SHA256 (blender-2.83.2.tar.xz) = c18b70349df96bdd1fcec75f61ab6f17cbebd406ddcc8e6ba442773b734c4e22
|
||||
SIZE (blender-2.83.2.tar.xz) = 38525380
|
||||
14
xapp/blender/files/patch-CMakeLists.txt
Normal file
14
xapp/blender/files/patch-CMakeLists.txt
Normal file
@@ -0,0 +1,14 @@
|
||||
--- CMakeLists.txt.orig 2019-07-31 13:12:04 UTC
|
||||
+++ CMakeLists.txt
|
||||
@@ -647,11 +647,6 @@ if(NOT WITH_PYTHON)
|
||||
set(WITH_DRACO OFF)
|
||||
endif()
|
||||
|
||||
-if(WITH_DRACO AND NOT WITH_PYTHON_INSTALL)
|
||||
- message(STATUS "WITH_DRACO requires WITH_PYTHON_INSTALL to be ON, disabling WITH_DRACO for now")
|
||||
- set(WITH_DRACO OFF)
|
||||
-endif()
|
||||
-
|
||||
# enable boost for cycles, audaspace or i18n
|
||||
# otherwise if the user disabled
|
||||
if(NOT WITH_BOOST)
|
||||
@@ -0,0 +1,25 @@
|
||||
--- build_files/cmake/Modules/FindEmbree.cmake.orig 2019-08-12 17:21:01 UTC
|
||||
+++ build_files/cmake/Modules/FindEmbree.cmake
|
||||
@@ -48,14 +48,14 @@ FIND_PATH(EMBREE_INCLUDE_DIR
|
||||
|
||||
SET(_embree_FIND_COMPONENTS
|
||||
embree3
|
||||
- embree_avx
|
||||
- embree_avx2
|
||||
- embree_sse42
|
||||
- lexers
|
||||
- math
|
||||
- simd
|
||||
- sys
|
||||
- tasking
|
||||
+# embree_avx
|
||||
+# embree_avx2
|
||||
+# embree_sse42
|
||||
+# lexers
|
||||
+# math
|
||||
+# simd
|
||||
+# sys
|
||||
+# tasking
|
||||
)
|
||||
|
||||
SET(_embree_LIBRARIES)
|
||||
14
xapp/blender/files/patch-intern_cycles_CMakeLists.txt
Normal file
14
xapp/blender/files/patch-intern_cycles_CMakeLists.txt
Normal file
@@ -0,0 +1,14 @@
|
||||
--- intern/cycles/CMakeLists.txt.orig 2019-07-31 13:03:30 UTC
|
||||
+++ intern/cycles/CMakeLists.txt
|
||||
@@ -260,9 +260,9 @@ if(WITH_CYCLES_DEBUG)
|
||||
add_definitions(-DWITH_CYCLES_DEBUG)
|
||||
endif()
|
||||
|
||||
-if(NOT OPENIMAGEIO_PUGIXML_FOUND)
|
||||
+#if(NOT OPENIMAGEIO_PUGIXML_FOUND)
|
||||
add_definitions(-DWITH_SYSTEM_PUGIXML)
|
||||
-endif()
|
||||
+#endif()
|
||||
|
||||
include_directories(
|
||||
SYSTEM
|
||||
11
xapp/blender/files/patch-intern_opensubdiv_CMakeLists.txt
Normal file
11
xapp/blender/files/patch-intern_opensubdiv_CMakeLists.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
--- intern/opensubdiv/CMakeLists.txt.orig 2019-07-24 17:11:39 UTC
|
||||
+++ intern/opensubdiv/CMakeLists.txt
|
||||
@@ -83,7 +83,7 @@ if(WITH_OPENSUBDIV)
|
||||
internal/opensubdiv_util.h
|
||||
)
|
||||
|
||||
- OPENSUBDIV_DEFINE_COMPONENT(OPENSUBDIV_HAS_OPENMP)
|
||||
+# OPENSUBDIV_DEFINE_COMPONENT(OPENSUBDIV_HAS_OPENMP)
|
||||
# TODO(sergey): OpenCL is not tested and totally unstable atm.
|
||||
# OPENSUBDIV_DEFINE_COMPONENT(OPENSUBDIV_HAS_OPENCL)
|
||||
# TODO(sergey): CUDA stays disabled for util it's ported to drievr API.
|
||||
@@ -0,0 +1,19 @@
|
||||
--- release/scripts/addons/io_scene_gltf2/io/exp/gltf2_io_draco_compression_extension.py.orig 2019-07-31 06:38:16 UTC
|
||||
+++ release/scripts/addons/io_scene_gltf2/io/exp/gltf2_io_draco_compression_extension.py
|
||||
@@ -13,6 +13,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import bpy
|
||||
+import site
|
||||
import sys
|
||||
from ctypes import *
|
||||
from pathlib import Path
|
||||
@@ -35,7 +36,7 @@ def dll_path() -> Path:
|
||||
'darwin': blender_root.parent/'Resources'/python_lib/'python3.7'/'site-packages'/'lib{}.dylib'.format(lib_name)
|
||||
}
|
||||
|
||||
- path = paths.get(sys.platform)
|
||||
+ path = Path('{}/lib{}.so'.format(site.getsitepackages()[0], lib_name))
|
||||
return path if path is not None else ''
|
||||
|
||||
|
||||
16
xapp/blender/pkg-deinstall
Normal file
16
xapp/blender/pkg-deinstall
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -x
|
||||
|
||||
PREFIX=${PKG_PREFIX}
|
||||
LOCALBASE=${PKG_PREFIX}
|
||||
|
||||
case $2 in
|
||||
DEINSTALL)
|
||||
;;
|
||||
POST-DEINSTALL)
|
||||
${LOCALBASE}/bin/update-desktop-database -q ${PREFIX}/share/applications
|
||||
${LOCALBASE}/bin/gtk-update-icon-cache -q ${PREFIX}//share/icons/hicolor
|
||||
;;
|
||||
esac
|
||||
#EOF
|
||||
4
xapp/blender/pkg-descr
Normal file
4
xapp/blender/pkg-descr
Normal file
@@ -0,0 +1,4 @@
|
||||
Blender is a free and fully functional 3D
|
||||
modeling/rendering/animation/gaming package.
|
||||
|
||||
WWW: https://www.blender.org/
|
||||
16
xapp/blender/pkg-install
Normal file
16
xapp/blender/pkg-install
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -x
|
||||
|
||||
PREFIX=${PKG_PREFIX}
|
||||
LOCALBASE=${PKG_PREFIX}
|
||||
|
||||
case $2 in
|
||||
PRE-INSTALL)
|
||||
;;
|
||||
POST-INSTALL)
|
||||
${LOCALBASE}/bin/update-desktop-database -q ${PREFIX}/share/applications
|
||||
${LOCALBASE}/bin/gtk-update-icon-cache -q ${PREFIX}//share/icons/hicolor
|
||||
;;
|
||||
esac
|
||||
#EOF
|
||||
2097
xapp/blender/pkg-plist
Normal file
2097
xapp/blender/pkg-plist
Normal file
File diff suppressed because it is too large
Load Diff
@@ -9,14 +9,25 @@ MASTER_SITES= GNOME
|
||||
MAINTAINER= onborodin@gmail.com
|
||||
COMMENT= GTK Tag editor for audio files
|
||||
|
||||
#LIB_DEPENDS+= glib.2:${PORTSDIR}/devel/libglib
|
||||
#LIB_DEPENDS+= gtk-x11.2:${PORTSDIR}/gnome/libgtk2
|
||||
#LIB_DEPENDS+= FLAC.10:${PORTSDIR}/media/libflac
|
||||
#LIB_DEPENDS+= id3tag.0:${PORTSDIR}/media/libid3tag
|
||||
#LIB_DEPENDS+= ogg.8:${PORTSDIR}/media/libogg
|
||||
#LIB_DEPENDS+= speex.6:${PORTSDIR}/media/libspeex
|
||||
#LIB_DEPENDS+= vorbis.4:${PORTSDIR}/media/libvorbis
|
||||
#LIB_DEPENDS+= wavpack.2:${PORTSDIR}/media/libwavpack
|
||||
LIB_DEPENDS+= libFLAC.so:media/libflac
|
||||
LIB_DEPENDS+= libid3.so:media/libid3lib
|
||||
LIB_DEPENDS+= libid3tag.so:media/libid3tag
|
||||
LIB_DEPENDS+= libogg.so:media/libogg
|
||||
LIB_DEPENDS+= libspeex.so:media/libspeex
|
||||
LIB_DEPENDS+= libtag.so:media/libtag
|
||||
LIB_DEPENDS+= libvorbis.so:media/libvorbis
|
||||
LIB_DEPENDS+= libvorbisfile.so:media/libvorbis
|
||||
LIB_DEPENDS+= libwavpack.so:media/libwavpack
|
||||
|
||||
LIB_DEPENDS+= libatk.so:gnome/libatk
|
||||
LIB_DEPENDS+= libcairo.so:gnome/libcairo
|
||||
LIB_DEPENDS+= libgdk-pixbuf.so:gnome/libgdk-pixbuf
|
||||
LIB_DEPENDS+= libgdk-x11.so:gnome/libgtk2
|
||||
LIB_DEPENDS+= libgtk-x11.so:gnome/libgtk2
|
||||
LIB_DEPENDS+= libharfbuzz.so:gnome/libharfbuzz
|
||||
LIB_DEPENDS+= libpango.so:gnome/libpango
|
||||
LIB_DEPENDS+= libpangocairo.so:gnome/libpango
|
||||
LIB_DEPENDS+= libpangoft2.so:gnome/libpango
|
||||
|
||||
|
||||
USES+= gmake tar:xz
|
||||
|
||||
Reference in New Issue
Block a user