|
Lines 1-43
Link Here
|
| 1 |
# Created by: Karsten Pedersen <kpedersen@opencde.org> |
1 |
# Created by: Karsten Pedersen <kpedersen@opencde.org> |
| 2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
| 3 |
|
3 |
|
| 4 |
PORTNAME= radare2 |
4 |
PORTNAME= radare2 |
| 5 |
DISTVERSION= 3.5.1 |
5 |
DISTVERSION= 3.7.1 |
| 6 |
CATEGORIES= devel |
6 |
CATEGORIES= devel |
| 7 |
|
7 |
|
| 8 |
MAINTAINER= mizhka@gmail.com |
8 |
MAINTAINER= mizhka@gmail.com |
| 9 |
COMMENT= Tools to disasm, debug, analyze, and manipulate binary files |
9 |
COMMENT= Tools to disasm, debug, analyze, and manipulate binary files |
| 10 |
|
10 |
|
| 11 |
LICENSE= GPLv3 |
11 |
LICENSE= GPLv3 |
| 12 |
LICENSE_FILE= ${WRKSRC}/COPYING |
12 |
LICENSE_FILE= ${WRKSRC}/COPYING |
| 13 |
|
13 |
|
| 14 |
NOT_FOR_ARCHS= armv6 armv7 mips mips64 powerpc powerpc64 sparc64 |
14 |
NOT_FOR_ARCHS= armv6 armv7 mips mips64 powerpc powerpc64 sparc64 |
| 15 |
NOT_FOR_ARCHS_REASON= does not build: Unsupported BSD architecture |
15 |
NOT_FOR_ARCHS_REASON= does not build: Unsupported BSD architecture |
| 16 |
|
16 |
|
| 17 |
LIB_DEPENDS= libcapstone.so:devel/capstone4 |
17 |
LIB_DEPENDS= libcapstone.so:devel/capstone4 |
| 18 |
|
18 |
|
| 19 |
USES= gmake localbase pathfix pkgconfig |
19 |
USES= gmake localbase pathfix pkgconfig |
| 20 |
USE_GITHUB= yes |
20 |
USE_GITHUB= yes |
| 21 |
USE_LDCONFIG= yes |
21 |
USE_LDCONFIG= yes |
| 22 |
|
22 |
|
| 23 |
CONFIGURE_ARGS= --with-syscapstone |
23 |
CONFIGURE_ARGS= --with-syscapstone |
| 24 |
GH_ACCOUNT= radare |
24 |
GH_ACCOUNT= radare |
| 25 |
PATHFIX_MAKEFILEIN= Makefile |
25 |
PATHFIX_MAKEFILEIN= Makefile |
| 26 |
GNU_CONFIGURE= yes |
26 |
GNU_CONFIGURE= yes |
| 27 |
|
27 |
|
| 28 |
MAKE_ENV+= HOST_CC=${CC} |
28 |
MAKE_ENV+= HOST_CC=${CC} |
| 29 |
PLIST_SUB+= PORTVERSION="${PORTVERSION}" |
29 |
PLIST_SUB+= PORTVERSION="${PORTVERSION}" |
| 30 |
|
30 |
|
| 31 |
OPTIONS_DEFINE= DOCS |
31 |
OPTIONS_DEFINE= DOCS |
| 32 |
|
32 |
|
| 33 |
post-patch-DOCS-off: |
33 |
post-patch-DOCS-off: |
| 34 |
@${REINPLACE_CMD} -e 's| install-doc ||g' \ |
34 |
@${REINPLACE_CMD} -e 's| install-doc ||g' \ |
| 35 |
${WRKSRC}/Makefile |
35 |
${WRKSRC}/Makefile |
| 36 |
|
36 |
|
| 37 |
# libr/flag/d/Makefile generates an r2 script from all files in |
37 |
# libr/flag/d/Makefile generates an r2 script from all files in |
| 38 |
# current directory, including .bak file left by ${REINPLACE_CMD} |
38 |
# current directory, including .bak file left by ${REINPLACE_CMD} |
| 39 |
# called by pathfix. |
39 |
# called by pathfix. |
| 40 |
post-patch: |
40 |
post-patch: |
| 41 |
${RM} ${WRKSRC}/libr/flag/d/Makefile.bak |
41 |
${RM} ${WRKSRC}/libr/flag/d/Makefile.bak |
| 42 |
|
42 |
|
| 43 |
.include <bsd.port.mk> |
43 |
.include <bsd.port.mk> |