mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
rizin/cutter, bump versions (#13811)
This commit is contained in:
@@ -7,15 +7,14 @@ engineers for reverse engineers."
|
||||
HOMEPAGE="https://github.com/rizinorg/cutter"
|
||||
COPYRIGHT="2021 xarkes, thestr4ng3r, ballessay, Hugo Teso"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="$HOMEPAGE/archive/refs/tags/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="5dc07d6a4903ccdb6c031310a85377793edf24dc0b8990e70a8f5c94af06a2a2"
|
||||
CHECKSUM_SHA256="91c5fbd79d496b48dec6ac72b7ac166dd307fa905d4f1bc38dbcb2603b956eed"
|
||||
SOURCE_FILENAME="cutter-$portVersion.tar.gz"
|
||||
srcGitRev_2="8358f174d519bbf0d6cf4e1ccbe586308c009f85"
|
||||
SOURCE_URI_2="https://github.com/rizinorg/cutter-translations/archive/$srcGitRev_2.tar.gz"
|
||||
CHECKSUM_SHA256_2="923d5703b481509576a0a1b3e396b8d8ac3b214b3e4db7b87325f7615ca408cd"
|
||||
SOURCE_FILENAME_2="translations-$srcGitRev_2.tar.gz"
|
||||
PATCHES="cutter-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="cutter.rdef.in"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
@@ -23,7 +22,7 @@ SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
cutter$secondaryArchSuffix = $portVersion
|
||||
app:Cutter = $portVersion
|
||||
app:Cutter$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
@@ -36,8 +35,8 @@ REQUIRES="
|
||||
lib:libQt6Gui$secondaryArchSuffix
|
||||
lib:libQt6Svg$secondaryArchSuffix
|
||||
lib:libQt6Widgets$secondaryArchSuffix
|
||||
lib:librz_analysis$secondaryArchSuffix
|
||||
lib:librz_asm$secondaryArchSuffix
|
||||
# lib:librz_analysis$secondaryArchSuffix
|
||||
lib:librz_arch$secondaryArchSuffix
|
||||
lib:librz_bin$secondaryArchSuffix
|
||||
lib:librz_bp$secondaryArchSuffix
|
||||
lib:librz_config$secondaryArchSuffix
|
||||
@@ -53,7 +52,7 @@ REQUIRES="
|
||||
lib:librz_lang$secondaryArchSuffix
|
||||
lib:librz_magic$secondaryArchSuffix
|
||||
lib:librz_main$secondaryArchSuffix
|
||||
lib:librz_parse$secondaryArchSuffix
|
||||
# lib:librz_parse$secondaryArchSuffix
|
||||
lib:librz_reg$secondaryArchSuffix
|
||||
lib:librz_search$secondaryArchSuffix
|
||||
lib:librz_socket$secondaryArchSuffix
|
||||
@@ -70,7 +69,7 @@ REQUIRES="
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libcapstone$secondaryArchSuffix >= 5.0
|
||||
devel:libcapstone$secondaryArchSuffix
|
||||
devel:libgvc$secondaryArchSuffix
|
||||
devel:libpython3.10$secondaryArchSuffix
|
||||
devel:libQt6Core5Compat$secondaryArchSuffix
|
||||
@@ -81,8 +80,8 @@ BUILD_REQUIRES="
|
||||
devel:libQt6Network$secondaryArchSuffix
|
||||
devel:libQt6Svg$secondaryArchSuffix
|
||||
devel:libQt6Widgets$secondaryArchSuffix
|
||||
devel:librz_analysis$secondaryArchSuffix
|
||||
devel:librz_asm$secondaryArchSuffix
|
||||
# devel:librz_analysis$secondaryArchSuffix
|
||||
devel:librz_arch$secondaryArchSuffix
|
||||
devel:librz_bin$secondaryArchSuffix
|
||||
devel:librz_bp$secondaryArchSuffix
|
||||
devel:librz_config$secondaryArchSuffix
|
||||
@@ -98,7 +97,7 @@ BUILD_REQUIRES="
|
||||
devel:librz_lang$secondaryArchSuffix
|
||||
devel:librz_magic$secondaryArchSuffix
|
||||
devel:librz_main$secondaryArchSuffix
|
||||
devel:librz_parse$secondaryArchSuffix
|
||||
# devel:librz_parse$secondaryArchSuffix
|
||||
devel:librz_reg$secondaryArchSuffix
|
||||
devel:librz_search$secondaryArchSuffix
|
||||
devel:librz_socket$secondaryArchSuffix
|
||||
@@ -116,11 +115,11 @@ BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:lrelease$secondaryArchSuffix >= 5
|
||||
# cmd:lrelease$secondaryArchSuffix >= 5
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:python3
|
||||
cmd:qmake$secondaryArchSuffix >= 5
|
||||
# cmd:qmake$secondaryArchSuffix >= 5
|
||||
"
|
||||
|
||||
BUILD()
|
||||
@@ -133,8 +132,8 @@ BUILD()
|
||||
-DCUTTER_ENABLE_PYTHON=ON \
|
||||
-DCUTTER_USE_BUNDLED_RIZIN=OFF \
|
||||
-DCUTTER_QT6=ON \
|
||||
-DCMAKE_CXX_FLAGS="-fpermissive" \
|
||||
-Wno-dev
|
||||
-DCUTTER_ENABLE_GRAPHVIZ=OFF \
|
||||
-DCMAKE_CXX_FLAGS="-fpermissive"
|
||||
|
||||
make -C build $jobArgs
|
||||
}
|
||||
@@ -1,154 +0,0 @@
|
||||
From d782d9a56bd143224d49388b6c7c9ffaebe61633 Mon Sep 17 00:00:00 2001
|
||||
From: Begasus <begasus@gmail.com>
|
||||
Date: Tue, 23 May 2023 10:06:48 +0200
|
||||
Subject: Fix build and detection for rizin
|
||||
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index a6bfdb5..6b3cda5 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -75,8 +75,8 @@ if(CUTTER_USE_BUNDLED_RIZIN)
|
||||
include(BundledRizin)
|
||||
set(RIZIN_TARGET Rizin)
|
||||
else()
|
||||
- find_package(Rizin COMPONENTS Core REQUIRED)
|
||||
- set(RIZIN_TARGET Rizin::Core)
|
||||
+ find_package(Rizin REQUIRED)
|
||||
+ set(RIZIN_TARGET Rizin::librz)
|
||||
endif()
|
||||
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
diff --git a/cmake/FindRizin.cmake b/cmake/FindRizin.cmake
|
||||
new file mode 100644
|
||||
index 0000000..8a17b6b
|
||||
--- /dev/null
|
||||
+++ b/cmake/FindRizin.cmake
|
||||
@@ -0,0 +1,124 @@
|
||||
+# - Find Rizin (librz)
|
||||
+#
|
||||
+# This module provides the following imported targets, if found:
|
||||
+#
|
||||
+# Rizin::librz
|
||||
+#
|
||||
+# This will define the following variables:
|
||||
+# (but don't use them if you don't know what you are doing, use Rizin::librz)
|
||||
+#
|
||||
+# Rizin_FOUND - True if librz has been found.
|
||||
+# Rizin_INCLUDE_DIRS - librz include directory
|
||||
+# Rizin_LIBRARIES - List of libraries when using librz.
|
||||
+# Rizin_LIBRARY_DIRS - librz library directories
|
||||
+#
|
||||
+# If librz was found using find_library and not pkg-config, the following variables will also be set:
|
||||
+# Rizin_LIBRARY_<name> - Path to library rz_<name>
|
||||
+
|
||||
+if(HAIKU)
|
||||
+ find_path(Rizin_INCLUDE_DIRS
|
||||
+ NAMES rz_core.h rz_bin.h rz_util.h
|
||||
+ HINTS
|
||||
+ "$ENV{HOME}/bin/prefix/rizin/include/librz"
|
||||
+ /usr/local/include/libr
|
||||
+ /usr/include/librz
|
||||
+ /system/develop/headers/x86/librz
|
||||
+ /system/develop/headers/librz)
|
||||
+ find_path(SDB_INCLUDE_DIR
|
||||
+ NAMES sdb.h sdbht.h sdb_version.h
|
||||
+ HINTS
|
||||
+ "$ENV{HOME}/bin/prefix/rizin/include/librz/sdb"
|
||||
+ /usr/local/include/librz/sdb
|
||||
+ /usr/include/librz/sdb
|
||||
+ /system/develop/headers/x86/librz/sdb
|
||||
+ /system/develop/headers/librz/sdb)
|
||||
+
|
||||
+ list(APPEND Rizin_INCLUDE_DIRS ${SDB_INCLUDE_DIR})
|
||||
+
|
||||
+ set(Rizin_LIBRARY_NAMES
|
||||
+ core
|
||||
+ config
|
||||
+ cons
|
||||
+ io
|
||||
+ util
|
||||
+ flag
|
||||
+ asm
|
||||
+ debug
|
||||
+ hash
|
||||
+ bin
|
||||
+ lang
|
||||
+ io
|
||||
+ analysis
|
||||
+ parse
|
||||
+ bp
|
||||
+ egg
|
||||
+ reg
|
||||
+ search
|
||||
+ sign
|
||||
+ syscall
|
||||
+ socket
|
||||
+ magic
|
||||
+ crypto
|
||||
+ type)
|
||||
+
|
||||
+ set(Rizin_LIBRARIES "")
|
||||
+ set(Rizin_LIBRARIES_VARS "")
|
||||
+ foreach(libname ${Rizin_LIBRARY_NAMES})
|
||||
+ find_library(Rizin_LIBRARY_${libname}
|
||||
+ rz_${libname}
|
||||
+ HINTS
|
||||
+ "$ENV{HOME}/bin/prefix/rizin/lib"
|
||||
+ /usr/local/lib
|
||||
+ /usr/lib
|
||||
+ /system/lib/x86
|
||||
+ /system/lib)
|
||||
+
|
||||
+ list(APPEND Rizin_LIBRARIES ${Rizin_LIBRARY_${libname}})
|
||||
+ list(APPEND Rizin_LIBRARIES_VARS "Rizin_LIBRARY_${libname}")
|
||||
+ endforeach()
|
||||
+
|
||||
+ set(Rizin_LIBRARY_DIRS "")
|
||||
+
|
||||
+ add_library(Rizin::librz UNKNOWN IMPORTED)
|
||||
+ set_target_properties(Rizin::librz PROPERTIES
|
||||
+ IMPORTED_LOCATION "${Rizin_LIBRARY_core}"
|
||||
+ IMPORTED_LINK_INTERFACE_LIBRARIES "${Rizin_LIBRARIES}"
|
||||
+ INTERFACE_LINK_DIRECTORIES "${Rizin_LIBRARY_DIRS}"
|
||||
+ INTERFACE_INCLUDE_DIRECTORIES "${Rizin_INCLUDE_DIRS}")
|
||||
+ set(Rizin_TARGET Rizin::librz)
|
||||
+else()
|
||||
+ # support installation locations used by rizin scripts like sys/user.sh and sys/install.sh
|
||||
+ if(CUTTER_USE_ADDITIONAL_RIZIN_PATHS)
|
||||
+ set(Rizin_CMAKE_PREFIX_PATH_TEMP ${CMAKE_PREFIX_PATH})
|
||||
+ list(APPEND CMAKE_PREFIX_PATH "$ENV{HOME}/bin/prefix/rizin") # sys/user.sh
|
||||
+ list(APPEND CMAKE_PREFIX_PATH "/usr/local") # sys/install.sh
|
||||
+ endif()
|
||||
+
|
||||
+ find_package(PkgConfig REQUIRED)
|
||||
+ if(CMAKE_VERSION VERSION_LESS "3.6")
|
||||
+ pkg_search_module(Rizin REQUIRED rz_core)
|
||||
+ else()
|
||||
+ pkg_search_module(Rizin IMPORTED_TARGET REQUIRED rz_core)
|
||||
+ endif()
|
||||
+
|
||||
+ # reset CMAKE_PREFIX_PATH
|
||||
+ if(CUTTER_USE_ADDITIONAL_RIZIN_PATHS)
|
||||
+ set(CMAKE_PREFIX_PATH ${Rizin_CMAKE_PREFIX_PATH_TEMP})
|
||||
+ endif()
|
||||
+
|
||||
+ if((TARGET PkgConfig::Rizin) AND (NOT CMAKE_VERSION VERSION_LESS "3.11.0"))
|
||||
+ set_target_properties(PkgConfig::Rizin PROPERTIES IMPORTED_GLOBAL ON)
|
||||
+ add_library(Rizin::librz ALIAS PkgConfig::Rizin)
|
||||
+ set(Rizin_TARGET Rizin::librz)
|
||||
+ elseif(Rizin_FOUND)
|
||||
+ add_library(Rizin::librz INTERFACE IMPORTED)
|
||||
+ set_target_properties(Rizin::librz PROPERTIES
|
||||
+ INTERFACE_INCLUDE_DIRECTORIES "${Rizin_INCLUDE_DIRS}")
|
||||
+ set_target_properties(Rizin::librz PROPERTIES
|
||||
+ INTERFACE_LINK_LIBRARIES "${Rizin_LIBRARIES}")
|
||||
+ set(Rizin_TARGET Rizin::librz)
|
||||
+ endif()
|
||||
+endif()
|
||||
+
|
||||
+include(FindPackageHandleStandardArgs)
|
||||
+find_package_handle_standard_args(Rizin REQUIRED_VARS Rizin_TARGET Rizin_LIBRARIES Rizin_INCLUDE_DIRS)
|
||||
--
|
||||
2.43.2
|
||||
|
||||
Reference in New Issue
Block a user