aboutsummaryrefslogtreecommitdiffstats
path: root/capstone/packages/macports
diff options
context:
space:
mode:
authorAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
committerAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
commitaf1a266670d040d2f4083ff309d732d648afba2a (patch)
tree2fc46203448ddcc6f81546d379abfaeb323575e9 /capstone/packages/macports
parente02cda008591317b1625707ff8e115a4841aa889 (diff)
Add submodule dependency filesHEADmaster
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'capstone/packages/macports')
-rw-r--r--capstone/packages/macports/devel/capstone/Portfile39
-rw-r--r--capstone/packages/macports/devel/capstone/files/patch-Makefile.diff17
2 files changed, 56 insertions, 0 deletions
diff --git a/capstone/packages/macports/devel/capstone/Portfile b/capstone/packages/macports/devel/capstone/Portfile
new file mode 100644
index 000000000..61af9a69f
--- /dev/null
+++ b/capstone/packages/macports/devel/capstone/Portfile
@@ -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}
diff --git a/capstone/packages/macports/devel/capstone/files/patch-Makefile.diff b/capstone/packages/macports/devel/capstone/files/patch-Makefile.diff
new file mode 100644
index 000000000..7a3f5cc50
--- /dev/null
+++ b/capstone/packages/macports/devel/capstone/files/patch-Makefile.diff
@@ -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?