woff2 init

This commit is contained in:
atkawa7 2018-08-30 23:01:52 +02:00
parent 04ba5aa07b
commit c4ed0f743b
2 changed files with 36 additions and 0 deletions

4
ports/woff2/CONTROL Normal file
View File

@ -0,0 +1,4 @@
Source: woff2
Version: 1.0.2
Build-Depends: brotli
Description: font compression reference code

View File

@ -0,0 +1,32 @@
include(vcpkg_common_functions)
vcpkg_check_linkage(
ONLY_STATIC_LIBRARY
)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO google/woff2
REF v1.0.2
SHA512 c788bba1530aec463e755e901f9342f4b599e3a07f54645fef1dc388ab5d5c30625535e5dd38e9e792e04a640574baa50eeefb6b7338ab403755f4a4e0c3044d
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
)
vcpkg_install_cmake()
vcpkg_copy_pdbs()
file(COPY ${CURRENT_PACKAGES_DIR}/bin/ DESTINATION ${CURRENT_PACKAGES_DIR}/tools/woff2)
file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/bin
${CURRENT_PACKAGES_DIR}/debug/bin
${CURRENT_PACKAGES_DIR}/debug/include
)
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/woff2)
# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/woff2 RENAME copyright)