1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/devel/plasma/Makefile
Steve Wills e03e64c721 devel/plasma: create port
PLASMA is an interactive disassembler. It can generate a more readable assembly
 (pseudo code) with a colored syntax. One can write scripts with the available
 Python API.

It supports :

* Architectures : x86{64}, ARM, MIPS{64} (partially for ARM and MIPS)
* Formats : ELF, PE, RAW

WWW: https://www.github.com/plasma-disassembler/plasma

PR:		225669
Submitted by:	Kai <freebsd_ports@k-worx.org>
2018-05-14 18:43:01 +00:00

47 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= plasma
DISTVERSION= g20171121
CATEGORIES= devel python
MAINTAINER= freebsd_ports@k-worx.org
COMMENT= Interactive disassembler for x86/ARM/MIPS
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= bash:shells/bash \
binutils>=2:devel/binutils \
capstone>=3:devel/capstone3
RUN_DEPENDS= binutils>=2:devel/binutils \
${PYTHON_PKGNAMEPREFIX}capstone>=3:devel/py-capstone@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}future>=0:devel/py-future@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}keystone-engine>=:devel/py-keystone-engine@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}msgpack>=0:devel/py-msgpack@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pefile>=0:devel/py-pefile@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyelftools>=0:devel/py-pyelftools@${FLAVOR}
USES= python:3.4+ shebangfix
USE_GITHUB= yes
GH_ACCOUNT= plasma-disassembler
GH_PROJECT= plasma
GH_TAGNAME= 8ec3bb7
USE_PYTHON= distutils flavors autoplist
SHEBANG_FILES= tests/analyzer/run.sh
SHEBANG_GLOB= *.py
OPTIONS_DEFINE= MEMMAP
OPTIONS_DEFAULT= MEMMAP
MEMMAP_DESC= View memory maps (pulls in QT4)
MEMMAP_USES= pyqt:4
MEMMAP_USE= PYQT=gui_run
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/setup.py
@${REINPLACE_CMD} -e 's|python3|${PYTHON_CMD}|g' ${WRKSRC}/Makefile
.include <bsd.port.mk>