vcpkg/ports/libsoup/portfile.cmake
JonLiu1993 1d35662484
[vcpkg baseline][libsoup] disable search krb5 to fix ci pinpline error (#38750)
Fixes regression:
https://dev.azure.com/vcpkg/public/_build/results?buildId=102737&view=results
````
REGRESSION: libsoup:x64-linux failed with BUILD_FAILED
````
Error:
````
/mnt/vcpkg-ci/b/krb5/x64-linux-dbg/util/et/../.././../src/krb5-1-8a38cd677f.clean/src/include/k5-thread.h:381: undefined reference to `k5_os_mutex_unlock'
````
Installation order issue. libsoup automatically detect the presence of
krb5 and use it. Then the binary artifacts depend on krb5 binaries
without declaring them. So disable auto-detection of krb5 in libsoup.

- [x] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [ ] ~~SHA512s are updated for each updated download.~~
- [ ] ~~The "supports" clause reflects platforms that may be fixed by
this new version.~~
- [ ] ~~Any fixed [CI
baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt)
entries are removed from that file.~~
- [ ] ~~Any patches that are no longer applied are deleted from the
port's directory.~~
- [x] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [x] Only one version is added to each modified port's versions file.

---------

Co-authored-by: Jon <v-zhli17@microsoft.com>
2024-05-16 14:18:18 -07:00

34 lines
1.3 KiB
CMake

vcpkg_from_gitlab(
GITLAB_URL https://gitlab.gnome.org
OUT_SOURCE_PATH SOURCE_PATH
REPO GNOME/libsoup
REF "${VERSION}"
SHA512 "780d360167af1c7b5497d79c6752f3fb917b552928f7e1af6476e2713285426de7803fc28d1b76c541d5246a404772abd0f412acc953d6a1441e632416f72f94"
HEAD_REF main
)
vcpkg_configure_meson(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-Dtls_check=false
-Ddocs=disabled
-Dtests=false
-Ddoc_tests=false
-Dkrb5_config=false
-Dgssapi=disabled
ADDITIONAL_BINARIES
"gio-querymodules = '${CURRENT_HOST_INSTALLED_DIR}/tools/glib/gio-querymodules${CMAKE_EXECUTABLE_SUFFIX}'"
"glib-compile-schemas = '${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-compile-schemas${CMAKE_EXECUTABLE_SUFFIX}'"
"glib-compile-resources = '${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-compile-resources${CMAKE_EXECUTABLE_SUFFIX}'"
"gdbus-codegen = '${CURRENT_HOST_INSTALLED_DIR}/tools/glib/gdbus-codegen'"
"glib-genmarshal = '${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-genmarshal'"
"glib-mkenums = '${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums'"
)
vcpkg_install_meson()
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")