vcpkg/ports/bddisasm/portfile.cmake
Anichitei Ionel-Cristinel 603748b5db
[bddisasm] Update to 1.34.7 (#21130)
* 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

* bddisasm: Update port to version 1.33.0

* bddisasm: Update port to version 1.34.2

* bddisasm: Update port to version 1.34.7

* bddisasm: Set `port-version` to 1

* Update ports/bddisasm/vcpkg.json

Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>

* Run `vcpkg x-add-version --all`

Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
2021-11-04 10:48:06 -07:00

33 lines
904 B
CMake

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.34.7
SHA512 e4bd0895b285030f0aba4d5666a5da66cee6e1766e68a9527d1c2ca6160690270d55819ab8f6357b0f61fd52fb13b87ca7c15ee5694185564cc9bb55b62eb9ff
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")
vcpkg_fixup_pkgconfig()