summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorkamil <kamil@pkgsrc.org>2016-06-11 21:03:41 +0000
committerkamil <kamil@pkgsrc.org>2016-06-11 21:03:41 +0000
commit28915f9efd522aeb65cdb87b15f830a94753df54 (patch)
tree5b6c429e76165d03c2ca96ac3819eb24728125e9 /emulators
parentec26f3e0f522fe59b68c663c46e5b1e792b48aa9 (diff)
downloadpkgsrc-28915f9efd522aeb65cdb87b15f830a94753df54.tar.gz
Import keystone-0.9 as emulators/keystone
Keystone is a lightweight multi-platform, multi-architecture assembler framework. It offers some unparalleled features: * Multi-architecture, with support for Arm, Arm64 (AArch64/Armv8), Hexagon, Mips, PowerPC, Sparc, SystemZ & X86 (include 16/32/64bit). * Clean/simple/lightweight/intuitive architecture-neutral API. * Implemented in C/C++ languages, with bindings for Python, NodeJS, Ruby, Go & Rust available. * Native support for Windows & *nix (with Mac OSX, Linux, *BSD & Solaris confirmed). * Thread-safe by design. * Open source - with a dual license. Keystone is based on LLVM, but it goes much further with a lot more to offer. Originally packaged in pkgsrc-wip by myself.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/keystone/DESCR15
-rw-r--r--emulators/keystone/Makefile15
-rw-r--r--emulators/keystone/Makefile.common11
-rw-r--r--emulators/keystone/PLIST13
-rw-r--r--emulators/keystone/distinfo6
5 files changed, 60 insertions, 0 deletions
diff --git a/emulators/keystone/DESCR b/emulators/keystone/DESCR
new file mode 100644
index 00000000000..85fc6f2be2c
--- /dev/null
+++ b/emulators/keystone/DESCR
@@ -0,0 +1,15 @@
+Keystone is a lightweight multi-platform, multi-architecture assembler
+framework.
+
+It offers some unparalleled features:
+ * Multi-architecture, with support for Arm, Arm64 (AArch64/Armv8), Hexagon,
+ Mips, PowerPC, Sparc, SystemZ & X86 (include 16/32/64bit).
+ * Clean/simple/lightweight/intuitive architecture-neutral API.
+ * Implemented in C/C++ languages, with bindings for Python, NodeJS, Ruby,
+ Go & Rust available.
+ * Native support for Windows & *nix (with Mac OSX, Linux, *BSD & Solaris
+ confirmed).
+ * Thread-safe by design.
+ * Open source - with a dual license.
+
+Keystone is based on LLVM, but it goes much further with a lot more to offer.
diff --git a/emulators/keystone/Makefile b/emulators/keystone/Makefile
new file mode 100644
index 00000000000..c0d644f11b4
--- /dev/null
+++ b/emulators/keystone/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 2016/06/11 21:03:41 kamil Exp $
+
+.include "Makefile.common"
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+COMMENT= Multi-platform and multi-arch assembler framework
+
+USE_CMAKE= yes
+USE_LANGUAGES= c c++
+LICENSE= gnu-gpl-v2
+
+CMAKE_ARGS+= -DBUILD_SHARED_LIBS=ON
+CMAKE_ARGS+= -DLLVM_TARGETS_TO_BUILD=all
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/emulators/keystone/Makefile.common b/emulators/keystone/Makefile.common
new file mode 100644
index 00000000000..7cb41a645e8
--- /dev/null
+++ b/emulators/keystone/Makefile.common
@@ -0,0 +1,11 @@
+# $NetBSD: Makefile.common,v 1.1 2016/06/11 21:03:41 kamil Exp $
+#
+# used by wip/py-keystone/Makefile
+
+DISTNAME= keystone-0.9
+CATEGORIES= emulators
+MASTER_SITES= ${MASTER_SITE_GITHUB:=keystone-engine/}
+
+HOMEPAGE= http://www.keystone-engine.org/
+
+DISTINFO_FILE= ${.CURDIR}/../../wip/keystone/distinfo
diff --git a/emulators/keystone/PLIST b/emulators/keystone/PLIST
new file mode 100644
index 00000000000..e2c497c8869
--- /dev/null
+++ b/emulators/keystone/PLIST
@@ -0,0 +1,13 @@
+@comment $NetBSD: PLIST,v 1.1 2016/06/11 21:03:41 kamil Exp $
+bin/kstool
+include/keystone/arm.h
+include/keystone/arm64.h
+include/keystone/hexagon.h
+include/keystone/keystone.h
+include/keystone/mips.h
+include/keystone/ppc.h
+include/keystone/sparc.h
+include/keystone/systemz.h
+include/keystone/x86.h
+lib/libkeystone.so
+lib/libkeystone.so.0
diff --git a/emulators/keystone/distinfo b/emulators/keystone/distinfo
new file mode 100644
index 00000000000..482e6ebb8cb
--- /dev/null
+++ b/emulators/keystone/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2016/06/11 21:03:41 kamil Exp $
+
+SHA1 (keystone-0.9.tar.gz) = 9bfe72935fac94da371335fcb8efb895e8b14551
+RMD160 (keystone-0.9.tar.gz) = abbe90149236006c09c7e46c5e3f6057454b1b62
+SHA512 (keystone-0.9.tar.gz) = 170f8f73a7cdd8f049cda3fbc49b968d8ca8a524bbf8ca161a52be4f3c55003b7afd1df8fc118b7838a8484f6128d180f08f09d7a0dcb2c72c3d2009fd59684d
+Size (keystone-0.9.tar.gz) = 2878845 bytes