+xiph.org/flac (#820)

* #232 +xiph.org/flac
* update version retrieval and make concurrency

---------

Co-authored-by: neil molina <neil@neils-MacBook-Pro.local>
This commit is contained in:
Neil 2023-03-19 21:13:38 +08:00 committed by GitHub
parent 5b76238bad
commit ccb2cb5be6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,52 @@
distributable:
url: https://downloads.xiph.org/releases/flac/flac-{{version}}.tar.xz
strip-components: 1
versions:
github: xiph/flac/releases/tags
dependencies:
xiph.org/ogg: ^1.3.5
build:
dependencies:
freedesktop.org/pkg-config: ^0.29
gnu.org/libtool: ^2.4
gnu.org/automake: ^1.16
gnu.org/autoconf: ^2.71
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
script: |
./configure $ARGS
make --jobs {{ hw.concurrency }} install
env:
ARGS:
- --disable-debug
- --disable-dependency-tracking
- --prefix="{{prefix}}"
- --enable-static
provides:
- bin/flac
test:
script: |
test "$(flac --version)" = "flac {{version}}"
flac $ARG1
flac $ARG2
env:
ARG1:
- --decode
- --force-raw
- --endian=little
- --sign=signed
- --output-name=out.raw
- test.flac
ARG2:
- --endian=little
- --sign=signed
- --channels=1
- --bps=8
- --sample-rate=8000
- --output-name=out.flac
- out.raw

Binary file not shown.