File tree Expand file tree Collapse file tree 5 files changed +48
-0
lines changed Expand file tree Collapse file tree 5 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ def build_config(triplet):
3636 'libwebp' ,
3737 'openjpeg' ,
3838 'sqlite3' ,
39+ 'woff2' ,
3940 'pixman' ,
4041 'cairo' ,
4142 'libpsl' ,
Original file line number Diff line number Diff line change 2828| [ libwebp] ( https://github.com/webmproject/libwebp ) | 1.1.0 | 01-06-2020 |
2929| [ openjpeg] ( https://www.openjpeg.org/ ) | 2.3.1 | 04-02-2019 |
3030| [ sqlite] ( http://sqlite.org ) | 3.32.3 | 06-18-2020 |
31+ | [ woff2] ( https://github.com/google/woff2 ) | 1.0.2 | 11-13-2017 |
3132| [ freetype] ( https://www.freetype.org ) | 2.10.2 | 05-09-2020 |
3233| [ harbuzz] ( https://www.freedesktop.org/wiki/Software/HarfBuzz ) | 2.6.8 | 06-22-2020 |
3334| [ pixman] ( http://www.pixman.org ) | 0.40.0 | 04-19-2020 |
Original file line number Diff line number Diff line change 1212 " libwebp" ,
1313 " openjpeg" ,
1414 " sqlite3" ,
15+ " woff2" ,
1516 " pixman" ,
1617 " cairo" ,
1718 " libpsl"
Original file line number Diff line number Diff line change 1+ Source: woff2
2+ Version: 1.0.2
3+ Build-Depends: brotli
4+ Description: WOFF2 font compression reference code
Original file line number Diff line number Diff line change 1+ include (vcpkg_common_functions)
2+
3+ set (VERSION 1.0.2)
4+
5+ # The woff2 library does not support shared libraries
6+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
7+
8+ # Get archive
9+ vcpkg_download_distfile(ARCHIVE
10+ URLS "https://github.com/google/woff2/archive/v${VERSION} .zip"
11+ FILENAME "woff2-${VERSION} .zip"
12+ SHA512 4cb38d1daabe40cbede843c9338338590f1eed6843ba97f646a5abf8d64e814c5854561a8197157eeb267e252e316f67bef230afe4a2846cc734e0fdbd77de7e
13+ )
14+
15+ # Extract archive
16+ vcpkg_extract_source_archive_ex(
17+ OUT_SOURCE_PATH SOURCE_PATH
18+ ARCHIVE ${ARCHIVE}
19+ REF ${VERSION}
20+ PATCHES ${PATCHES}
21+ )
22+
23+ # Run CMake build
24+ vcpkg_configure_cmake(
25+ SOURCE_PATH ${SOURCE_PATH}
26+ PREFER_NINJA
27+ )
28+
29+ vcpkg_install_cmake()
30+ vcpkg_copy_pdbs()
31+
32+ # Copy tools
33+ file (COPY ${CURRENT_PACKAGES_DIR} /bin/ DESTINATION ${CURRENT_PACKAGES_DIR} /tools/woff2)
34+ vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR} /tools/woff2)
35+
36+ # Prepare distribution
37+ file (REMOVE_RECURSE ${CURRENT_PACKAGES_DIR} /bin)
38+ file (REMOVE_RECURSE ${CURRENT_PACKAGES_DIR} /debug/bin)
39+ file (REMOVE_RECURSE ${CURRENT_PACKAGES_DIR} /debug/include )
40+ file (INSTALL ${SOURCE_PATH} /LICENSE DESTINATION ${CURRENT_PACKAGES_DIR} /share/woff2 RENAME copyright)
41+ file (WRITE ${CURRENT_PACKAGES_DIR} /share/woff2/version ${VERSION} )
You can’t perform that action at this time.
0 commit comments