Skip to content

Commit

Permalink
devel/capstone5: New PORT
Browse files Browse the repository at this point in the history
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/
  • Loading branch information
5u623l20 committed Mar 13, 2022
1 parent 0c3a2ee commit cdb636f
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -308,6 +308,7 @@
SUBDIR += capnproto080
SUBDIR += capstone3
SUBDIR += capstone4
SUBDIR += capstone5
SUBDIR += cargo-c
SUBDIR += cargo-generate
SUBDIR += cask
Expand Down
31 changes: 31 additions & 0 deletions 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 <bsd.port.mk>
3 changes: 3 additions & 0 deletions 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
16 changes: 16 additions & 0 deletions 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/
23 changes: 23 additions & 0 deletions 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

0 comments on commit cdb636f

Please sign in to comment.