5 Commits

Author SHA1 Message Date
Pierre Wendling
93895b28ea
[opusfile] Fix CMake config on case-sensitive filesystem (#29640)
* [opusfile] Fix CMake config for case-sensitive FS.

On case-sensitive filesystems, `OpusFileConfig.cmake` is unable to find
the exported targets due to mismatch case. See xiph/opusfile#42

* [opusfile] Update baseline.
2023-02-14 10:37:09 -08:00
Pierre Wendling
1e7c0f8e62
[opusfile] Disable opusurl on Windows, update to 9d71834 (#29603)
* [opusfile] Bump to 9d71834.

This was recommended to fix dependency issues in sdl2-mixer. See
https://github.com/microsoft/vcpkg/pull/29487#discussion_r1103658181

This commit brings first-party CMake support and minor fixes with no API
change.

* [opusfile] Disable opusurl on Windows.

Fixes #29582.

* [opusfile] Update baseline.

* [opusfile] Update ambiguous comment in usage file.

* [opusfile] Update version.
2023-02-13 08:43:25 -08:00
Pierre Wendling
44943d3a05
[opusfile] Generate .pc files and modernise portfile (#29511)
* [opusfile] Generate pc files.

This is needed for SDL_mixer. (see #29487)

* [opusfile] Modernise portfile.

- 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.

* [opusfile] Update baseline.

* [opusfile] Add license field to vcpkg.json.

* [opusfile] Install pc files for debug.

* [opusfile] Update version.

* [opusfile] Don't install debug pc file in release.

* [opusfile] Update version.
2023-02-09 11:04:21 -08:00
Billy O'Neal
b295670e4b
Bulk convert control files. (#19986)
```
function Convert-Control {
    Param($full)
    .\vcpkg.exe format-manifest $full
    $root = $full.Substring(0, $full.Length - 7) # CONTROL
    $new = $root + 'vcpkg.json'
    $content = Get-Content -Raw $new
    $asJson = ConvertFrom-Json $content -AsHashtable -Depth 100
    $oldVersion = $asJson['port-version']
    if ($null -eq $oldVersion) {
        $oldVersionFull = $asJson['version-string']
        Write-Host "Got version $oldVersionFull"
        $match = [System.Text.RegularExpressions.Regex]::Match($oldVersionFull, '^(.+)-(\d+)$')
        if ($match.Success -and -not [System.Text.RegularExpressions.Regex]::IsMatch($oldVersionFull, '^\d\d\d\d-\d\d-\d\d$')) {
            $newFullVersion = [string]$match.Groups[1].Value
            $oldVersion = [int]$match.Groups[2].Value
            Write-Host "newFullVersion $newFullVersion oldVersion $oldVersion"
            $newVersion = $oldVersion + 1
            $asJson['version-string'] = $newFullVersion
            Write-Host "Previous version for $full extracted from version field -- setting version-string $newFullVersion and port-version $newVersion"
        } else {
            Write-Host "No previous version for $full -- setting 1"
            $newVersion = 1
        }
    } else {
        $newVersion = [int]$oldVersion + 1
        Write-Host "New version for $full : $newVersion"
    }

    $asJson['port-version'] = $newVersion

    $content = ConvertTo-Json $asJson -Depth 100
    Set-Content -Path $new -Value $content
    .\vcpkg.exe format-manifest $new
}

Get-ChildItem ports\CONTROL -Recurse | Foreach-Object {
    Convert-Control $_.FullName
}

git commit -am "this message"
.\vcpkg.exe x-add-version -all
git commit -a --amend
```
2021-09-09 01:24:04 -07:00
nicole mazzuca
68a74950d0
[vcpkg] Rename port_versions to versions (#15784) 2021-01-21 09:53:22 -08:00