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

PORTNAME=	radare2
PORTVERSION=	0.8.1
CATEGORIES=	devel
MASTER_SITES=	http://radare.org/get/

MAINTAINER=	kpedersen@opencde.org
COMMENT=	Tools to disasm, debug, analyze, and manipulate binary files

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/LICENSE

GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes
USE_GMAKE=	yes

CONFIGURE_ARGS=--without-ewf --without-gmp
PLIST_SUB+=	PORTVERSION="${PORTVERSION}"

MAKE_JOBS_SAFE=	yes

.if ${CC} == "clang" || ${CXX} == "clang++"
BROKEN=		does not build when compiled with clang
.endif

MAN1=	r2.1 rabin2.1 radiff2.1 rafind2.1 ranal2.1 rarc2-tool.1 \
	rarc2.1 rasc2.1 rasm2.1 rax2.1 rsc2.1 radare2.1 rahash2.1

post-patch:
	@${REINPLACE_CMD} -e 's|..LIBDIR./pkgconfig|libdata/pkgconfig|g' ${WRKSRC}/Makefile
	@${REINPLACE_CMD} -e 's|..LFX./pkgconfig|${PREFIX}/libdata/pkgconfig|g' \
		${WRKSRC}/libr/Makefile
.if defined(NOPORTDOCS)
	@${REINPLACE_CMD} -e 's| install-doc install-man||g' ${WRKSRC}/Makefile
.endif

.include <bsd.port.mk>