This commit is contained in:
2026-03-23 12:11:07 +01:00
commit e64eb40b38
4573 changed files with 3117439 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
# Trigger ldconfig after install
activate-noawait ldconfig

View File

@@ -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>

View File

@@ -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/

View File

@@ -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

View File

@@ -0,0 +1,39 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 118429 2014-04-02 07:44:35Z and.damore@macports.org $
PortSystem 1.0
name capstone
version 3.0.1
categories devel
platforms darwin
maintainers gmail.com:aquynh
license BSD
description Capstone disassembly engine
long_description Capstone is a multi-arch, multi-platform disassembly framework with advanced features
homepage http://www.capstone-engine.org/
master_sites ${homepage}download/${version}/
extract.suffix .tgz
checksums sha256 38fc736830de83ae345d917a6c122e2a09119ec5724b553174ddf84062cf2551 \
rmd160 3da96a34fbdde07c2cbb57ed7a76a07c035bb920
patchfiles patch-Makefile.diff
variant universal {}
use_configure no
build.env CC=${configure.cc} \
CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" \
PREFIX=${prefix}
eval destroot.env ${build.env}
livecheck.type regex
livecheck.url ${homepage}download.html
livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}

View File

@@ -0,0 +1,17 @@
--- Makefile
+++ Makefile
@@ -246,14 +246,6 @@ EXT = dylib
VERSION_EXT = $(API_MAJOR).$(EXT)
$(LIBNAME)_LDFLAGS += -dynamiclib -install_name lib$(LIBNAME).$(VERSION_EXT) -current_version $(PKG_MAJOR).$(PKG_MINOR).$(PKG_EXTRA) -compatibility_version $(PKG_MAJOR).$(PKG_MINOR)
AR_EXT = a
-# Homebrew wants to make sure its formula does not disable FORTIFY_SOURCE
-# However, this is not really necessary because 'CAPSTONE_USE_SYS_DYN_MEM=yes' by default
-ifneq ($(HOMEBREW_CAPSTONE),1)
-ifneq ($(CAPSTONE_USE_SYS_DYN_MEM),yes)
-# remove string check because OSX kernel complains about missing symbols
-CFLAGS += -D_FORTIFY_SOURCE=0
-endif
-endif
else
$(LIBNAME)_LDFLAGS += -shared
# Cygwin?