mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
opencore-amr.sourceforge.io (#2152)
* new file: projects/opencore-amr.sourceforge.io/package.yml new file: projects/opencore-amr.sourceforge.io/test.c * remove tea default flags --------- Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
parent
bd0e28fe8d
commit
85cd8a6627
32
projects/opencore-amr.sourceforge.io/package.yml
Normal file
32
projects/opencore-amr.sourceforge.io/package.yml
Normal file
|
@ -0,0 +1,32 @@
|
|||
distributable:
|
||||
url: https://downloads.sourceforge.net/project/opencore-amr/opencore-amr/opencore-amr-{{ version }}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
url: https://sourceforge.net/projects/opencore-amr/files/opencore-amr/
|
||||
match: /opencore-amr-\d+\.\d+\.\d+\.tar\.gz/
|
||||
strip:
|
||||
- /^opencore-amr-/
|
||||
- /.tar\.gz$/
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
script: |
|
||||
./configure $ARGS
|
||||
make --jobs {{ hw.concurrency }} install
|
||||
env:
|
||||
ARGS:
|
||||
- --prefix="{{prefix}}"
|
||||
- --disable-dependency-tracking
|
||||
|
||||
test:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
freedesktop.org/pkg-config: '*'
|
||||
script: |
|
||||
pkg-config --modversion opencore-amrnb | grep {{ version }}
|
||||
pkg-config --modversion opencore-amrwb | grep {{ version }}
|
||||
cc test.c -lopencore-amrwb -o "test"
|
||||
./test
|
6
projects/opencore-amr.sourceforge.io/test.c
Normal file
6
projects/opencore-amr.sourceforge.io/test.c
Normal file
|
@ -0,0 +1,6 @@
|
|||
#include <opencore-amrwb/dec_if.h>
|
||||
int main(void) {
|
||||
void *s = D_IF_init();
|
||||
D_IF_exit(s);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue