mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 02:15:06 +03:00
xvid.com (#1779)
* new file: projects/xvid.com/package.yml new file: projects/xvid.com/test.cpp * modified: projects/xvid.com/package.yml
This commit is contained in:
parent
6e6422de35
commit
6c6d12da3a
2 changed files with 37 additions and 0 deletions
30
projects/xvid.com/package.yml
Normal file
30
projects/xvid.com/package.yml
Normal file
|
@ -0,0 +1,30 @@
|
|||
distributable:
|
||||
url: https://downloads.xvid.com/downloads/xvidcore-{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
url: https://downloads.xvid.com/downloads/
|
||||
match: /xvidcore-\d+\.\d+\.\d+.tar.gz/
|
||||
strip:
|
||||
- /^xvidcore-/
|
||||
- /\.tar.gz/
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
working-directory: build/generic
|
||||
script: |
|
||||
./configure $ARGS
|
||||
make --jobs {{ hw.concurrency }}
|
||||
make --jobs {{ hw.concurrency }} install
|
||||
env:
|
||||
ARGS:
|
||||
- --prefix="{{prefix}}"
|
||||
- --disable-assembly
|
||||
|
||||
test:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
script:
|
||||
cc test.cpp -lxvidcore -o test
|
7
projects/xvid.com/test.cpp
Normal file
7
projects/xvid.com/test.cpp
Normal file
|
@ -0,0 +1,7 @@
|
|||
#include <xvid.h>
|
||||
#define NULL 0
|
||||
int main() {
|
||||
xvid_gbl_init_t xvid_gbl_init;
|
||||
xvid_global(NULL, XVID_GBL_INIT, &xvid_gbl_init, NULL);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue