# Created by: Karsten Pedersen # $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 BROKEN_aarch64= Does not build: Unsupported BSD architecture BROKEN_mips64= Does not build: Unsupported BSD architecture BROKEN_powerpc64= Does not build BROKEN_sparc64= Does not build BUILD_DEPENDS+= pkg-config:devel/pkgconf LIB_DEPENDS+= libcapstone.so:devel/capstone4 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