From owner-svn-ports-head@freebsd.org Sat Jan 9 05:49:51 2021 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7832D4CA363; Sat, 9 Jan 2021 05:49:51 +0000 (UTC) (envelope-from nobutaka@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DCTZR2yWTz4YMx; Sat, 9 Jan 2021 05:49:51 +0000 (UTC) (envelope-from nobutaka@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5418010B51; Sat, 9 Jan 2021 05:49:51 +0000 (UTC) (envelope-from nobutaka@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 1095npnX031561; Sat, 9 Jan 2021 05:49:51 GMT (envelope-from nobutaka@FreeBSD.org) Received: (from nobutaka@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 1095nosw031558; Sat, 9 Jan 2021 05:49:50 GMT (envelope-from nobutaka@FreeBSD.org) Message-Id: <202101090549.1095nosw031558@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: nobutaka set sender to nobutaka@FreeBSD.org using -f From: MANTANI Nobutaka Date: Sat, 9 Jan 2021 05:49:50 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r560832 - in head/editors/imhex: . files X-SVN-Group: ports-head X-SVN-Commit-Author: nobutaka X-SVN-Commit-Paths: in head/editors/imhex: . files X-SVN-Commit-Revision: 560832 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jan 2021 05:49:51 -0000 Author: nobutaka Date: Sat Jan 9 05:49:50 2021 New Revision: 560832 URL: https://svnweb.freebsd.org/changeset/ports/560832 Log: Update to 1.6.0. Deleted: head/editors/imhex/files/patch-include_helpers_utils.hpp head/editors/imhex/files/patch-source_helpers_utils.cpp head/editors/imhex/files/patch-source_providers_file__provider.cpp head/editors/imhex/files/patch-source_views_view__strings.cpp head/editors/imhex/files/patch-source_views_view__tools.cpp Modified: head/editors/imhex/Makefile head/editors/imhex/distinfo (contents, props changed) head/editors/imhex/files/patch-CMakeLists.txt (contents, props changed) head/editors/imhex/files/patch-source_views_view__hexeditor.cpp (contents, props changed) Modified: head/editors/imhex/Makefile ============================================================================== --- head/editors/imhex/Makefile Sat Jan 9 03:17:21 2021 (r560831) +++ head/editors/imhex/Makefile Sat Jan 9 05:49:50 2021 (r560832) @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= imhex -PORTVERSION= 1.5.0 +PORTVERSION= 1.6.0 CATEGORIES= editors MAINTAINER= nobutaka@FreeBSD.org @@ -17,6 +17,7 @@ BUILD_DEPENDS= c++10:lang/gcc10 \ glm>0:math/glm \ nlohmann-json>0:devel/nlohmann-json LIB_DEPENDS= libcapstone.so:devel/capstone4 \ + libfreetype.so:print/freetype2 \ libglfw.so:graphics/glfw \ libstdc++.so:lang/gcc10 \ libtre.so:textproc/libtre @@ -26,8 +27,9 @@ USE_XORG= x11 xcb xau xdmcp USE_GITHUB= yes GH_ACCOUNT= WerWolv GH_PROJECT= ImHex -GH_TAGNAME= v1.5.0 +GH_TAGNAME= v${PORTVERSION} +CC= ${LOCALBASE}/bin/gcc10 CXX= ${LOCALBASE}/bin/c++10 PLIST_FILES= bin/imhex Modified: head/editors/imhex/distinfo ============================================================================== --- head/editors/imhex/distinfo Sat Jan 9 03:17:21 2021 (r560831) +++ head/editors/imhex/distinfo Sat Jan 9 05:49:50 2021 (r560832) @@ -1,3 +1,3 @@ -TIMESTAMP = 1607336763 -SHA256 (WerWolv-ImHex-1.5.0-v1.5.0_GH0.tar.gz) = 211cca3a22d9c0d8a7a3bfa2a3aa7c29cd954c207979632fe9b9a08cf9b8444b -SIZE (WerWolv-ImHex-1.5.0-v1.5.0_GH0.tar.gz) = 848041 +TIMESTAMP = 1610164429 +SHA256 (WerWolv-ImHex-1.6.0-v1.6.0_GH0.tar.gz) = c096c01dc0a90b4691ddf3305763f0477bc79a96c0144cba865e6b7fa59f2043 +SIZE (WerWolv-ImHex-1.6.0-v1.6.0_GH0.tar.gz) = 952054 Modified: head/editors/imhex/files/patch-CMakeLists.txt ============================================================================== --- head/editors/imhex/files/patch-CMakeLists.txt Sat Jan 9 03:17:21 2021 (r560831) +++ head/editors/imhex/files/patch-CMakeLists.txt Sat Jan 9 05:49:50 2021 (r560832) @@ -1,55 +1,15 @@ ---- CMakeLists.txt.orig 2020-12-06 20:40:57 UTC +--- CMakeLists.txt.orig 2021-01-08 19:12:16 UTC +++ CMakeLists.txt -@@ -10,23 +10,21 @@ set(CMAKE_CXX_STANDARD 20) +@@ -23,7 +23,11 @@ set(Python_FIND_FRAMEWORK NEVER) + + # Find packages find_package(PkgConfig REQUIRED) - pkg_search_module(GLFW REQUIRED glfw3) - pkg_search_module(GLM REQUIRED glm) -pkg_search_module(CRYPTO REQUIRED libcrypto) ++if (CMAKE_SYSTEM_NAME MATCHES FreeBSD) ++ find_library(CRYPTO crypto REQUIRED) ++else() ++ pkg_search_module(CRYPTO REQUIRED libcrypto) ++endif() pkg_search_module(CAPSTONE REQUIRED capstone) find_package(OpenGL REQUIRED) --find_package(LLVM REQUIRED CONFIG) find_package(nlohmann_json REQUIRED) - find_package(Python COMPONENTS Interpreter Development) - -+include(CheckCXXSymbolExists) -+check_cxx_symbol_exists(abi::__cxa_demangle "cxxabi.h" HAVE_CXXABI) -+ - if(Python_VERSION LESS 3) - message(STATUS ${PYTHON_VERSION_MAJOR_MINOR}) - message(FATAL_ERROR "No valid version of Python 3 was found.") - endif() - --llvm_map_components_to_libnames(_llvm_libs demangle) --llvm_expand_dependencies(llvm_libs ${_llvm_libs}) -+include_directories(include ${GLFW_INCLUDE_DIRS} ${CAPSTONE_INCLUDE_DIRS} libs/ImGui/include libs/glad/include ${Python_INCLUDE_DIRS}) - --include_directories(include ${GLFW_INCLUDE_DIRS} ${CAPSTONE_INCLUDE_DIRS} ${LLVM_INCLUDE_DIRS} libs/ImGui/include libs/glad/include ${Python_INCLUDE_DIRS}) -- - # Get Python major and minor - string(REPLACE "." ";" PYTHON_VERSION_MAJOR_MINOR ${Python_VERSION}) - list(REMOVE_AT PYTHON_VERSION_MAJOR_MINOR 2) -@@ -42,7 +40,7 @@ endif (WIN32) - SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DRELEASE") - SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG") - --add_executable(ImHex -+add_executable(imhex - source/main.cpp - source/window.cpp - -@@ -88,12 +86,10 @@ add_executable(ImHex - resource.rc - ) - --target_link_directories(ImHex PRIVATE ${LLVM_LIBRARY_DIR}) -- - if (WIN32) - target_link_libraries(ImHex libglfw3.a libgcc.a libstdc++.a libmagic.a libgnurx.a libtre.a libintl.a libiconv.a shlwapi.lib libcrypto.a libwinpthread.a libcapstone.a ${llvm_libs} ${Python_LIBRARIES} nlohmann_json::nlohmann_json) - endif (WIN32) - - if (UNIX) -- target_link_libraries(ImHex libglfw.so libmagic.so libcrypto.so libdl.so libcapstone.so ${llvm_libs} ${Python_LIBRARIES} nlohmann_json::nlohmann_json) --endif (UNIX) -\ No newline at end of file -+ target_link_libraries(imhex libglfw.so libmagic.so libcrypto.so libdl.so libcapstone.so ${Python_LIBRARIES} nlohmann_json::nlohmann_json) -+endif (UNIX) Modified: head/editors/imhex/files/patch-source_views_view__hexeditor.cpp ============================================================================== --- head/editors/imhex/files/patch-source_views_view__hexeditor.cpp Sat Jan 9 03:17:21 2021 (r560831) +++ head/editors/imhex/files/patch-source_views_view__hexeditor.cpp Sat Jan 9 05:49:50 2021 (r560832) @@ -1,13 +1,13 @@ ---- source/views/view_hexeditor.cpp.orig 2020-12-06 20:40:57 UTC +--- source/views/view_hexeditor.cpp.orig 2021-01-08 19:12:16 UTC +++ source/views/view_hexeditor.cpp @@ -13,6 +13,10 @@ #undef __STRICT_ANSI__ #include -+#if defined(__APPLE__) || defined(__FreeBSD__) ++#if defined(__FreeBSD__) + #define ftello64 ftell +#endif + namespace hex { - ViewHexEditor::ViewHexEditor(prv::Provider* &dataProvider, std::vector &patternData) + ViewHexEditor::ViewHexEditor(std::vector &patternData)