Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[opusfile] Generate .pc files and modernise portfile #29511

Merged
merged 8 commits into from
Feb 9, 2023

Conversation

FtZPetruska
Copy link
Contributor

  • Changes comply with the maintainer guide
  • SHA512s are updated for each updated download
  • The "supports" clause reflects platforms that may be fixed by this new version
  • Any fixed CI baseline entries are removed from that file.
  • Any patches that are no longer applied are deleted from the port's directory.
  • The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
  • Only one version is added to each modified port's versions file.

This PR allows the creating of .pc files for opusfile and opusurl. This is needed for #29487.

Additionally, the portfile was modernised to replace deprecated functions, use ${VERSION}, and use vcpkg_ functions instead of doing things manually.

There is also an issue building opusurl on Windows, but it does not seem to be related to this PR, as build was already failing on the master branch.

This is needed for SDL_mixer. (see microsoft#29487)
- Use `${VERSION}` for the REF.
- Use `vcpkg_check_features` to check for opusurl.
- Replace deprecated functions with the ones from `vcpkg-cmake`.
- Use `vcpkg_replace_string` to edit the header.
- Use `vcpkg_install_copyright` to install the license.
github-actions[bot]
github-actions bot previously approved these changes Feb 7, 2023
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have modified or added at least one vcpkg.json where you should check the license field.

If you feel able to do so, please consider adding a "license" field to the following files:

  • ports/opusfile/vcpkg.json

Valid values for the license field can be found in the documentation

github-actions[bot]
github-actions bot previously approved these changes Feb 7, 2023
@MonicaLiu0311 MonicaLiu0311 added the category:port-bug The issue is with a library, which is something the port should already support label Feb 8, 2023
MonicaLiu0311
MonicaLiu0311 previously approved these changes Feb 8, 2023
@MonicaLiu0311 MonicaLiu0311 added the info:reviewed Pull Request changes follow basic guidelines label Feb 8, 2023
@dg0yt
Copy link
Contributor

dg0yt commented Feb 8, 2023

I would assume that we also need debug variants of the pc files.

github-actions[bot]
github-actions bot previously approved these changes Feb 8, 2023
@FtZPetruska
Copy link
Contributor Author

I would assume that we also need debug variants of the pc files.

You're correct, I've added them in e7b683f. Thank you for the feedback!

@MonicaLiu0311 MonicaLiu0311 removed the info:reviewed Pull Request changes follow basic guidelines label Feb 8, 2023
@MonicaLiu0311 MonicaLiu0311 added the info:reviewed Pull Request changes follow basic guidelines label Feb 9, 2023
@JavierMatosD JavierMatosD merged commit 44943d3 into microsoft:master Feb 9, 2023
@FtZPetruska FtZPetruska deleted the opusfile-pkg-config branch February 9, 2023 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants