From cdb636f8c87e139edfd20958b6ce80a61d22d34d Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Sun, 13 Mar 2022 15:39:42 -0500 Subject: [PATCH] devel/capstone5: New PORT This is the 5.X branch of capstone Capstone is a lightweight multi-platform, multi-architecture disassembly framework. Features: * Supported architectures: ARM, ARM64 (aka ARMv8), Mips, PowerPC & X86 * 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, 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/ --- devel/Makefile | 1 + devel/capstone5/Makefile | 31 +++++++++++++++++++++++++++++++ devel/capstone5/distinfo | 3 +++ devel/capstone5/pkg-descr | 16 ++++++++++++++++ devel/capstone5/pkg-plist | 23 +++++++++++++++++++++++ 5 files changed, 74 insertions(+) create mode 100644 devel/capstone5/Makefile create mode 100644 devel/capstone5/distinfo create mode 100644 devel/capstone5/pkg-descr create mode 100644 devel/capstone5/pkg-plist diff --git a/devel/Makefile b/devel/Makefile index 4bcf0b1055d7f..a3acd8f323861 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -308,6 +308,7 @@ SUBDIR += capnproto080 SUBDIR += capstone3 SUBDIR += capstone4 + SUBDIR += capstone5 SUBDIR += cargo-c SUBDIR += cargo-generate SUBDIR += cask diff --git a/devel/capstone5/Makefile b/devel/capstone5/Makefile new file mode 100644 index 0000000000000..ba8359a45276f --- /dev/null +++ b/devel/capstone5/Makefile @@ -0,0 +1,31 @@ +PORTNAME= capstone +DISTVERSION= 5.0-rc2 +CATEGORIES= devel +PKGNAMESUFFIX= 5 + +MAINTAINER= bofh@FreeBSD.org +COMMENT= Multi-platform, multi-architecture disassembly framework + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.TXT + +USES= cpe gmake +CPE_VENDOR= ${PORTNAME}-engine +USE_GITHUB= yes +GH_ACCOUNT= capstone-engine +USE_LDCONFIG= yes + +MAKE_ENV+= INSTALL_DATA="${INSTALL_DATA}" \ + INSTALL_LIB="${INSTALL_LIB}" +TEST_ENV= ${MAKE_ENV} \ + LD_LIBRARY_PATH=${STAGEDIR}${PREFIX}/lib +TEST_TARGET= check + +CONFLICTS= capstone +CONFLICTS_BUILD= capstone[34] + +pre-test: +# Disable broken tests. + @${REINPLACE_CMD} -E 's|^(check:.*)fuzzallcorp|\1|' ${WRKSRC}/Makefile + +.include diff --git a/devel/capstone5/distinfo b/devel/capstone5/distinfo new file mode 100644 index 0000000000000..8d93d13710175 --- /dev/null +++ b/devel/capstone5/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1647203530 +SHA256 (capstone-engine-capstone-5.0-rc2_GH0.tar.gz) = 869d94813a887329bc11b4bf1f4410a7a2b7f270176439e90b158127d5a215dd +SIZE (capstone-engine-capstone-5.0-rc2_GH0.tar.gz) = 5761725 diff --git a/devel/capstone5/pkg-descr b/devel/capstone5/pkg-descr new file mode 100644 index 0000000000000..fcd3cdb17cb61 --- /dev/null +++ b/devel/capstone5/pkg-descr @@ -0,0 +1,16 @@ +Capstone is a lightweight multi-platform, multi-architecture disassembly +framework. + +Features: + * Supported architectures: ARM, ARM64 (aka ARMv8), Mips, PowerPC & X86 + * 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, + 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/ diff --git a/devel/capstone5/pkg-plist b/devel/capstone5/pkg-plist new file mode 100644 index 0000000000000..03c703f95d150 --- /dev/null +++ b/devel/capstone5/pkg-plist @@ -0,0 +1,23 @@ +bin/cstool +include/capstone/arm.h +include/capstone/arm64.h +include/capstone/bpf.h +include/capstone/capstone.h +include/capstone/evm.h +include/capstone/m680x.h +include/capstone/m68k.h +include/capstone/mips.h +include/capstone/mos65xx.h +include/capstone/platform.h +include/capstone/ppc.h +include/capstone/riscv.h +include/capstone/sparc.h +include/capstone/systemz.h +include/capstone/tms320c64x.h +include/capstone/wasm.h +include/capstone/x86.h +include/capstone/xcore.h +lib/libcapstone.a +lib/libcapstone.so +lib/libcapstone.so.5 +libdata/pkgconfig/capstone.pc