mirror of https://github.com/microsoft/vcpkg.git
[uvg266] new port (#52979)
Co-authored-by: torusrxxx <torusrxxx@noreply.users.github.com> Co-authored-by: Victor Romero <romerosanchezv@gmail.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: c7b186e3-fc86-45e8-a903-bb87dfd375f5
This commit is contained in:
parent
163e2e8758
commit
873e8e15d2
|
|
@ -0,0 +1,45 @@
|
|||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO ultravideo/uvg266
|
||||
REF v${VERSION}
|
||||
SHA512 892b0732516fe2639f93b250bbed342da8134deeaa6f0ccb429ff8451df727f971c7ee284fef93eaa431c5c54a8b8789ffc853d8b45ae93433ba17007989bbae
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
DISABLE_PARALLEL_CONFIGURE
|
||||
OPTIONS
|
||||
-DBUILD_TESTS=OFF
|
||||
-DGIT_SUBMODULE=OFF
|
||||
MAYBE_UNUSED_VARIABLES GIT_SUBMODULE
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_copy_pdbs()
|
||||
vcpkg_fixup_pkgconfig()
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL "static" AND VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/uvg266.pc" "-luvg266" "-llibuvg266")
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/uvg266.pc" "-luvg266" "-llibuvg266")
|
||||
endif()
|
||||
vcpkg_copy_tools(TOOL_NAMES uvg266 AUTO_CLEAN)
|
||||
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/uvg266")
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||
vcpkg_replace_string(
|
||||
"${CURRENT_PACKAGES_DIR}/include/uvg266.h"
|
||||
"#define UVG266_H_"
|
||||
"#define UVG266_H_\n#define UVG_STATIC_LIB"
|
||||
)
|
||||
endif()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
vcpkg_install_copyright(
|
||||
FILE_LIST
|
||||
"${SOURCE_PATH}/LICENSE"
|
||||
"${SOURCE_PATH}/LICENSE.EXT.greatest"
|
||||
"${SOURCE_PATH}/src/threadwrapper/LICENSE"
|
||||
"${SOURCE_PATH}/src/extras/getopt.h"
|
||||
"${SOURCE_PATH}/src/extras/libmd5.h"
|
||||
)
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"name": "uvg266",
|
||||
"version": "0.8.1",
|
||||
"description": "An open-source VVC encoder licensed under 3-clause BSD",
|
||||
"homepage": "https://github.com/ultravideo/uvg266",
|
||||
"license": "BSD-3-Clause AND BSD-2-Clause AND ISC",
|
||||
"supports": "!x86",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -10568,6 +10568,10 @@
|
|||
"baseline": "2025-10-28",
|
||||
"port-version": 0
|
||||
},
|
||||
"uvg266": {
|
||||
"baseline": "0.8.1",
|
||||
"port-version": 0
|
||||
},
|
||||
"uvw": {
|
||||
"baseline": "3.4.0",
|
||||
"port-version": 0
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "a2222900f380c5deeedcfe3b8d533e901ac64776",
|
||||
"version": "0.8.1",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue