[giflib] use a vcpkg wrapper for cmake to circumvent bad cmake integrated module (#22141)

* [giflib] create wrapper to circumvent cmake module problems with giflib v5

* [giflib] fix references

* [giflib] remove unnecessary REQUIRED tags

* [giflib] fix references

* reduce wrapper to the minimum

* fix references
This commit is contained in:
Stefano Sinigardi 2021-12-23 04:55:57 +01:00 committed by GitHub
parent 8d968a76e8
commit 772fe6cbce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 1 deletions

View File

@ -29,4 +29,6 @@ vcpkg_cmake_configure(
vcpkg_cmake_install()
vcpkg_copy_pdbs()
file(COPY ${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/gif)
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -0,0 +1,3 @@
find_path(GIF_INCLUDE_DIR gif_lib.h PATH_SUFFIXES include PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" NO_DEFAULT_PATH)
_find_package(${ARGS})

View File

@ -1,6 +1,7 @@
{
"name": "giflib",
"version": "5.2.1",
"port-version": 1,
"description": "A library for reading and writing gif images.",
"homepage": "https://sourceforge.net/projects/giflib/",
"dependencies": [

View File

@ -2438,7 +2438,7 @@
},
"giflib": {
"baseline": "5.2.1",
"port-version": 0
"port-version": 1
},
"ginkgo": {
"baseline": "1.4.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "14178ec83d76a40e314adcf9bba75b63e99bc56d",
"version": "5.2.1",
"port-version": 1
},
{
"git-tree": "7cfc37d67d8662dd5fa5bf698a61ebbd657060cc",
"version": "5.2.1",