Commit Graph

23 Commits

Author SHA1 Message Date
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
Kai Pastor
0537d52181
[libvorbis] Fix mingw-dynamic, modernize port (#23761)
* Fix mingw-dynamic builds

* Modernize portfile

* Add explicit usage

* Update versions

* Drop obsolete PREFER_NINJA

* Update versions
2022-03-25 14:56:02 -07:00
Matthew Oliver
72d98524e3
[ffmpeg] Update to 4.3.1 (#13365)
Co-authored-by: Lily <47812810+LilyWangL@users.noreply.github.com>
Co-authored-by: wangli28 <wangli28@beyondsoft.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2020-10-07 00:23:23 -07:00
evpobr
89aa2f39f0
[libvorbis] Update to 1.3.7 (#12909) 2020-08-19 21:21:09 -07:00
Matthew Oliver
272269583c
[ffmpeg] Add feature support for zlib, iconv, fdk-aac, mp3lame, opus, soxr, theora. (#11277)
Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com>
2020-08-18 12:58:14 -07:00
evpobr
e73ad47065 [libvorbis] Update to 1.3.6-4d963fe
* Use latest upsteam
* Support config mode (upstream)
* Remove patch 0002 (merged to upstream)
* Remove `ogg.patch` (not needed)
2020-04-10 13:52:40 +05:00
pravic
18b029a5e3 [WIP] Add a Homepage URL entry for vcpkg ports (#2933)
* [vcpkg] Add "Homepage" field to the CONTROL files.
2019-06-15 16:54:47 -07:00
Alexander Neumann
cb98a5c0dd [libvorbis] patch find_library instead of manually supplying the libr… (#6569)
* [libvorbis] patch find_library instead of manually supplying the library to cmake

* whitespace change to retrigger ci
2019-05-24 15:37:50 -07:00
past-due
9040bb8a78 [libvorbis] Update to 1.3.6-9eadecc (#5506) 2019-03-05 08:47:37 -08:00
Lyle Tafoya
adcf87465f Fixes #4422 dynamic build failure on Linux (#4423)
* Fixes #4422 dynamic build failure on Linux

* [libvorbis] Adapt to modern best practices. Test for files instead of using the platform.
2018-10-11 21:12:10 -07:00
past-due
db7d775a51 [libvorbis] Update to 1.3.6-112d3bd 2018-05-22 13:52:32 -04:00
Alexander Karatarakis
26516fe485 vcpkg_configure_cmake (and _meson) now embed debug symbols within static libs (/Z7) 2017-09-09 00:12:54 -07:00
codicodi
120718b78b [libvorbis] enable static builds & fix symbol duplication 2017-04-14 16:11:30 +02:00
Robert Schumacher
7a080e7916 [libvorbis] Fixup missed commit in a2f3a4b 2017-02-01 19:05:55 -08:00
Robert Schumacher
a2f3a4bf4c [libvorbis] Move patch application outside if() to ensure it applies to previously obtained sources 2017-02-01 19:02:14 -08:00
Dale Stammen
f02c8f9e64 added patch to add missing NO_DEPRECATE defines for UWP 2017-02-01 06:40:01 -08:00
Alexander Karatarakis
833fbb2ef1 [libvorbis] Add version 2017-01-06 15:40:37 -08:00
Alexander Karatarakis
cadee66ca2 If portfile is not static-enabled yet, warn and then build dynamic
The opposite if portfile is not dynamic enabled
2016-11-08 14:38:47 -08:00
Alexander Karatarakis
1808d461b0 triplet is now automatically included before portfiles.
Also remove trailing whitespaces from portfiles
2016-11-08 14:25:47 -08:00
Alexander Karatarakis
fd81dc37bb [libvorbis] Mark as not supporting static yet 2016-10-26 16:38:50 -07:00
Robert Schumacher
5b3a90e57d [libvorbis] Correct Build-depends field in control file. Fixes #227 2016-10-26 16:28:58 -07:00
Robert Schumacher
d2c3ad8b57 [libogg] [libvorbis] Add vcpkg_copy_pdbs() 2016-10-24 15:36:33 -07:00
vlj
c22ceaf2b3 Add libvorbis. 2016-10-25 00:03:36 +02:00