Skip to content

Commit ed61b6d

Browse files
and-rijhheider
authored andcommitted
new file: projects/speex.org/package.yml
new file: projects/speex.org/test.c
1 parent 44a8c35 commit ed61b6d

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

projects/speex.org/package.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
distributable:
2+
url: https://downloads.xiph.org/releases/speex/speex-1.2.1.tar.gz
3+
strip-components: 1
4+
5+
versions:
6+
url: https://ftp.osuosl.org/pub/xiph/releases/speex/
7+
match: /speex-\d+\.\d+\.\d+.tar.gz/
8+
strip:
9+
- /^speex-/
10+
- /\.tar\.gz$/
11+
12+
dependencies:
13+
xiph.org/ogg: '*'
14+
15+
build:
16+
dependencies:
17+
tea.xyz/gx/cc: c99
18+
tea.xyz/gx/make: '*'
19+
freedesktop.org/pkg-config: '*'
20+
script: |
21+
./configure $ARGS
22+
make --jobs {{ hw.concurrency }} install
23+
env:
24+
ARGS:
25+
- --prefix="{{prefix}}"
26+
27+
provides:
28+
- bin/speexdec
29+
30+
test:
31+
dependencies:
32+
tea.xyz/gx/cc: c99
33+
script:
34+
cc test.c -lspeex -o test

projects/speex.org/test.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#include <speex/speex.h>
2+
3+
int main() {
4+
SpeexBits bits;
5+
void *enc_state;
6+
7+
speex_bits_init(&bits);
8+
enc_state = speex_encoder_init(&speex_nb_mode);
9+
10+
speex_bits_destroy(&bits);
11+
speex_encoder_destroy(enc_state);
12+
13+
return 0;
14+
}

0 commit comments

Comments
 (0)