blob: 8a8ddee6d49a147c6e75686086e6f8ba0a9758a6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
PORTNAME= radare2
DISTVERSION= 5.8.8
PORTREVISION= 1
PORTEVISION= 1
CATEGORIES= devel
MAINTAINER= bofh@FreeBSD.org
COMMENT= Tools to disasm, debug, analyze, and manipulate binary files
WWW= https://www.radare.org
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
NOT_FOR_ARCHS= armv6 armv7 mips mips64 powerpcspe
NOT_FOR_ARCHS_REASON= does not build: Unsupported BSD architecture
LIB_DEPENDS= libcapstone.so:devel/capstone
USES= cpe gmake localbase pathfix pkgconfig
CPE_VENDOR= radare
PATHFIX_MAKEFILEIN= Makefile
USE_GITHUB= yes
GH_ACCOUNT= radareorg
GH_PROJECT= vector35-arch-arm64:arm64 vector35-arch-armv7:armv7
GH_TAGNAME= 55d73c6:arm64 f270a6c:armv7
GH_SUBDIR= libr/arch/p/arm/v35/arch-arm64:arm64 \
libr/arch/p/arm/v35/arch-armv7:armv7
GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
CONFIGURE_ARGS= --with-syscapstone
MAKE_ENV+= HOST_CC=${CC}
CFLAGS+= -I${PREFIX}/include/capstone
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
OPTIONS_DEFINE= DOCS
DOCS_EXTRA_PATCHES_OFF= ${PATCHDIR}/extra-patch-Makefile
# libr/flag/d/Makefile generates an r2 script from all files in
# 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>
|