diff options
| author | Alexander Karatarakis <alex@karatarakis.com> | 2018-08-31 19:42:56 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-31 19:42:56 -0700 |
| commit | b4ca5e4b5e59063e189ad8db4e01589ff8906af0 (patch) | |
| tree | ef4c04af5050efb79a8103c0e84abc1edf07825d | |
| parent | ef7b1b506d05d9256c50dc2f3371e0e1bd4e9907 (diff) | |
| parent | c4ed0f743bbdfaa346e74309c26fed1c20dc6277 (diff) | |
| download | vcpkg-b4ca5e4b5e59063e189ad8db4e01589ff8906af0.tar.gz vcpkg-b4ca5e4b5e59063e189ad8db4e01589ff8906af0.zip | |
Merge pull request #4194 from atkawa7/woff2
woff2 init
| -rw-r--r-- | ports/woff2/CONTROL | 4 | ||||
| -rw-r--r-- | ports/woff2/portfile.cmake | 32 |
2 files changed, 36 insertions, 0 deletions
diff --git a/ports/woff2/CONTROL b/ports/woff2/CONTROL new file mode 100644 index 000000000..e4e6511ca --- /dev/null +++ b/ports/woff2/CONTROL @@ -0,0 +1,4 @@ +Source: woff2
+Version: 1.0.2
+Build-Depends: brotli
+Description: font compression reference code
diff --git a/ports/woff2/portfile.cmake b/ports/woff2/portfile.cmake new file mode 100644 index 000000000..41efbba0a --- /dev/null +++ b/ports/woff2/portfile.cmake @@ -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)
|
