# 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: # # science/ospray # science/ospray/Makefile # science/ospray/distinfo # science/ospray/pkg-descr # science/ospray/files # science/ospray/files/patch-apps_common_miniSG_importRIVL.cpp # science/ospray/files/patch-apps_ospTutorial.c # science/ospray/files/patch-apps_ospTutorial.cpp # science/ospray/files/patch-apps_qtViewer_sg_common_Common.cpp # science/ospray/files/patch-cmake_configure__embree.cmake # science/ospray/files/patch-cmake_FindTBB.cmake # science/ospray/files/patch-ospcommon_malloc.cpp # science/ospray/files/patch-ospcommon_sysinfo.cpp # science/ospray/files/patch-ospcommon_thread.cpp # science/ospray/pkg-plist # echo c - science/ospray mkdir -p science/ospray > /dev/null 2>&1 echo x - science/ospray/Makefile sed 's/^X//' >science/ospray/Makefile << '4c6df35a80c5aeecc1473354010daf2b' X# Created by: Yuri Victorovich X# $FreeBSD$ X XPORTNAME= OSPRay XPORTVERSION= 1.1.1 XDISTVERSIONPREFIX= v XCATEGORIES= science graphics X XMAINTAINER= yuri@rawbw.com XCOMMENT= Ray tracing based rendering engine for high-fidelity visualization X XLICENSE= APACHE20 XLICENSE_FILE= ${WRKSRC}/LICENSE.txt 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 @${RM} -r ${STAGEDIR}${DOCSDIR}/LICENSE.txt X X.include 4c6df35a80c5aeecc1473354010daf2b echo x - science/ospray/distinfo sed 's/^X//' >science/ospray/distinfo << 'eaa610baa7696654f96aefd83cb969f0' XTIMESTAMP = 1479195132 XSHA256 (ospray-OSPRay-v1.1.1_GH0.tar.gz) = a27113212fee23785434231c399747f75d7ca174c1ddb20dae5ecf7c231798a2 XSIZE (ospray-OSPRay-v1.1.1_GH0.tar.gz) = 1387497 eaa610baa7696654f96aefd83cb969f0 echo x - science/ospray/pkg-descr sed 's/^X//' >science/ospray/pkg-descr << 'fc330b12cfa443c4fa06e7655d5f3b8b' 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 fc330b12cfa443c4fa06e7655d5f3b8b echo c - science/ospray/files mkdir -p science/ospray/files > /dev/null 2>&1 echo x - science/ospray/files/patch-apps_common_miniSG_importRIVL.cpp sed 's/^X//' >science/ospray/files/patch-apps_common_miniSG_importRIVL.cpp << '1e89a81ea8a9caf3acf20b35ddc0dc87' 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 1e89a81ea8a9caf3acf20b35ddc0dc87 echo x - science/ospray/files/patch-apps_ospTutorial.c sed 's/^X//' >science/ospray/files/patch-apps_ospTutorial.c << '5dbe1afa6e2f4b75a2dedb6a75e31c86' 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 5dbe1afa6e2f4b75a2dedb6a75e31c86 echo x - science/ospray/files/patch-apps_ospTutorial.cpp sed 's/^X//' >science/ospray/files/patch-apps_ospTutorial.cpp << '6fa3815c347517d899d2c255bd4828d2' 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 6fa3815c347517d899d2c255bd4828d2 echo x - science/ospray/files/patch-apps_qtViewer_sg_common_Common.cpp sed 's/^X//' >science/ospray/files/patch-apps_qtViewer_sg_common_Common.cpp << 'fb51f5a400342f0ccbfc7c97318f3b53' 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 fb51f5a400342f0ccbfc7c97318f3b53 echo x - science/ospray/files/patch-cmake_configure__embree.cmake sed 's/^X//' >science/ospray/files/patch-cmake_configure__embree.cmake << 'e3e71972c5cb5fcb7af7f888b9a6d6a8' 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) e3e71972c5cb5fcb7af7f888b9a6d6a8 echo x - science/ospray/files/patch-cmake_FindTBB.cmake sed 's/^X//' >science/ospray/files/patch-cmake_FindTBB.cmake << '8196a5009147e0f8f1c3bccfcf40a927' 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) 8196a5009147e0f8f1c3bccfcf40a927 echo x - science/ospray/files/patch-ospcommon_malloc.cpp sed 's/^X//' >science/ospray/files/patch-ospcommon_malloc.cpp << 'aecb5b2ca335a030d951b8567181d73f' 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; aecb5b2ca335a030d951b8567181d73f echo x - science/ospray/files/patch-ospcommon_sysinfo.cpp sed 's/^X//' >science/ospray/files/patch-ospcommon_sysinfo.cpp << '5536b7a10dfdc72347517f106420b334' 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 5536b7a10dfdc72347517f106420b334 echo x - science/ospray/files/patch-ospcommon_thread.cpp sed 's/^X//' >science/ospray/files/patch-ospcommon_thread.cpp << '745b743e9bf491e44874526073f22c55' 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 745b743e9bf491e44874526073f22c55 echo x - science/ospray/pkg-plist sed 's/^X//' >science/ospray/pkg-plist << '19259b82ccb2dbd3727819f3fb421a4a' 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%%/README.md 19259b82ccb2dbd3727819f3fb421a4a exit