mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
parent
97e0c9030b
commit
02b1f22d8b
|
@ -2,9 +2,8 @@ distributable:
|
||||||
url: https://github.com/xiph/opus/archive/refs/tags/v{{ version.raw }}.tar.gz
|
url: https://github.com/xiph/opus/archive/refs/tags/v{{ version.raw }}.tar.gz
|
||||||
strip-components: 1
|
strip-components: 1
|
||||||
|
|
||||||
# if there’s a github then we can parse the versions
|
|
||||||
versions:
|
versions:
|
||||||
github: xiph/opus/tags # reads github tags from github
|
github: xiph/opus/tags
|
||||||
strip: /^v/
|
strip: /^v/
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
@ -12,16 +11,18 @@ build:
|
||||||
gnu.org/autoconf: 2
|
gnu.org/autoconf: 2
|
||||||
gnu.org/automake: 1.16
|
gnu.org/automake: 1.16
|
||||||
gnu.org/libtool: 2.4
|
gnu.org/libtool: 2.4
|
||||||
script: |
|
gnu.org/wget: '*' # downloads content at build time
|
||||||
./autogen.sh
|
script:
|
||||||
./configure $ARGS
|
- ./autogen.sh
|
||||||
make --jobs {{ hw.concurrency }}
|
- ./configure $ARGS
|
||||||
make install
|
- make --jobs {{ hw.concurrency }}
|
||||||
|
- make install
|
||||||
|
|
||||||
mv {{ prefix}}/include/opus/* {{prefix}}/include
|
- run: |
|
||||||
rmdir {{ prefix}}/include/opus
|
mv opus/* .
|
||||||
ln -s . {{ prefix }}/include/opus
|
rmdir opus
|
||||||
# it’s extremely common for packages to require the above
|
ln -s . opus
|
||||||
|
working-directory: ${{ prefix }}/include
|
||||||
env:
|
env:
|
||||||
ARGS:
|
ARGS:
|
||||||
- --prefix={{ prefix }}
|
- --prefix={{ prefix }}
|
||||||
|
@ -29,7 +30,10 @@ build:
|
||||||
- --disable-doc
|
- --disable-doc
|
||||||
|
|
||||||
test:
|
test:
|
||||||
fixture: |
|
- run: cc $FIXTURE -lopus -o test
|
||||||
|
fixture:
|
||||||
|
extname: cpp
|
||||||
|
content: |
|
||||||
#include <opus.h>
|
#include <opus.h>
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
@ -51,7 +55,4 @@ test:
|
||||||
}
|
}
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
script: |
|
- ./test
|
||||||
mv $FIXTURE fixture.cpp
|
|
||||||
cc fixture.cpp -lopus
|
|
||||||
./a.out
|
|
||||||
|
|
Loading…
Reference in a new issue