31 lines
811 B
Makefile
31 lines
811 B
Makefile
PORTNAME= capstone
|
|
DISTVERSION= 5.0.9
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DIST_SUBDIR= python # Conflicts with devel/capstone distfile
|
|
|
|
MAINTAINER= bofh@FreeBSD.org
|
|
COMMENT= Python bindings for the Capstone Disassembly Engine
|
|
WWW= https://www.capstone-engine.org
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.TXT
|
|
|
|
BUILD_DEPENDS= ${PY_SETUPTOOLS} \
|
|
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
|
|
LIB_DEPENDS= libcapstone.so:devel/capstone
|
|
|
|
USES= cpe python
|
|
CPE_VENDOR= ${PORTNAME}-engine
|
|
USE_PYTHON= autoplist pep517
|
|
MAKE_ENV+= LIBCAPSTONE_PATH= # Prevent bundled libcapstone from being built
|
|
|
|
NO_ARCH= yes
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/capstone/__init__.py
|
|
|
|
.include <bsd.port.mk>
|