mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
devel/radare2: add support for powerpc, powerpc64, powerpc64le and riscv64
This commit is contained in:
parent
8f89a070b3
commit
a15b4f2f0a
@ -11,8 +11,7 @@ COMMENT= Tools to disasm, debug, analyze, and manipulate binary files
|
||||
LICENSE= GPLv3
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
NOT_FOR_ARCHS= armv6 armv7 mips mips64 powerpc powerpc64 powerpc64le \
|
||||
powerpcspe riscv64 sparc64
|
||||
NOT_FOR_ARCHS= armv6 armv7 mips mips64 powerpcspe sparc64
|
||||
NOT_FOR_ARCHS_REASON= does not build: Unsupported BSD architecture
|
||||
|
||||
LIB_DEPENDS= libcapstone.so:devel/capstone4
|
||||
@ -39,6 +38,12 @@ DOCS_EXTRA_PATCHES_OFF= ${PATCHDIR}/extra-patch-Makefile
|
||||
# current directory, including .bak file left by ${REINPLACE_CMD}
|
||||
# called by pathfix.
|
||||
post-patch:
|
||||
${CP} ${WRKSRC}/libr/debug/p/native/linux/reg/linux-ppc.h \
|
||||
${WRKSRC}/libr/debug/p/native/reg/kfbsd-ppc.h
|
||||
${CP} ${WRKSRC}/libr/debug/p/native/linux/reg/linux-ppc64.h \
|
||||
${WRKSRC}/libr/debug/p/native/reg/kfbsd-ppc64.h
|
||||
${CP} ${WRKSRC}/libr/debug/p/native/linux/reg/linux-riscv64.h \
|
||||
${WRKSRC}/libr/debug/p/native/reg/kfbsd-riscv64.h
|
||||
${RM} ${WRKSRC}/libr/flag/d/Makefile.bak
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
11
devel/radare2/files/patch-libr_core_vmenus.c
Normal file
11
devel/radare2/files/patch-libr_core_vmenus.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- libr/core/vmenus.c.orig 2022-02-18 17:27:13 UTC
|
||||
+++ libr/core/vmenus.c
|
||||
@@ -3235,7 +3235,7 @@ R_API void r_core_visual_debugtraces(RCore *core, cons
|
||||
//int rows = r_cons_get_size (NULL);
|
||||
r_core_cmdf (core, "dtd %d", delta);
|
||||
r_cons_visual_flush ();
|
||||
- char ch ;
|
||||
+ signed char ch ;
|
||||
if (input && *input) {
|
||||
ch = *input;
|
||||
input++;
|
15
devel/radare2/files/patch-libr_debug_p_native_reg.c
Normal file
15
devel/radare2/files/patch-libr_debug_p_native_reg.c
Normal file
@ -0,0 +1,15 @@
|
||||
--- libr/debug/p/native/reg.c.orig 2022-02-18 15:57:33 UTC
|
||||
+++ libr/debug/p/native/reg.c
|
||||
@@ -49,6 +49,12 @@ static char *r_debug_native_reg_profile(RDebug *dbg) {
|
||||
#include "reg/kfbsd-x64.h"
|
||||
#elif __aarch64__
|
||||
#include "reg/kfbsd-arm64.h"
|
||||
+#elif __powerpc64__
|
||||
+#include "reg/kfbsd-ppc64.h"
|
||||
+#elif __powerpc__
|
||||
+#include "reg/kfbsd-ppc.h"
|
||||
+#elif __riscv
|
||||
+#include "reg/kfbsd-riscv64.h"
|
||||
#else
|
||||
#error "Unsupported BSD architecture"
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user