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

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

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

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

GNU_CONFIGURE=	yes
USES=		gmake
USE_LDCONFIG=	yes
USE_XZ=		yes

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

post-patch:
	@${REINPLACE_CMD} -e 's|..LIBDIR./pkgconfig|libdata/pkgconfig|g' ${WRKSRC}/Makefile
	@${REINPLACE_CMD} -e 's|..LFX./pkgconfig|${STAGEDIR}${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>