aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorAnichitei Ionel-Cristinel <49393881+ianichitei@users.noreply.github.com>2021-06-03 23:13:15 +0300
committerGitHub <noreply@github.com>2021-06-03 13:13:15 -0700
commitb8eda75055f938db11940df661f35fa6fcd1ec4a (patch)
treec719e991aa0109283572f26256d000aa4778e361 /ports
parent2da3434b40d3a8cac43bf2541d846ec93787e204 (diff)
downloadvcpkg-b8eda75055f938db11940df661f35fa6fcd1ec4a.tar.gz
vcpkg-b8eda75055f938db11940df661f35fa6fcd1ec4a.zip
[bddisasm] new port (#18046)
* Add bddisasm port Currently fetching bddisasm from my fork of the project * bddisasm: Build with BDD_INCLUDE_TOOL=OFF * bddisasm: Use PREFER_NINJA * bddisasm: Update REF * bddisasm: Don't use vcpkg_install_msbuild * bddisasm: Switch to release 1.32.1 from the bitdefender repo * Add the result of ./vcpkg x-add-version --all * Replace the control file with a manifest Converted with ./vcpkg format-manifest * Add more details to bddisasm/vcpkg.json Added port-version, license, homepage, documentation, and port mantainers * Fix bddisasm/vcpkg.json * Fix the version file * List arm as not supported * Update version file * Fail install on arm * Use the new vcpkg_cmake_* functions * Remove the LICENSE file * Fix version * Update version file * build only static library bddisasm only supports being built as a static library, so say that in the portfile Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
Diffstat (limited to 'ports')
-rw-r--r--ports/bddisasm/portfile.cmake30
-rw-r--r--ports/bddisasm/vcpkg.json20
2 files changed, 50 insertions, 0 deletions
diff --git a/ports/bddisasm/portfile.cmake b/ports/bddisasm/portfile.cmake
new file mode 100644
index 000000000..3444aa10f
--- /dev/null
+++ b/ports/bddisasm/portfile.cmake
@@ -0,0 +1,30 @@
+vcpkg_fail_port_install(ON_ARCH "arm")
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO bitdefender/bddisasm
+ REF v1.32.1
+ SHA512 78062081ab38f208c29e1a8cd50daad9203c93ab68cb3e48250fc3b38b7bfdb6a878a995c353f63ac7a6144f305dbdc0f5d60d67558f0403a669197979143de1
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS
+ -DBDD_INCLUDE_TOOL=OFF
+)
+
+vcpkg_cmake_install()
+
+file(INSTALL
+ ${SOURCE_PATH}/LICENSE
+ DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
+ RENAME copyright
+)
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/bddisasm)
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
diff --git a/ports/bddisasm/vcpkg.json b/ports/bddisasm/vcpkg.json
new file mode 100644
index 000000000..9dbf7e0c4
--- /dev/null
+++ b/ports/bddisasm/vcpkg.json
@@ -0,0 +1,20 @@
+{
+ "name": "bddisasm",
+ "version": "1.32.1",
+ "maintainers": "Cristi Anichitei <ianichitei@bitdefender.com>",
+ "description": "bddisasm is a fast, lightweight, x86/x64 instruction decoder and emulator.",
+ "homepage": "https://github.com/bitdefender/bddisasm",
+ "documentation": "https://bddisasm.readthedocs.io/en/latest/",
+ "license": "Apache-2.0",
+ "supports": "!arm",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}