vcpkg/ports/nifly/portfile.cmake
Guekka 7c03f8a6ab
[nifly] new port (#21553)
* [nifly] new port

* [nifly] update versions database

* [nifly] Fix name of HEAD_REF

Co-authored-by: Sergii Baitala <sbaitala@imprivata.com>

* [nifly] update versions database

* [nifly] Update ports/nifly/portfile.cmake

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

* Update vcpkg.json

* [nifly] update versions database

* Remove no longer necessary vcpkg_fail_port_install and fixup whitespace.

Co-authored-by: Sergii Baitala <sbaitala@imprivata.com>
Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2021-11-26 01:17:35 -08:00

24 lines
733 B
CMake

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ousnius/nifly
REF 680a3c0435ff78f8189c46de410d0c8aa9c18a06
SHA512 b1bb4a194f95e7bcd66280e1b796d0813cd0b4dc292dae5b168092c2d529f89c966a0f11b364787dfa906556181326b30517b7f734fe85246cde4016e3a1d55b
HEAD_REF main
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_TESTING=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH "cmake/")
file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/debug/include"
"${CURRENT_PACKAGES_DIR}/debug/share"
)
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)