# 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/instant-meshes # graphics/instant-meshes/Makefile # graphics/instant-meshes/pkg-plist # graphics/instant-meshes/distinfo # graphics/instant-meshes/files # graphics/instant-meshes/files/patch-CMakeLists.txt # graphics/instant-meshes/files/instant-meshes.desktop # graphics/instant-meshes/files/patch-ext_nanogui_CMakeLists.txt # graphics/instant-meshes/files/patch-ext_nanogui_src_common.cpp # graphics/instant-meshes/pkg-descr # graphics/instant-meshes/pkg-message # echo c - graphics/instant-meshes mkdir -p graphics/instant-meshes > /dev/null 2>&1 echo x - graphics/instant-meshes/Makefile sed 's/^X//' >graphics/instant-meshes/Makefile << '6844a24738e49ffaa9520c57d577b75b' X# $FreeBSD$ X XPORTNAME= instant-meshes XDISTVERSION= 0.0-42 XDISTVERSIONSUFFIX= -g4a083f4 XCATEGORIES= graphics X XMAINTAINER= greg@unrelenting.technology XCOMMENT= Interactive field-aligned mesh generator X XLICENSE= BSD3CLAUSE XLICENSE_FILE= ${WRKSRC}/LICENSE.txt X XBUILD_DEPENDS= convert:graphics/ImageMagick XRUN_DEPENDS= zenity:x11/zenity XLIB_DEPENDS= libtbb.so:devel/tbb X XUSES= cmake:outsource compiler:c++11-lang localbase:ldflags pkgconfig XUSE_GITHUB= yes XGH_ACCOUNT= wjakob XGH_TUPLE= wjakob:nanogui:2a61f03:nanogui/ext/nanogui \ X libigl:eigen:c34a913:eigen \ X wjakob:glfw:0ff30d6:glfw \ X wjakob:nanovg:ac15b84:nanovg \ X pybind:pybind11:c01a1c1:pybind11 \ X wjakob:pcg32:0ef13e6:pcg32/ext/pcg32 \ X wjakob:dset:7967ef0:dset/ext/dset \ X wjakob:pss:a91da33:pss/ext/pss XUSE_GL= gl XUSE_XORG= xxf86vm xrandr xinerama xcursor xi x11 X X#CMAKE_ARGS= -DBUILD_SHARED_LIBS:BOOL=ON # Build doesn't respect it: https://github.com/wjakob/instant-meshes/issues/63 XLDFLAGS+= -ltbb X Xpost-extract: X ${MV} ${WRKSRC_eigen}/* ${WRKSRC}/ext/nanogui/ext/eigen X ${MV} ${WRKSRC_glfw}/* ${WRKSRC}/ext/nanogui/ext/glfw X ${MV} ${WRKSRC_nanovg}/* ${WRKSRC}/ext/nanogui/ext/nanovg X ${MV} ${WRKSRC_pybind11}/* ${WRKSRC}/ext/nanogui/ext/pybind11 X Xpost-build: X convert -verbose -resize 500x500 -gravity center -background none -extent 512x512 \ X ${WRKSRC}/resources/icon.png ${WRKDIR}/icon_512x512.png X.for size in 128x128 192x192 256x256 X convert -verbose -resize ${size} ${WRKDIR}/icon_512x512.png ${WRKDIR}/icon_${size}.png X.endfor X.for size in 16x16 24x24 32x32 48x48 64x64 96x96 X convert -verbose -resize ${size} ${WRKDIR}/icon_512x512.png -unsharp 0x6 ${WRKDIR}/icon_${size}.png X.endfor X Xpost-install: X.for size in 16x16 24x24 32x32 48x48 64x64 96x96 128x128 192x192 256x256 512x512 X ${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${size}/apps X ${INSTALL_DATA} ${WRKDIR}/icon_${size}.png \ X ${STAGEDIR}${PREFIX}/share/icons/hicolor/${size}/apps/${PORTNAME}.png X.endfor X ${INSTALL_PROGRAM} ${CONFIGURE_WRKSRC}/"Instant Meshes" ${STAGEDIR}${PREFIX}/bin/${PORTNAME} X ${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications/ X X.include 6844a24738e49ffaa9520c57d577b75b echo x - graphics/instant-meshes/pkg-plist sed 's/^X//' >graphics/instant-meshes/pkg-plist << 'a9191959473eeedf25760945e820555a' Xbin/instant-meshes Xinclude/nanogui/button.h Xinclude/nanogui/checkbox.h Xinclude/nanogui/colorpicker.h Xinclude/nanogui/colorwheel.h Xinclude/nanogui/combobox.h Xinclude/nanogui/common.h Xinclude/nanogui/compat.h Xinclude/nanogui/entypo.h Xinclude/nanogui/formhelper.h Xinclude/nanogui/glutil.h Xinclude/nanogui/graph.h Xinclude/nanogui/imagepanel.h Xinclude/nanogui/imageview.h Xinclude/nanogui/label.h Xinclude/nanogui/layout.h Xinclude/nanogui/messagedialog.h Xinclude/nanogui/nanogui.h Xinclude/nanogui/object.h Xinclude/nanogui/opengl.h Xinclude/nanogui/popup.h Xinclude/nanogui/popupbutton.h Xinclude/nanogui/progressbar.h Xinclude/nanogui/python.h Xinclude/nanogui/screen.h Xinclude/nanogui/serializer/core.h Xinclude/nanogui/serializer/opengl.h Xinclude/nanogui/serializer/sparse.h Xinclude/nanogui/slider.h Xinclude/nanogui/stackedwidget.h Xinclude/nanogui/tabheader.h Xinclude/nanogui/tabwidget.h Xinclude/nanogui/textbox.h Xinclude/nanogui/theme.h Xinclude/nanogui/toolbutton.h Xinclude/nanogui/vscrollpanel.h Xinclude/nanogui/widget.h Xinclude/nanogui/window.h Xlib/libnanogui.a Xshare/applications/instant-meshes.desktop Xshare/icons/hicolor/128x128/apps/instant-meshes.png Xshare/icons/hicolor/16x16/apps/instant-meshes.png Xshare/icons/hicolor/192x192/apps/instant-meshes.png Xshare/icons/hicolor/24x24/apps/instant-meshes.png Xshare/icons/hicolor/256x256/apps/instant-meshes.png Xshare/icons/hicolor/32x32/apps/instant-meshes.png Xshare/icons/hicolor/48x48/apps/instant-meshes.png Xshare/icons/hicolor/512x512/apps/instant-meshes.png Xshare/icons/hicolor/64x64/apps/instant-meshes.png Xshare/icons/hicolor/96x96/apps/instant-meshes.png a9191959473eeedf25760945e820555a echo x - graphics/instant-meshes/distinfo sed 's/^X//' >graphics/instant-meshes/distinfo << '18990639709175c659b52b98b3ba5688' XTIMESTAMP = 1510121253 XSHA256 (wjakob-instant-meshes-0.0-42-g4a083f4_GH0.tar.gz) = 8fbde93e36a8f8007463b6a34c15b755e3bb9856944f63a61773708021396e10 XSIZE (wjakob-instant-meshes-0.0-42-g4a083f4_GH0.tar.gz) = 3001873 XSHA256 (wjakob-nanogui-2a61f03_GH0.tar.gz) = 449ec1c4510377a651de5357b18b7540f9cc4bbf2cac6b1b36d28ceff045a6b3 XSIZE (wjakob-nanogui-2a61f03_GH0.tar.gz) = 2420569 XSHA256 (libigl-eigen-c34a913_GH0.tar.gz) = 4727123dc498f0762748d9eaeb462a2f5b3da8f315e0a4bd4f0b39c53aa35d4e XSIZE (libigl-eigen-c34a913_GH0.tar.gz) = 1518424 XSHA256 (wjakob-glfw-0ff30d6_GH0.tar.gz) = 31bd08bd1d8061a3f62ff970561994b6c90d2db7ab955134cef71ee0eda5d165 XSIZE (wjakob-glfw-0ff30d6_GH0.tar.gz) = 471108 XSHA256 (wjakob-nanovg-ac15b84_GH0.tar.gz) = b7971a9c4ae472c39190ed6b24d98622fec3ace0e744362fa8b540dba212a4ff XSIZE (wjakob-nanovg-ac15b84_GH0.tar.gz) = 2014793 XSHA256 (pybind-pybind11-c01a1c1_GH0.tar.gz) = 84cd4dc4c0b703a43d8d547c8ddadcf30d3c26e45e3a1565bd9d5ef5040fcf7d XSIZE (pybind-pybind11-c01a1c1_GH0.tar.gz) = 360503 XSHA256 (wjakob-pcg32-0ef13e6_GH0.tar.gz) = 4043b476e24158b5fc157428f2c09eea342a8f03e77fa9d57609e220e8605b9e XSIZE (wjakob-pcg32-0ef13e6_GH0.tar.gz) = 5320 XSHA256 (wjakob-dset-7967ef0_GH0.tar.gz) = 5f9361a6760b327cacbe77e9260bc3b121c35ff740c61d235aff7079efaa4423 XSIZE (wjakob-dset-7967ef0_GH0.tar.gz) = 2492 XSHA256 (wjakob-pss-a91da33_GH0.tar.gz) = e2dc7fd87c44971ea53d0c7436daa70ae3caba77facff7b5554fdb5a3d67c1b5 XSIZE (wjakob-pss-a91da33_GH0.tar.gz) = 3476 18990639709175c659b52b98b3ba5688 echo c - graphics/instant-meshes/files mkdir -p graphics/instant-meshes/files > /dev/null 2>&1 echo x - graphics/instant-meshes/files/patch-CMakeLists.txt sed 's/^X//' >graphics/instant-meshes/files/patch-CMakeLists.txt << 'f407197d6808e511de4362ac6ddcdfef' X--- CMakeLists.txt.orig 2017-09-06 16:18:14 UTC X+++ CMakeLists.txt X@@ -75,8 +75,8 @@ set(TBB_BUILD_TBBMALLOC OFF CACHE BOOL " X set(TBB_BUILD_TBBMALLOC_PROXY OFF CACHE BOOL " " FORCE) X set(TBB_BUILD_TESTS OFF CACHE BOOL " " FORCE) X X-add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/ext/tbb ext_build/tbb) X-set_property(TARGET tbb_static tbb_def_files PROPERTY FOLDER "dependencies") X+#add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/ext/tbb ext_build/tbb) X+#set_property(TARGET tbb_static tbb_def_files PROPERTY FOLDER "dependencies") X X # Compile instant meshes with various compiler warnings turned on X if(MSVC) X@@ -173,7 +173,7 @@ add_executable(InstantMeshes MACOSX_BUND X ${EXTRA_SOURCE}) X X add_definitions(${NANOGUI_EXTRA_DEFS}) X-target_link_libraries(InstantMeshes tbb_static nanogui ${NANOGUI_EXTRA_LIBS}) X+target_link_libraries(InstantMeshes nanogui ${NANOGUI_EXTRA_LIBS}) X X set_target_properties(InstantMeshes PROPERTIES OUTPUT_NAME "Instant Meshes") X f407197d6808e511de4362ac6ddcdfef echo x - graphics/instant-meshes/files/instant-meshes.desktop sed 's/^X//' >graphics/instant-meshes/files/instant-meshes.desktop << '7afa9f1e33013f02dcfd8091ba15296f' X[Desktop Entry] XType=Application XVersion=1.0 XName=Instant Meshes XGenericName=An interactive field-aligned mesh generator XComment=An interactive field-aligned mesh generator XIcon=instant-meshes X# radeonsi_dri crash with DRI3 X#Exec=env LIBGL_DRI3_DISABLE=1 "Instant Meshes" XExec=sh -c "LIBGL_DRI3_DISABLE=1 instant-meshes" XCategories=Graphics;3DGraphics; XStartupNotify=true 7afa9f1e33013f02dcfd8091ba15296f echo x - graphics/instant-meshes/files/patch-ext_nanogui_CMakeLists.txt sed 's/^X//' >graphics/instant-meshes/files/patch-ext_nanogui_CMakeLists.txt << 'f620a6ed17bbb8a71b2c04870a7f0d9d' X--- ext/nanogui/CMakeLists.txt.orig 2016-10-15 20:12:12 UTC X+++ ext/nanogui/CMakeLists.txt X@@ -174,13 +174,6 @@ if (NANOGUI_BUILD_SHARED) X endif() X endif() X X-# Always use libc++ on Clang X-if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") X- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++") X- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -lc++abi") X- set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -stdlib=libc++ -lc++abi") X-endif() X- X if (NANOGUI_USE_GLAD) X # Build and include GLAD on Windows X list(APPEND LIBNANOGUI_EXTRA_SOURCE f620a6ed17bbb8a71b2c04870a7f0d9d echo x - graphics/instant-meshes/files/patch-ext_nanogui_src_common.cpp sed 's/^X//' >graphics/instant-meshes/files/patch-ext_nanogui_src_common.cpp << '1ae35a9fcec053c77b602e92d3ed4c87' X--- ext/nanogui/src/common.cpp.orig 2016-10-15 20:12:12 UTC X+++ ext/nanogui/src/common.cpp X@@ -248,7 +248,7 @@ std::string file_dialog(const std::vecto X return std::string(ofn.lpstrFile); X #else X char buffer[FILE_DIALOG_MAX_BUFFER]; X- std::string cmd = "/usr/bin/zenity --file-selection "; X+ std::string cmd = "zenity --file-selection "; X if (save) X cmd += "--save "; X cmd += "--file-filter=\""; 1ae35a9fcec053c77b602e92d3ed4c87 echo x - graphics/instant-meshes/pkg-descr sed 's/^X//' >graphics/instant-meshes/pkg-descr << '1543a7a4addde25d83f2f247da3e2a64' XInteractive 3D mesh retopology software developed as part of the publication X"Instant Field-Aligned Meshes". X XThe application implements a novel approach to remesh a surface into an Xisotropic triangular or quad-dominant mesh using a unified local smoothing Xoperator that optimizes both the edge orientations and vertex positions in Xthe output mesh. The algorithm produces meshes with high isotropy while Xnaturally aligning and snapping edges to sharp features. X XWWW: https://igl.ethz.ch/projects/instant-meshes 1543a7a4addde25d83f2f247da3e2a64 echo x - graphics/instant-meshes/pkg-message sed 's/^X//' >graphics/instant-meshes/pkg-message << '3a2790f28991414568b9ce7bf7fe0fec' X====================================================================== XYou installed instant-meshes: interactive field-aligned mesh generator X XPlease also download and unzip 'Datasets' using the link on this site: Xhttps://github.com/wjakob/instant-meshes X XYou can open these datasets in the application. X====================================================================== 3a2790f28991414568b9ce7bf7fe0fec exit