File tree 5 files changed +48
-0
lines changed
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):
36
36
'libwebp' ,
37
37
'openjpeg' ,
38
38
'sqlite3' ,
39
+ 'woff2' ,
39
40
'pixman' ,
40
41
'cairo' ,
41
42
'libpsl' ,
Original file line number Diff line number Diff line change 28
28
| [ libwebp] ( https://github.com/webmproject/libwebp ) | 1.1.0 | 01-06-2020 |
29
29
| [ openjpeg] ( https://www.openjpeg.org/ ) | 2.3.1 | 04-02-2019 |
30
30
| [ sqlite] ( http://sqlite.org ) | 3.32.3 | 06-18-2020 |
31
+ | [ woff2] ( https://github.com/google/woff2 ) | 1.0.2 | 11-13-2017 |
31
32
| [ freetype] ( https://www.freetype.org ) | 2.10.2 | 05-09-2020 |
32
33
| [ harbuzz] ( https://www.freedesktop.org/wiki/Software/HarfBuzz ) | 2.6.8 | 06-22-2020 |
33
34
| [ pixman] ( http://www.pixman.org ) | 0.40.0 | 04-19-2020 |
Original file line number Diff line number Diff line change 12
12
" libwebp" ,
13
13
" openjpeg" ,
14
14
" sqlite3" ,
15
+ " woff2" ,
15
16
" pixman" ,
16
17
" cairo" ,
17
18
" 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