Merge commit '802798ce3c8baa4697120580f87bc1ee377306d3' as 'external/capstone'

This commit is contained in:
2026-05-11 11:55:07 +02:00
3968 changed files with 2967598 additions and 0 deletions
@@ -0,0 +1,23 @@
# $FreeBSD$
PORTNAME= capstone
PORTVERSION= 4.0.0
CATEGORIES= devel
MASTER_SITES= http://capstone-engine.org/download/${PORTVERSION}/
MAINTAINER= oliver.pntr@gmail.com
COMMENT= Multi-platform, multi-architecture disassembly framework
LICENSE= BSD3CLAUSE
USES= gmake
USE_LDCONFIG= yes
MAKE_ENV+= INSTALL_LIB="${INSTALL_LIB}" \
INSTALL_DATA="${INSTALL_DATA}"
post-build:
# The pkgconfig file is generated and points to stagedir
${REINPLACE_CMD} -e '/libdir/s|\(libdir=\)\(.*\)\(devel/capstone/work/stage\)|\1|g' ${WRKSRC}/capstone.pc
.include <bsd.port.mk>
@@ -0,0 +1,17 @@
Capstone is a lightweight multi-platform, multi-architecture disassembly
framework.
Features:
* Supported architectures: ARM, ARM64 (aka ARMv8), Mips, PowerPC, Sparc,
SystemZ, X86, X86_64 & XCore.
* Clean/simple/lightweight/intuitive architecture-neutral API
* Provide details on disassembled instruction (called "decomposer")
* Provide some semantics of the disassembled instruction, such as list of
implicit registers read & written.
* Implemented in pure C language, with bindings for Python, Ruby, C#, Java,
Javascript, GO, OCaml & Vala available.
* Native support for Windows & *nix (including MacOSX, Linux, *BSD & Solaris)
* Thread-safe by design
* Distributed under the open source BSD license
WWW: http://capstone-engine.org/
@@ -0,0 +1,14 @@
include/capstone/arm.h
include/capstone/arm64.h
include/capstone/capstone.h
include/capstone/mips.h
include/capstone/ppc.h
include/capstone/sparc.h
include/capstone/systemz.h
include/capstone/x86.h
include/capstone/xcore.h
include/capstone/platform.h
lib/libcapstone.a
lib/libcapstone.so
libdata/pkgconfig/capstone.pc
@dirrmtry include/capstone