[libheif] no absolute paths (#21704)

* [libheif] no absolute paths

* [libde265] Add .pc file

* Update versions

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
This commit is contained in:
autoantwort 2021-11-30 20:50:56 +01:00 committed by GitHub
parent c1c6eb92e9
commit 7ed849f01b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 39 additions and 3 deletions

View File

@ -1,5 +1,7 @@
vcpkg_fail_port_install(ON_ARCH "arm" ON_TARGET "uwp")
# Used for .pc file
set(VERSION "1.0.8")
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO strukturag/libde265
@ -19,6 +21,23 @@ vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/libde265/)
vcpkg_copy_tools(TOOL_NAMES dec265 enc265 AUTO_CLEAN)
set(prefix "")
set(exec_prefix [[${prefix}]])
set(libdir [[${prefix}/lib]])
set(includedir [[${prefix}/include]])
set(LIBS "")
configure_file("${SOURCE_PATH}/libde265.pc.in" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libde265.pc" @ONLY)
# The produced library name is `liblibde265.a` or `libde265.lib`
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libde265.pc" "-lde265" "-llibde265")
# libde265's pc file assumes libstdc++, which isn't always true.
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libde265.pc" " -lstdc++" "")
if(NOT VCPKG_BUILD_TYPE)
configure_file("${SOURCE_PATH}/libde265.pc.in" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libde265.pc" @ONLY)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libde265.pc" "-lde265" "-llibde265")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libde265.pc" " -lstdc++" "")
endif()
vcpkg_fixup_pkgconfig()
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()

View File

@ -1,7 +1,7 @@
{
"name": "libde265",
"version-string": "1.0.8",
"port-version": 1,
"port-version": 2,
"description": "Open h.265 video codec implementation.",
"homepage": "https://www.libde265.org/",
"supports": "!(arm | uwp)"

View File

@ -18,6 +18,12 @@ vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libheif/)
# libheif's pc file assumes libstdc++, which isn't always true.
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libheif.pc" " -lstdc++" "")
if(NOT VCPKG_BUILD_TYPE)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libheif.pc" " -lstdc++" "")
endif()
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

View File

@ -1,6 +1,7 @@
{
"name": "libheif",
"version": "1.12.0",
"port-version": 1,
"description": "Open h.265 video codec implementation.",
"homepage": "http://www.libheif.org/",
"dependencies": [

View File

@ -3390,7 +3390,7 @@
},
"libde265": {
"baseline": "1.0.8",
"port-version": 1
"port-version": 2
},
"libdisasm": {
"baseline": "0.23",
@ -3522,7 +3522,7 @@
},
"libheif": {
"baseline": "1.12.0",
"port-version": 0
"port-version": 1
},
"libhsplasma": {
"baseline": "2021.06.08",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "81ba07f30c6c2a068f8b9f017e437d0062920e4a",
"version-string": "1.0.8",
"port-version": 2
},
{
"git-tree": "e62a21fa7d1d31b6115cb99842ee2e0f54f2ff33",
"version-string": "1.0.8",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "738b6fc8b77a7fa90cd5966358dc3be684a832c1",
"version": "1.12.0",
"port-version": 1
},
{
"git-tree": "7d62a94252d06f84e8011c02793458b43d9f5cd2",
"version": "1.12.0",