mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
new file: projects/speex.org/package.yml
new file: projects/speex.org/test.c
This commit is contained in:
parent
44a8c35f87
commit
ed61b6dff6
2 changed files with 48 additions and 0 deletions
34
projects/speex.org/package.yml
Normal file
34
projects/speex.org/package.yml
Normal file
|
@ -0,0 +1,34 @@
|
|||
distributable:
|
||||
url: https://downloads.xiph.org/releases/speex/speex-1.2.1.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
url: https://ftp.osuosl.org/pub/xiph/releases/speex/
|
||||
match: /speex-\d+\.\d+\.\d+.tar.gz/
|
||||
strip:
|
||||
- /^speex-/
|
||||
- /\.tar\.gz$/
|
||||
|
||||
dependencies:
|
||||
xiph.org/ogg: '*'
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
freedesktop.org/pkg-config: '*'
|
||||
script: |
|
||||
./configure $ARGS
|
||||
make --jobs {{ hw.concurrency }} install
|
||||
env:
|
||||
ARGS:
|
||||
- --prefix="{{prefix}}"
|
||||
|
||||
provides:
|
||||
- bin/speexdec
|
||||
|
||||
test:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
script:
|
||||
cc test.c -lspeex -o test
|
14
projects/speex.org/test.c
Normal file
14
projects/speex.org/test.c
Normal file
|
@ -0,0 +1,14 @@
|
|||
#include <speex/speex.h>
|
||||
|
||||
int main() {
|
||||
SpeexBits bits;
|
||||
void *enc_state;
|
||||
|
||||
speex_bits_init(&bits);
|
||||
enc_state = speex_encoder_init(&speex_nb_mode);
|
||||
|
||||
speex_bits_destroy(&bits);
|
||||
speex_encoder_destroy(enc_state);
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue