diff --git a/ports/libheif/portfile.cmake b/ports/libheif/portfile.cmake index 0572f84ed4..81bdfc46ec 100644 --- a/ports/libheif/portfile.cmake +++ b/ports/libheif/portfile.cmake @@ -8,12 +8,18 @@ vcpkg_from_github( gdk-pixbuf.patch ) +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + hevc WITH_X265 +) + vcpkg_cmake_configure( SOURCE_PATH "${SOURCE_PATH}" OPTIONS -DWITH_EXAMPLES=OFF -DWITH_DAV1D=OFF -DPKG_CONFIG_USE_CMAKE_PREFIX_PATH=ON + ${FEATURE_OPTIONS} ) vcpkg_cmake_install() vcpkg_copy_pdbs() diff --git a/ports/libheif/vcpkg.json b/ports/libheif/vcpkg.json index 81e0c3ae0e..9b079991b0 100644 --- a/ports/libheif/vcpkg.json +++ b/ports/libheif/vcpkg.json @@ -1,6 +1,7 @@ { "name": "libheif", "version": "1.17.6", + "port-version": 1, "description": "libheif is an HEIF and AVIF file format decoder and encoder.", "homepage": "http://www.libheif.org/", "license": "LGPL-3.0-only", @@ -18,7 +19,18 @@ { "name": "vcpkg-cmake-config", "host": true - }, - "x265" - ] + } + ], + "default-features": [ + "hevc" + ], + "features": { + "hevc": { + "description": "HEVC encoding via x265", + "license": "GPL-2.0-or-later", + "dependencies": [ + "x265" + ] + } + } } diff --git a/versions/baseline.json b/versions/baseline.json index 4f2c537777..0640d3d535 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -4434,7 +4434,7 @@ }, "libheif": { "baseline": "1.17.6", - "port-version": 0 + "port-version": 1 }, "libhsplasma": { "baseline": "2023-05-08", diff --git a/versions/l-/libheif.json b/versions/l-/libheif.json index 8d45c4f14a..a0e2640be1 100644 --- a/versions/l-/libheif.json +++ b/versions/l-/libheif.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "09b2045951b7521e2d597082009265a70427581d", + "version": "1.17.6", + "port-version": 1 + }, { "git-tree": "b5871a26f6e90560089b413fc136e7f0062885b8", "version": "1.17.6",