vcpkg/versions/l-/libvorbis.json
Julian Xhokaxhiu cec6b3798e
[libvorbis] Fix libogg find_package (#39067)
- [x] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [x] 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.

---

Fix Ogg find_package.

Libogg now ships with an `OggConfig.cmake` file and the current way to
find it does not work anymore.
All the patch does adds the CONFIG notation to the find_package
function.

---

Repro case:

1. Add this to your own `vcpkg.json`
```json
{
  "name": "test",
  "version": "0.0.1",
  "dependencies": [
    {
      "name": "ffmpeg",
      "default-features": false,
      "features": [
        "vorbis"
      ],
      "platform": "windows"
    }
  ]
}
```

2. Add this line to your own `CMakeLists.txt`
```cmake
find_package(FFmpeg COMPONENTS AVFORMAT AVUTIL AVCODEC SWRESAMPLE)
```

3. See CMake failing with an error similar to this one:
```
CMake Error at REDACTED/vcpkg_installed/x86-windows-static/share/Vorbis/VorbisTargets.cmake:60 (set_target_properties):
  The link interface of target "Vorbis::vorbis" contains:

    Ogg::ogg

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
  REDACTED/vcpkg_installed/x86-windows-static/share/Vorbis/VorbisConfig.cmake:30 (include)
  C:/vcpkg/scripts/buildsystems/vcpkg.cmake:859 (_find_package)
  REDACTED/vcpkg_installed/x86-windows-static/share/ffmpeg/vcpkg-cmake-wrapper.cmake:190 (find_package)
  C:/vcpkg/scripts/buildsystems/vcpkg.cmake:813 (include)
  CMakeLists.txt:1 (find_package)
```

---------

Co-authored-by: Kai Pastor <dg0yt@darc.de>
2024-06-03 22:40:39 -07:00

80 lines
2.1 KiB
JSON

{
"versions": [
{
"git-tree": "23d11198ff2df7a3af54f1c4645ef71a141f2a85",
"version": "1.3.7",
"port-version": 3
},
{
"git-tree": "c4c646a26ce3e6ad63992d3e4a55cb185159b23c",
"version": "1.3.7",
"port-version": 2
},
{
"git-tree": "54dcb5ab354422e9518a905d501ccc22dcb69098",
"version-string": "1.3.7",
"port-version": 1
},
{
"git-tree": "0b0587525c2053316552dce564fe504a2a40cc91",
"version-string": "1.3.7",
"port-version": 0
},
{
"git-tree": "01ccede900dde05e038364bc8b5576a5bfa4dcd4",
"version-string": "1.3.6-4d963fe",
"port-version": 2
},
{
"git-tree": "98e70b1efd9f89e964672f3796a2ab883c4dbd68",
"version-string": "1.3.6-4d963fe",
"port-version": 0
},
{
"git-tree": "114e152c9adfde6f7064b80f828381df5ccac1ab",
"version-string": "1.3.6-9eadecc-3",
"port-version": 0
},
{
"git-tree": "3413027bb7d4da56758b4eb789ae34dfe93b4cef",
"version-string": "1.3.6-9eadecc-1",
"port-version": 0
},
{
"git-tree": "a58d3c6bb8aec5d8f56114e33d238365e8b79762",
"version-string": "1.3.6-112d3bd-1",
"port-version": 0
},
{
"git-tree": "c38d184c633057325db94f5d59c237c31354d4fd",
"version-string": "1.3.6-112d3bd",
"port-version": 0
},
{
"git-tree": "330bd7ab75c092e6f20d67be59abac4efca0eb30",
"version-string": "1.3.5-143caf4-3",
"port-version": 0
},
{
"git-tree": "cb1900cbe3690d4e461905e5b3c1a018c2a5a8a2",
"version-string": "1.3.5-143caf4-2",
"port-version": 0
},
{
"git-tree": "d4563b5599024b017a53f39f201430a986a2419b",
"version-string": "1.3.5-1-143caf4023a90c09a5eb685fdd46fb9b9c36b1ee",
"port-version": 0
},
{
"git-tree": "a707a67cdaa73df3b6212ec4a2275c83f12b47e2",
"version-string": "1.3.5-143caf4023a90c09a5eb685fdd46fb9b9c36b1ee",
"port-version": 0
},
{
"git-tree": "5d39ab08f2c1b122c040b6a21e5bc5f736879d31",
"version-string": "",
"port-version": 0
}
]
}