aboutsummaryrefslogtreecommitdiffstats
path: root/devel/radare2/Makefile
blob: 09310b0a5fb1cad3de57a361103fc9b15ead61d4 (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
# Created by: Karsten Pedersen <kpedersen@opencde.org>
# $FreeBSD$

PORTNAME=   radare2
PORTVERSION=    1.0.2
CATEGORIES= devel
MASTER_SITES=   http://rada.re/get/

MAINTAINER= torres.73a@gmail.com
COMMENT=    Tools to disasm, debug, analyze, and manipulate binary files

LICENSE=    GPLv3
LICENSE_FILE=   ${WRKSRC}/COPYING

BUILD_DEPENDS+=     pkg-config:devel/pkgconf
LIB_DEPENDS+=       libcapstone.so:devel/capstone4

NOT_FOR_ARCHS=      aarch64 armv6 mips mips64 powerpc powerpc64 sparc64
NOT_FOR_ARCHS_REASON=   does not build: Unsupported BSD architecture

CONFIGURE_ARGS+=    --with-syscapstone

USES=       gmake pathfix pkgconfig tar:xz
PATHFIX_MAKEFILEIN= Makefile
GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes

MAKE_ENV+=  HOST_CC=${CC}
PLIST_SUB+= PORTVERSION="${PORTVERSION}"

OPTIONS_DEFINE= DOCS

post-patch:
    ${ECHO_CMD} 'CFLAGS+=-I${LOCALBASE}/include' >> ${WRKSRC}/libr/anal/Makefile
    ${ECHO_CMD} 'CFLAGS+=-I${LOCALBASE}/include' >> ${WRKSRC}/libr/asm/Makefile

post-patch-DOCS-off:
    @${REINPLACE_CMD} -e 's| install-doc ||g' \
        ${WRKSRC}/Makefile

.include <bsd.port.mk>