2019-07-18 14:01:08 -07:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO jherico/basis_universal
|
2020-01-06 11:53:55 -08:00
|
|
|
REF 497875f756ed0e3eb62e0ff08d55c62242f4be74
|
|
|
|
SHA512 2293b78620a7ed510dbecf48bcae5f4b8524fe9020f864c8e79cf94ea9d95d51dddf83a5b4ea29cc95db19f87137bfef1cb68b7fbc6387e08bb42898d81c9303
|
2019-07-18 14:01:08 -07:00
|
|
|
HEAD_REF master
|
2022-11-15 21:51:23 +00:00
|
|
|
PATCHES
|
|
|
|
fix-addostream.patch
|
|
|
|
fix-add-libgen-mingw.patch
|
2019-07-18 14:01:08 -07:00
|
|
|
)
|
|
|
|
|
2022-07-12 01:38:12 +03:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-07-18 14:01:08 -07:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTS=OFF
|
|
|
|
)
|
|
|
|
|
2022-07-12 01:38:12 +03:00
|
|
|
vcpkg_cmake_install()
|
2019-07-18 14:01:08 -07:00
|
|
|
|
2022-07-12 01:38:12 +03:00
|
|
|
vcpkg_copy_pdbs()
|
2019-07-18 14:01:08 -07:00
|
|
|
|
2022-07-12 01:38:12 +03:00
|
|
|
vcpkg_copy_tools(TOOL_NAMES "basisu_tool" AUTO_CLEAN)
|
2019-07-18 14:01:08 -07:00
|
|
|
|
|
|
|
# Remove unnecessary files
|
2022-07-12 01:38:12 +03:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-07-18 14:01:08 -07:00
|
|
|
|
2022-07-12 01:38:12 +03:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|