31 Commits

Author SHA1 Message Date
fwcd
5605709a96
[libflac] Add stack-protector to default features (#37155)
A small follow-up to #37086, which unintentionally disabled the stack
protector on non-WASM platforms.

This adds it to the set of default features (on all non-WASM platforms),
which should fix this.

- [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.
- [x] The "supports" clause reflects platforms that may be fixed by this
new version.
- [x] Any fixed [CI
baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt)
entries are removed from that file.
- [x] 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.
2024-03-05 23:36:25 -08:00
fwcd
2a8f2c6467
[libflac] Fix WASM build by disabling stack protector via feature (#37086)
This fixes the `wasm32-emscripten` build of `libflac`, which would
previously fail with

<details>

<summary>Linking Errors</summary>

```
[59/61] : && /opt/homebrew/Cellar/emscripten/3.1.54/libexec/emcc -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wnested-externs -Wshadow -Wundef -Wmissing-declarations -Winline  -DNDEBUG -O3 -DNDEBUG  microbench/CMakeFiles/benchmark_residual.dir/benchmark_residual.c.o microbench/CMakeFiles/benchmark_residual.dir/util.c.o -o microbench/benchmark_residual.js  src/libFLAC/libFLAC.a  -lrt  -lm  <path to vcpkg>/installed/wasm32-emscripten-release/lib/libogg.a && :
FAILED: microbench/benchmark_residual.js 
: && /opt/homebrew/Cellar/emscripten/3.1.54/libexec/emcc -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wnested-externs -Wshadow -Wundef -Wmissing-declarations -Winline  -DNDEBUG -O3 -DNDEBUG  microbench/CMakeFiles/benchmark_residual.dir/benchmark_residual.c.o microbench/CMakeFiles/benchmark_residual.dir/util.c.o -o microbench/benchmark_residual.js  src/libFLAC/libFLAC.a  -lrt  -lm  <path to vcpkg>/installed/wasm32-emscripten-release/lib/libogg.a && :
wasm-ld: error: microbench/CMakeFiles/benchmark_residual.dir/benchmark_residual.c.o: undefined symbol: __stack_chk_guard
wasm-ld: error: microbench/CMakeFiles/benchmark_residual.dir/benchmark_residual.c.o: undefined symbol: __stack_chk_guard
wasm-ld: error: microbench/CMakeFiles/benchmark_residual.dir/benchmark_residual.c.o: undefined symbol: __stack_chk_fail
wasm-ld: error: microbench/CMakeFiles/benchmark_residual.dir/benchmark_residual.c.o: undefined symbol: __stack_chk_guard
wasm-ld: error: microbench/CMakeFiles/benchmark_residual.dir/benchmark_residual.c.o: undefined symbol: __stack_chk_guard
wasm-ld: error: microbench/CMakeFiles/benchmark_residual.dir/benchmark_residual.c.o: undefined symbol: __stack_chk_fail
```

</details>

The stack protector flag is [documented
here](66152791d8/CMakeLists.txt (L21))
and is [unsupported in
Emscripten](https://github.com/emscripten-core/emscripten/issues/17030).

### Checklist

- [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.
- [x] The "supports" clause reflects platforms that may be fixed by this
new version.
- [x] Any fixed [CI
baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt)
entries are removed from that file.
- [x] 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.
2024-03-05 02:06:46 -08:00
Jia Yue Hua
2028f27543
[libflac] update to 1.4.3 (#34141) 2023-10-02 20:23:53 -07:00
Pierre Wendling
658a8165a9
[libflac] Bump to 1.4.2 (#29584)
* [libflac] Bump to 1.4.2.

- The license was incorrectly set to GFDL instead of BSD-3.
See: https://github.com/xiph/flac#components
- Remove patches that were merged upstream.
- Stack protection and fortify source under mingw is checked upstream.
- CMake config file location has changed.
- Use vcpkg_install_copyright to install license.

* [libflac] Add usage file.

* [libflac] Update baseline.
2023-02-13 07:37:00 -08:00
Thomas1664
768932ab5b
[libflac] Disable man pages (#26016)
* [libflac] Remove documentation

* version

* [libflac] Disable man pages

* version

* man already removed

* version
2022-07-28 15:19:48 -07:00
Cheney Wang
ee0bf4729a
[libflac] Update to 1.3.4 (#24399)
* [libflac] Update to 1.3.4

* Fix usage issue

* Modify format

Co-authored-by: Cheney-Wang <v-xincwa@microsoft.com>
2022-04-26 19:26:07 -07:00
Alexander Neumann
b03d383e49
[libflac] Fix pc file (#21675)
* [libflac] fix pc file; remove m flag on windows and add version

* version stuff
2021-11-29 12:02:52 -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
cbergemann
b24be705e9
[libflac] require NASM for libflac[asm] (#14465)
* require NASM for libflac[asm]

* Increment port version number

* Update ports/libflac/portfile.cmake

Co-authored-by: BergemannC <CBergemann@nordex-online.com>
Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
2020-11-10 09:34:50 -08:00
NancyLi1013
27268c700a
[libflac] Fix build error (#14230) 2020-10-27 20:34:03 -07:00
Long Nguyen
80ef2a3455
[flac] Disable stack smash protection and FORTIFY_SOURCE for mingw (#12761)
* [flac] Disable stack smash protection and FORTIFY_SOURCE for mingw

* Change flag injection + copyright install
2020-08-07 11:42:21 -07:00
Kevin Lu
62d4320409
[sdl2-mixer] Fix FLAC symbol export when static linking, add nativemidi default feature (#12374)
* [sdl2-mixer] Fix FLAC symbol export when static linking

Fix regression introduced by #11152

* [sdl2-mixer] Add nativemidi default feature

Closes #10318

* [libsndfile] Revert to port version 8 as version 10

* [libflac] Use BUILD_SHARED_LIBS to properly export FLAC__NO_DLL via CMake

* [libflac] Force FLAC__NO_DLL in installed headers in static triplets

* [libflac] Modify headers on installation
2020-07-31 11:23:27 -07:00
evpobr
875821cd80
[libflac] Update to 1.3.3-1 (#11152)
Update to ce6dd6b which has the following benign changes compared to 1.3.3 proper

* `std::`-ify a bunch of C library stuff
* C-cast -> `static_cast` or `reinterpret_cast`
* build system changes
* `unsigned` -> `uint32_t`
* removing UB in some shifts
* better support for powerPC and Windows
* Change out `cos(double)` for `cosf(float)` in C
* Correct `%d` to `%u` in printf
2020-05-21 11:19:21 -07:00
Michał Janiszewski
bfaf18478f [libflac] Update libflac to 1.3.3 (#8988)
* [libflac] Update libflac to 1.3.3

* Update portfile.cmake
2019-11-21 17:03:32 -08: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 Karatarakis
0fe2068a56 [libflac] Apply patch for flac_max and flac_min 2018-10-03 22:54:39 -07:00
Robert Schumacher
827c893b8e [sfml] Support Linux 2018-04-30 16:00:29 -07:00
Aybe
38ae2f69b7 [libflac] using #ifdef for patches instead 2017-11-21 05:46:58 +01:00
Aybe
cb30c3fd00 [libflac] patches for UWP builds 2017-11-17 00:54:14 +01: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
f3e520b2d7 [libflac] fix build with MSBuild generator 2017-04-27 14:17:29 +02:00
Anonymous Maarten
ae57ea52f9 Escape PROJECT_SOURCE_DIR since it can contain spaces
fixes: nasm: error: more than one input file specified
2017-04-24 02:30:47 +02:00
codicodi
c24afa97a2 [flac] use nasm 2017-03-09 23:52:45 +01:00
codicodi
099df5267e [libflac] bum version in CONTROL file 2017-02-25 15:28:48 +01:00
codicodi
533c60fcca [libflac] update to 1.3.2 2017-02-25 15:25:20 +01:00
codicodi
abc8c37520 [libflac] bump version 2016-12-07 17:50:56 +01:00
codicodi
764563457f [libflac] remove unused flags 2016-12-07 17:49:28 +01:00
codicodi
7927112acb [libflac] link to correct version of ogg 2016-12-07 17:48:01 +01:00
Alexander Karatarakis
59587d94c7 [libflac] Fix typo 2016-12-06 14:39:17 -08:00
codicodi
f1a3424c77 [libflac] update config in static builds
Now static libs can be used without defining FLAC__NO_DLL by user.
2016-12-06 22:38:25 +01:00
codicodi
175bb41f82 [libflac] initial commit 2016-12-06 12:14:31 +01:00