mirror of
https://github.com/ivabus/pantry
synced 2024-11-29 19:55:06 +03:00
parent
d66af0823e
commit
db66ef123c
1 changed files with 37 additions and 0 deletions
37
projects/xiph.org/vorbis/package.yml
Normal file
37
projects/xiph.org/vorbis/package.yml
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
distributable:
|
||||||
|
url: https://downloads.xiph.org/releases/vorbis/libvorbis-1.3.7.tar.xz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: xiph/vorbis
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
xiph.org/ogg: ^1
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
tea.xyz/gx/cc: c99
|
||||||
|
tea.xyz/gx/make: '*'
|
||||||
|
script: |
|
||||||
|
./configure --prefix="{{prefix}}"
|
||||||
|
make --jobs {{ hw.concurrency }} install
|
||||||
|
|
||||||
|
test:
|
||||||
|
dependencies:
|
||||||
|
tea.xyz/gx/cc: c99
|
||||||
|
fixture: |
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <assert.h>
|
||||||
|
#include "vorbis/vorbisfile.h"
|
||||||
|
int main (void) {
|
||||||
|
OggVorbis_File vf;
|
||||||
|
assert (ov_open_callbacks (stdin, &vf, NULL, 0, OV_CALLBACKS_NOCLOSE) >= 0);
|
||||||
|
vorbis_info *vi = ov_info (&vf, -1);
|
||||||
|
printf("Bitstream is %d channel, %ldHz\\n", vi->channels, vi->rate);
|
||||||
|
printf("Encoded by: %s\\n", ov_comment(&vf,-1)->vendor);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
script: |
|
||||||
|
mv $FIXTURE b.c
|
||||||
|
cc b.c -lvorbisfile
|
||||||
|
# ./a.out
|
Loading…
Reference in a new issue