diff options
| author | Leonardo Guilherme de Freitas <leonardo.guilherme@gmail.com> | 2020-07-07 17:41:59 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-07 13:41:59 -0700 |
| commit | 7c82b03faf93e607c722e518819a54e4359aeddc (patch) | |
| tree | 42591eeb8b3da55f0688b615718f9f0d654c81a4 | |
| parent | 8f886661b6bf7c495a2452802fca6fa100a21cd8 (diff) | |
| download | vcpkg-7c82b03faf93e607c722e518819a54e4359aeddc.tar.gz vcpkg-7c82b03faf93e607c722e518819a54e4359aeddc.zip | |
[Font Chef] add font-chef C/C++ library (#12293)
* add font-chef
* Fix wrong hash and useless command
* Fix static build error
Co-authored-by: Lily <47812810+LilyWangL@users.noreply.github.com>
| -rw-r--r-- | ports/font-chef/CONTROL | 4 | ||||
| -rw-r--r-- | ports/font-chef/portfile.cmake | 23 |
2 files changed, 27 insertions, 0 deletions
diff --git a/ports/font-chef/CONTROL b/ports/font-chef/CONTROL new file mode 100644 index 000000000..4b097acb9 --- /dev/null +++ b/ports/font-chef/CONTROL @@ -0,0 +1,4 @@ +Source: font-chef
+Version: 1.0.1
+Description: A font cooking library
+Homepage: https://github.com/mobius3/font-chef
diff --git a/ports/font-chef/portfile.cmake b/ports/font-chef/portfile.cmake new file mode 100644 index 000000000..2ae280bdc --- /dev/null +++ b/ports/font-chef/portfile.cmake @@ -0,0 +1,23 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO mobius3/font-chef
+ REF v1.0.1
+ SHA512 0d73d095a2f6346cde5fc58a07be7cbe2c180ab5c83a4af21f765a6be1e9dcc5a403fa1d4c64f71dad5609eb72c8b05df8606b4035fceadca74fe6a87bb8efef
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/${PORT}")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
+endif()
+
+file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
