* 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:
Andrew 2023-05-01 20:18:12 +03:00 committed by GitHub
parent 6e6422de35
commit 6c6d12da3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 0 deletions

View 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

View 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;
}