[babl] Revise deps, add feature (#43714)

This commit is contained in:
Kai Pastor 2025-02-19 04:15:30 +01:00 committed by GitHub
parent 9b7f1ae558
commit 0413db10ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 30 additions and 14 deletions

View File

@ -1,5 +1,5 @@
vcpkg_download_distfile(ARCHIVE
URLS https://download.gimp.org/pub/babl/0.1/babl-${VERSION}.tar.xz
URLS "https://download.gimp.org/pub/babl/0.1/babl-${VERSION}.tar.xz"
FILENAME "babl-${VERSION}.tar.xz"
SHA512 20e40baa6654785d69642e6e85542968db3c5d08da630adc590ff066a52c5938f4ce8a77c0097e00010a905c8c31d8f131eb0308a3f8b6439ab6be4133eae246
)
@ -7,21 +7,26 @@ vcpkg_download_distfile(ARCHIVE
vcpkg_extract_source_archive(
SOURCE_PATH
ARCHIVE "${ARCHIVE}"
PATCHES
)
set(feature_options "")
if("cmyk-icc" IN_LIST FEATURES)
list(APPEND feature_options "-Dwith-lcms=true")
else()
list(APPEND feature_options "-Dwith-lcms=false")
endif()
vcpkg_configure_meson(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-Dwith-docs=false
${feature_options}
-Denable-gir=false
-Dwith-docs=false
)
vcpkg_install_meson()
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")

View File

@ -1,17 +1,23 @@
{
"name": "babl",
"version": "0.1.110",
"description": "Pixel format conversion library.",
"port-version": 1,
"description": "A pixel encoding and color space conversion engine.",
"homepage": "https://gegl.org/babl/",
"license": "LGPL-3.0-or-later",
"supports": "!windows | mingw",
"dependencies": [
"glib",
"lcms",
"librsvg",
{
"name": "vcpkg-tool-meson",
"host": true
}
]
],
"features": {
"cmyk-icc": {
"description": "Support CMYK ICC profiles.",
"dependencies": [
"lcms"
]
}
}
}

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "e8ed29ba69e54dd8f218c3f520689f0a27fbdd69",
"version": "0.1.110",
"port-version": 1
},
{
"git-tree": "926b963761bc58db14e2f6c573a6462d43a68953",
"version": "0.1.110",

View File

@ -554,7 +554,7 @@
},
"babl": {
"baseline": "0.1.110",
"port-version": 0
"port-version": 1
},
"backward-cpp": {
"baseline": "2023-11-24",