# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # graphics/ospray # graphics/ospray/Makefile # graphics/ospray/distinfo # graphics/ospray/pkg-descr # graphics/ospray/files # graphics/ospray/files/patch-apps_common_miniSG_importRIVL.cpp # graphics/ospray/files/patch-apps_ospTutorial.c # graphics/ospray/files/patch-apps_ospTutorial.cpp # graphics/ospray/files/patch-apps_qtViewer_sg_common_Common.cpp # graphics/ospray/files/patch-cmake_configure__embree.cmake # graphics/ospray/files/patch-cmake_FindTBB.cmake # graphics/ospray/files/patch-ospcommon_malloc.cpp # graphics/ospray/files/patch-ospcommon_sysinfo.cpp # graphics/ospray/files/patch-ospcommon_thread.cpp # graphics/ospray/pkg-plist # echo c - graphics/ospray mkdir -p graphics/ospray > /dev/null 2>&1 echo x - graphics/ospray/Makefile sed 's/^X//' >graphics/ospray/Makefile << '2871f3e2838e27cfabb65e8714a64b2b' X# Created by: Yuri Victorovich X# $FreeBSD$ X XPORTNAME= OSPRay XPORTVERSION= 1.1.1 XDISTVERSIONPREFIX= v XCATEGORIES= graphics X XMAINTAINER= yuri@rawbw.com XCOMMENT= Ray tracing based rendering engine for high-fidelity visualization X XLICENSE= GPLv3 X XBUILD_DEPENDS= ispc:devel/ispc XLIB_DEPENDS= libtbb.so:devel/tbb \ X libembree.so:graphics/embree X XUSE_GITHUB= yes XGH_ACCOUNT= ospray X XUSES= cmake gmake pkgconfig readline XUSE_LDCONFIG= yes XUSE_GL= gl glu glut XUSE_QT4= corelib gui opengl qmake moc rcc uic # redundant requirements, see https://github.com/ospray/OSPRay/issues/100 X XCMAKE_ARGS+= -DOSPRAY_USE_EXTERNAL_EMBREE:BOOL=ON XCMAKE_ARGS+= -DCMAKE_INSTALL_PREFIX:PATH=${PREFIX} XCMAKE_ARGS+= -DEMBREE_MAX_ISA:STRING=AVX2 XCONFIGURE_ENV+= embree_DIR=${LOCALBASE} X Xpost-extract: X @${RM} -r ${WRKSRC}/ospray/embree-v2.7.1 X Xpost-install: X @${RM} -r ${STAGEDIR}${PREFIX}/lib/libembree.so* # workaround for https://github.com/ospray/OSPRay/issues/97 X @${RM} -r ${STAGEDIR}${PREFIX}/lib/libtbb*.so* X X.include 2871f3e2838e27cfabb65e8714a64b2b echo x - graphics/ospray/distinfo sed 's/^X//' >graphics/ospray/distinfo << '5b3b61317d25eaef63c932fe230c1b3f' XTIMESTAMP = 1479195132 XSHA256 (ospray-OSPRay-v1.1.1_GH0.tar.gz) = a27113212fee23785434231c399747f75d7ca174c1ddb20dae5ecf7c231798a2 XSIZE (ospray-OSPRay-v1.1.1_GH0.tar.gz) = 1387497 5b3b61317d25eaef63c932fe230c1b3f echo x - graphics/ospray/pkg-descr sed 's/^X//' >graphics/ospray/pkg-descr << '19ddd4bb485354f04bae4d25933fcc74' XOSPRay features interactive CPU rendering capabilities geared towards Scientific XVisualization applications. Advanced shading effects such as Ambient Occlusion, Xshadows, and transparency can be rendered interactively, enabling new insights Xinto data exploration. X XWWW: http://www.ospray.org 19ddd4bb485354f04bae4d25933fcc74 echo c - graphics/ospray/files mkdir -p graphics/ospray/files > /dev/null 2>&1 echo x - graphics/ospray/files/patch-apps_common_miniSG_importRIVL.cpp sed 's/^X//' >graphics/ospray/files/patch-apps_common_miniSG_importRIVL.cpp << '0fe8dad2871b3c1a6cd1f6d5387ed07c' X--- apps/common/miniSG/importRIVL.cpp.orig 2016-10-24 18:48:45 UTC X+++ apps/common/miniSG/importRIVL.cpp X@@ -602,7 +602,7 @@ namespace ospray { X if (fileMappingHandle == nullptr) X fprintf(stderr, "could not create file mapping (error %lu)\n", GetLastError()); X #else X- int fd = ::open(binFileName.c_str(), O_LARGEFILE | O_RDONLY); X+ int fd = ::open(binFileName.c_str(), O_RDONLY); X if (fd == -1) X perror("could not open file"); X #endif 0fe8dad2871b3c1a6cd1f6d5387ed07c echo x - graphics/ospray/files/patch-apps_ospTutorial.c sed 's/^X//' >graphics/ospray/files/patch-apps_ospTutorial.c << 'a387b16887af5b2d5ac9d2885c59af0c' X--- apps/ospTutorial.c.orig 2016-10-24 18:48:45 UTC X+++ apps/ospTutorial.c X@@ -28,7 +28,7 @@ X #ifdef _WIN32 X # include X #else X-# include X+# include X #endif X #include "ospray/ospray.h" X a387b16887af5b2d5ac9d2885c59af0c echo x - graphics/ospray/files/patch-apps_ospTutorial.cpp sed 's/^X//' >graphics/ospray/files/patch-apps_ospTutorial.cpp << 'fb9816fc4003c869306520bee6dd5b10' X--- apps/ospTutorial.cpp.orig 2016-10-24 18:48:45 UTC X+++ apps/ospTutorial.cpp X@@ -28,7 +28,7 @@ X #ifdef _WIN32 X # include X #else X-# include X+# include X #endif X #include "ospray/ospray.h" X fb9816fc4003c869306520bee6dd5b10 echo x - graphics/ospray/files/patch-apps_qtViewer_sg_common_Common.cpp sed 's/^X//' >graphics/ospray/files/patch-apps_qtViewer_sg_common_Common.cpp << '75fa86b66295ef4f41c2c40ec61d36ad' X--- apps/qtViewer/sg/common/Common.cpp.orig 2016-10-24 18:48:45 UTC X+++ apps/qtViewer/sg/common/Common.cpp X@@ -67,7 +67,7 @@ namespace ospray { X if (fileMappingHandle == nullptr) X THROW_SG_ERROR("could not create file mapping (error " + std::to_string(GetLastError()) + ")\n"); X #else X- int fd = ::open(fileName.c_str(), O_LARGEFILE | O_RDONLY); X+ int fd = ::open(fileName.c_str(), O_RDONLY); X if (fd == -1) X THROW_SG_ERROR("could not open file '" + fileName + "'\n"); X #endif 75fa86b66295ef4f41c2c40ec61d36ad echo x - graphics/ospray/files/patch-cmake_configure__embree.cmake sed 's/^X//' >graphics/ospray/files/patch-cmake_configure__embree.cmake << '798d964441e1ec86e6d904a228ab9d32' X--- cmake/configure_embree.cmake.orig 2016-10-24 18:48:45 UTC X+++ cmake/configure_embree.cmake X@@ -86,12 +86,12 @@ IF(OSPRAY_USE_EXTERNAL_EMBREE) X SET(EMBREE_ISA_NAME EMBREE_MAX_ISA) X ENDIF() X X- IF (${${EMBREE_ISA_NAME}} STREQUAL "AVX") X+ IF (${EMBREE_ISA_NAME} STREQUAL "AVX") X SET(EMBREE_ISA_SUPPORTS_AVX TRUE) X- ELSEIF (${${EMBREE_ISA_NAME}} STREQUAL "AVX2") X+ ELSEIF (${EMBREE_ISA_NAME} STREQUAL "AVX2") X SET(EMBREE_ISA_SUPPORTS_AVX TRUE) X SET(EMBREE_ISA_SUPPORTS_AVX2 TRUE) X- ELSEIF (${${EMBREE_ISA_NAME}} STREQUAL "AVX512KNL") X+ ELSEIF (${EMBREE_ISA_NAME} STREQUAL "AVX512KNL") X SET(EMBREE_ISA_SUPPORTS_AVX TRUE) X SET(EMBREE_ISA_SUPPORTS_AVX2 TRUE) X SET(EMBREE_ISA_SUPPORTS_AVX512 TRUE) 798d964441e1ec86e6d904a228ab9d32 echo x - graphics/ospray/files/patch-cmake_FindTBB.cmake sed 's/^X//' >graphics/ospray/files/patch-cmake_FindTBB.cmake << '6bdd0c77d3b5bf4351f81f9fc8057388' X--- cmake/FindTBB.cmake.orig 2016-10-24 18:48:45 UTC X+++ cmake/FindTBB.cmake X@@ -100,15 +100,13 @@ ELSE () X FIND_LIBRARY(TBB_LIBRARY_MALLOC_DEBUG tbbmalloc_debug PATHS ${TBB_ROOT}/lib NO_DEFAULT_PATH) X ELSE() X FIND_PATH(TBB_INCLUDE_DIR tbb/task_scheduler_init.h PATHS ${TBB_ROOT}/include NO_DEFAULT_PATH) X- FIND_LIBRARY(TBB_LIBRARY libtbb.so.2 HINTS ${TBB_ROOT}/lib/intel64/gcc4.4) X- FIND_LIBRARY(TBB_LIBRARY_DEBUG libtbb_debug.so.2 HINTS ${TBB_ROOT}/lib/intel64/gcc4.4) X- FIND_LIBRARY(TBB_LIBRARY_MALLOC libtbbmalloc.so.2 HINTS ${TBB_ROOT}/lib/intel64/gcc4.4) X- FIND_LIBRARY(TBB_LIBRARY_MALLOC_DEBUG libtbbmalloc_debug.so.2 HINTS ${TBB_ROOT}/lib/intel64/gcc4.4) X+ FIND_LIBRARY(TBB_LIBRARY libtbb.so HINTS ${TBB_ROOT}/lib/intel64/gcc4.4) X+ FIND_LIBRARY(TBB_LIBRARY_MALLOC libtbbmalloc.so HINTS ${TBB_ROOT}/lib/intel64/gcc4.4) X ENDIF() X X FIND_PATH(TBB_INCLUDE_DIR_MIC tbb/task_scheduler_init.h PATHS ${TBB_ROOT}/include NO_DEFAULT_PATH) X- FIND_LIBRARY(TBB_LIBRARY_MIC libtbb.so.2 PATHS ${TBB_ROOT}/lib/mic NO_DEFAULT_PATH) X- FIND_LIBRARY(TBB_LIBRARY_MALLOC_MIC libtbbmalloc.so.2 PATHS ${TBB_ROOT}/lib/mic NO_DEFAULT_PATH) X+ FIND_LIBRARY(TBB_LIBRARY_MIC libtbb.so PATHS ${TBB_ROOT}/lib/mic NO_DEFAULT_PATH) X+ FIND_LIBRARY(TBB_LIBRARY_MALLOC_MIC libtbbmalloc.so PATHS ${TBB_ROOT}/lib/mic NO_DEFAULT_PATH) X X MARK_AS_ADVANCED(TBB_INCLUDE_DIR_MIC) X MARK_AS_ADVANCED(TBB_LIBRARY_MIC) X@@ -169,6 +167,5 @@ ENDIF() X X MARK_AS_ADVANCED(TBB_INCLUDE_DIR) X MARK_AS_ADVANCED(TBB_LIBRARY) X-MARK_AS_ADVANCED(TBB_LIBRARY_DEBUG) X MARK_AS_ADVANCED(TBB_LIBRARY_MALLOC) X MARK_AS_ADVANCED(TBB_LIBRARY_MALLOC_DEBUG) 6bdd0c77d3b5bf4351f81f9fc8057388 echo x - graphics/ospray/files/patch-ospcommon_malloc.cpp sed 's/^X//' >graphics/ospray/files/patch-ospcommon_malloc.cpp << 'a33e3343f5d32f9bc6ea367a03fa4032' X--- ospcommon/malloc.cpp.orig 2016-10-24 18:48:45 UTC X+++ ospcommon/malloc.cpp X@@ -109,7 +109,7 @@ namespace ospcommon X X void* os_reserve(size_t bytes) X { X- int flags = MAP_PRIVATE | MAP_ANON | MAP_NORESERVE; X+ int flags = MAP_PRIVATE | MAP_ANON | MAP_RESERVED0040; X #if USE_HUGE_PAGES X if (bytes > 16*4096) { X flags |= MAP_HUGETLB; a33e3343f5d32f9bc6ea367a03fa4032 echo x - graphics/ospray/files/patch-ospcommon_sysinfo.cpp sed 's/^X//' >graphics/ospray/files/patch-ospcommon_sysinfo.cpp << '5f9521a17c4c50f664eddf49a78f143f' X--- ospcommon/sysinfo.cpp.orig 2016-10-24 18:48:45 UTC X+++ ospcommon/sysinfo.cpp X@@ -431,6 +431,29 @@ namespace ospcommon X #endif X X //////////////////////////////////////////////////////////////////////////////// X+/// FreeBSD Platform X+//////////////////////////////////////////////////////////////////////////////// X+ X+#ifdef __FREEBSD__ X+ X+#include X+#include X+ X+namespace ospcommon X+{ X+ std::string getExecutableFileName() X+ { X+ const char *pid = "/proc/curproc/file"; X+ char buf[1024]; X+ int bytes = readlink(pid, buf, sizeof(buf)-1); X+ if (bytes != -1) buf[bytes] = '\0'; X+ return std::string(buf); X+ } X+} X+ X+#endif X+ X+//////////////////////////////////////////////////////////////////////////////// X /// Mac OS X Platform X //////////////////////////////////////////////////////////////////////////////// X 5f9521a17c4c50f664eddf49a78f143f echo x - graphics/ospray/files/patch-ospcommon_thread.cpp sed 's/^X//' >graphics/ospray/files/patch-ospcommon_thread.cpp << '36f0afc8b03588d6a1c733d01c5edaf7' X--- ospcommon/thread.cpp.orig 2016-10-24 18:48:45 UTC X+++ ospcommon/thread.cpp X@@ -24,6 +24,11 @@ X #pragma comment (lib, "pthreadVC.lib") X #endif X X+#if defined(__FREEBSD__) X+#include X+#include X+#endif X+ X //////////////////////////////////////////////////////////////////////////////// X /// Windows Platform X //////////////////////////////////////////////////////////////////////////////// X@@ -187,6 +192,26 @@ namespace ospcommon X #endif X X //////////////////////////////////////////////////////////////////////////////// X+/// FreeBSD Platform X+//////////////////////////////////////////////////////////////////////////////// X+ X+#if defined(__FREEBSD__) X+namespace ospcommon X+{ X+ /*! set affinity of the calling thread */ X+ void setAffinity(ssize_t affinity) X+ { X+ cpuset_t cset; X+ CPU_ZERO(&cset); X+ CPU_SET(affinity, &cset); X+ X+ if (pthread_setaffinity_np(pthread_self(), sizeof(cset), &cset) != 0) X+ WARNING("pthread_setaffinity_np failed"); // on purpose only a warning X+ } X+} X+#endif X+ X+//////////////////////////////////////////////////////////////////////////////// X /// MacOSX Platform X //////////////////////////////////////////////////////////////////////////////// X 36f0afc8b03588d6a1c733d01c5edaf7 echo x - graphics/ospray/pkg-plist sed 's/^X//' >graphics/ospray/pkg-plist << 'c362dd8e72c3049e68dc5329b9e84aaf' Xbin/ospBenchmark Xbin/ospCvtParaViewTfcn Xbin/ospGlutViewer Xbin/ospQtViewer Xbin/ospVolumeViewer Xinclude/ospray/OSPConfig.h Xinclude/ospray/OSPDataType.h Xinclude/ospray/OSPTexture.h Xinclude/ospray/SDK/camera/Camera.h Xinclude/ospray/SDK/camera/Camera.ih Xinclude/ospray/SDK/camera/OrthographicCamera.h Xinclude/ospray/SDK/camera/OrthographicCamera.ih Xinclude/ospray/SDK/camera/PanoramicCamera.h Xinclude/ospray/SDK/camera/PanoramicCamera.ih Xinclude/ospray/SDK/camera/PerspectiveCamera.h Xinclude/ospray/SDK/camera/PerspectiveCamera.ih Xinclude/ospray/SDK/common/Core.h Xinclude/ospray/SDK/common/Data.h Xinclude/ospray/SDK/common/DifferentialGeometry.ih Xinclude/ospray/SDK/common/Library.h Xinclude/ospray/SDK/common/Managed.h Xinclude/ospray/SDK/common/Material.h Xinclude/ospray/SDK/common/Material.ih Xinclude/ospray/SDK/common/Model.h Xinclude/ospray/SDK/common/Model.ih Xinclude/ospray/SDK/common/OSPCommon.h Xinclude/ospray/SDK/common/OSPCommon.ih Xinclude/ospray/SDK/common/ObjectHandle.h Xinclude/ospray/SDK/common/Ray.h Xinclude/ospray/SDK/common/Ray.ih Xinclude/ospray/SDK/common/Texture.h Xinclude/ospray/SDK/common/Thread.h Xinclude/ospray/SDK/common/tasking/TaskSys.h Xinclude/ospray/SDK/common/tasking/TaskingTypeTraits.h Xinclude/ospray/SDK/common/tasking/async.h Xinclude/ospray/SDK/common/tasking/parallel_for.h Xinclude/ospray/SDK/fb/FrameBuffer.h Xinclude/ospray/SDK/fb/FrameBuffer.ih Xinclude/ospray/SDK/fb/PixelOp.h Xinclude/ospray/SDK/fb/Tile.h Xinclude/ospray/SDK/fb/Tile.ih Xinclude/ospray/SDK/geometry/Cylinders.h Xinclude/ospray/SDK/geometry/Geometry.h Xinclude/ospray/SDK/geometry/Geometry.ih Xinclude/ospray/SDK/geometry/Instance.h Xinclude/ospray/SDK/geometry/Isosurfaces.h Xinclude/ospray/SDK/geometry/Slices.h Xinclude/ospray/SDK/geometry/Spheres.h Xinclude/ospray/SDK/geometry/StreamLines.h Xinclude/ospray/SDK/geometry/TriangleMesh.h Xinclude/ospray/SDK/geometry/TriangleMesh.ih Xinclude/ospray/SDK/lights/AmbientLight.h Xinclude/ospray/SDK/lights/DirectionalLight.h Xinclude/ospray/SDK/lights/HDRILight.h Xinclude/ospray/SDK/lights/Light.h Xinclude/ospray/SDK/lights/Light.ih Xinclude/ospray/SDK/lights/PointLight.h Xinclude/ospray/SDK/lights/QuadLight.h Xinclude/ospray/SDK/lights/SpotLight.h Xinclude/ospray/SDK/math/AffineSpace.ih Xinclude/ospray/SDK/math/Distribution2D.ih Xinclude/ospray/SDK/math/LinearSpace.ih Xinclude/ospray/SDK/math/box.ih Xinclude/ospray/SDK/math/math.ih Xinclude/ospray/SDK/math/random.ih Xinclude/ospray/SDK/math/sampling.ih Xinclude/ospray/SDK/math/vec.ih Xinclude/ospray/SDK/render/LoadBalancer.h Xinclude/ospray/SDK/render/Renderer.h Xinclude/ospray/SDK/render/Renderer.ih Xinclude/ospray/SDK/render/util.h Xinclude/ospray/SDK/render/util.ih Xinclude/ospray/SDK/texture/Texture2D.h Xinclude/ospray/SDK/texture/Texture2D.ih Xinclude/ospray/SDK/texture/TextureParam.ih Xinclude/ospray/SDK/transferFunction/LinearTransferFunction.h Xinclude/ospray/SDK/transferFunction/LinearTransferFunction.ih Xinclude/ospray/SDK/transferFunction/TransferFunction.h Xinclude/ospray/SDK/transferFunction/TransferFunction.ih Xinclude/ospray/SDK/volume/BlockBrickedVolume.h Xinclude/ospray/SDK/volume/BlockBrickedVolume.ih Xinclude/ospray/SDK/volume/GhostBlockBrickedVolume.h Xinclude/ospray/SDK/volume/GhostBlockBrickedVolume.ih Xinclude/ospray/SDK/volume/GridAccelerator.ih Xinclude/ospray/SDK/volume/SharedStructuredVolume.h Xinclude/ospray/SDK/volume/SharedStructuredVolume.ih Xinclude/ospray/SDK/volume/StructuredVolume.h Xinclude/ospray/SDK/volume/StructuredVolume.ih Xinclude/ospray/SDK/volume/Volume.h Xinclude/ospray/SDK/volume/Volume.ih Xinclude/ospray/ospcommon/AffineSpace.h Xinclude/ospray/ospcommon/FileName.h Xinclude/ospray/ospcommon/LinearSpace.h Xinclude/ospray/ospcommon/Quaternion.h Xinclude/ospray/ospcommon/RefCount.h Xinclude/ospray/ospcommon/box.h Xinclude/ospray/ospcommon/common.h Xinclude/ospray/ospcommon/constants.h Xinclude/ospray/ospcommon/intrinsics.h Xinclude/ospray/ospcommon/library.h Xinclude/ospray/ospcommon/malloc.h Xinclude/ospray/ospcommon/math.h Xinclude/ospray/ospcommon/platform.h Xinclude/ospray/ospcommon/sysinfo.h Xinclude/ospray/ospcommon/thread.h Xinclude/ospray/ospcommon/vec.h Xinclude/ospray/ospray.h Xinclude/ospray/ospray_cpp/Camera.h Xinclude/ospray/ospray_cpp/Data.h Xinclude/ospray/ospray_cpp/FrameBuffer.h Xinclude/ospray/ospray_cpp/Geometry.h Xinclude/ospray/ospray_cpp/Light.h Xinclude/ospray/ospray_cpp/ManagedObject.h Xinclude/ospray/ospray_cpp/Material.h Xinclude/ospray/ospray_cpp/Model.h Xinclude/ospray/ospray_cpp/PixelOp.h Xinclude/ospray/ospray_cpp/Renderer.h Xinclude/ospray/ospray_cpp/Texture2D.h Xinclude/ospray/ospray_cpp/TransferFunction.h Xinclude/ospray/ospray_cpp/Volume.h Xinclude/ospray/version.h Xlib/cmake/ospray-1.1.1/FindTBB.cmake Xlib/cmake/ospray-1.1.1/clang.cmake Xlib/cmake/ospray-1.1.1/gcc.cmake Xlib/cmake/ospray-1.1.1/icc.cmake Xlib/cmake/ospray-1.1.1/icc_xeonphi.cmake Xlib/cmake/ospray-1.1.1/ispc.cmake Xlib/cmake/ospray-1.1.1/msvc.cmake Xlib/cmake/ospray-1.1.1/osprayConfig.cmake Xlib/cmake/ospray-1.1.1/osprayConfigVersion.cmake Xlib/cmake/ospray-1.1.1/osprayUse.cmake Xlib/cmake/ospray-1.1.1/ospray_macros.cmake Xlib/libospray.so Xlib/libospray.so.0 Xlib/libospray.so.1.1.1 Xlib/libospray_commandline.so Xlib/libospray_commandline.so.0 Xlib/libospray_commandline.so.1.1.1 Xlib/libospray_common.so Xlib/libospray_common.so.0 Xlib/libospray_common.so.1.1.1 Xlib/libospray_glut3d.so Xlib/libospray_glut3d.so.0 Xlib/libospray_glut3d.so.1.1.1 Xlib/libospray_importer.so Xlib/libospray_importer.so.0 Xlib/libospray_importer.so.1.1.1 Xlib/libospray_module_opengl_util.so Xlib/libospray_module_opengl_util.so.0 Xlib/libospray_module_opengl_util.so.1.1.1 Xlib/libospray_script.so Xlib/libospray_script.so.0 Xlib/libospray_script.so.1.1.1 Xlib/libospray_tfn.so Xlib/libospray_tfn.so.0 Xlib/libospray_tfn.so.1.1.1 Xlib/libospray_xml.so Xlib/libospray_xml.so.0 Xlib/libospray_xml.so.1.1.1 X%%DOCSDIR%%/CHANGELOG.md X%%DOCSDIR%%/LICENSE.txt X%%DOCSDIR%%/README.md c362dd8e72c3049e68dc5329b9e84aaf exit