mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
2992215dfe
devel/py-capstone has to be kept in sync with its Capstone library. At the moment, there are two versions of the library in ports: devel/capstone3 and devel/capstone4. The version 3 is an old version of the library so the bindings should be updated to follow version 4, which is the newest major version. Currently, there is no need to introduce a port with Python bindings compatible with Capstone 3 as there are no known ports dependant on version 3 of the bindings. Some ports need to be updated so that they depend on devel/capstone4 instead of devel/capstone3 to avoid build problems. They will be updated in subsequent commits. Also, set NO_ARCH while here. Approved by: koobs (maintainer) Differential Revision: https://reviews.freebsd.org/D23751
29 lines
699 B
Makefile
29 lines
699 B
Makefile
# Created by: Kubilay Kocak <koobs@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= capstone
|
|
PORTVERSION= 4.0.1
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DIST_SUBDIR= python # Conflicts with devel/capstone distfile
|
|
|
|
MAINTAINER= koobs@FreeBSD.org
|
|
COMMENT= Python bindings for the Capstone Disassembly Engine
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.TXT
|
|
|
|
LIB_DEPENDS= libcapstone.so:devel/capstone4
|
|
|
|
USES= python
|
|
USE_PYTHON= autoplist distutils
|
|
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>
|