diff --git a/misc/nn-insight/Makefile b/misc/nn-insight/Makefile index 6203e7a50326..a5ba3f8a1956 100644 --- a/misc/nn-insight/Makefile +++ b/misc/nn-insight/Makefile @@ -1,35 +1,38 @@ PORTNAME= nn-insight DISTVERSION= 1.0.7 +PORTREVISION= 1 CATEGORIES= misc # machine-learning MAINTAINER= yuri@FreeBSD.org COMMENT= Neural network visualization software LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= avir>0:graphics/avir \ ${LOCALBASE}/include/exprtk.hpp:math/exprtk \ flatc:devel/flatbuffers \ half>0:math/half \ nlohmann-json>0:devel/nlohmann-json \ png++>0:graphics/png++ LIB_DEPENDS= libcgraph.so:graphics/graphviz \ libpng.so:graphics/png \ libQCustomPlot-qt5.so:graphics/qcustomplot-qt5 \ libtcmalloc.so:devel/google-perftools USES= compiler:c++17-lang cmake pkgconfig qt:5 USE_QT= core gui svg widgets buildtools_build qmake_build USE_GITHUB= yes GH_ACCOUNT= yurivict -CMAKE_ARGS_aarch64= -DENABLE_NATIVE_OPTIMIZATIONS=OFF - PLIST_FILES= bin/nn-insight \ libexec/nn-insight/tf-lite-plugin.so PORTSCOUT= limit:^.*[1-9]\. # prevent hashes +OPTIONS_DEFINE= NATIVE +NATIVE_DESC= Build with native optimizations (-march=native) +NATIVE_CMAKE_BOOL= ENABLE_NATIVE_OPTIMIZATIONS + .include diff --git a/misc/nn-insight/files/patch-CMakeLists.txt b/misc/nn-insight/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..7efb2696accb --- /dev/null +++ b/misc/nn-insight/files/patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2022-09-06 16:20:58 UTC ++++ CMakeLists.txt +@@ -63,7 +63,7 @@ find_path(HALF_PRECISION half.hpp) + if (NOT HALF_PRECISION) + message(FATAL_ERROR "Failed to find the half-precision floating point library (half.hpp)") + endif() +-find_package(Flatbuffers REQUIRED) ++find_package(FlatBuffers REQUIRED) + pkg_check_modules(libcgraph libgvc REQUIRED IMPORTED_TARGET libcgraph) + if (USE_PERFTOOLS) + pkg_check_modules(libtcmalloc REQUIRED IMPORTED_TARGET libtcmalloc)