mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 10:25:05 +03:00
videolan.org/x264 (#2180)
* new file: projects/videolan.org/x264/package.yml new file: projects/videolan.org/x264/test.c * add gcc in build deps * version (hardcoded) * add fixme for version woes --------- Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
parent
765e6d65a7
commit
315758aa15
2 changed files with 47 additions and 0 deletions
37
projects/videolan.org/x264/package.yml
Normal file
37
projects/videolan.org/x264/package.yml
Normal file
|
@ -0,0 +1,37 @@
|
|||
distributable:
|
||||
url: http://deb.debian.org/debian/pool/main/x/x264/x264_0.164.3095+gitbaee400.orig.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
#FIXME: every variant of x264 versions we can find has git commit shas in the version name
|
||||
- 0.164.3095 #+gitbaee400
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
gnu.org/gcc: '*'
|
||||
tea.xyz/gx/make: '*'
|
||||
nasm.us: '*'
|
||||
script: |
|
||||
./configure $ARGS
|
||||
make --jobs {{ hw.concurrency }} install
|
||||
env:
|
||||
ARGS:
|
||||
- --prefix="{{prefix}}"
|
||||
- --disable-lsmash
|
||||
- --disable-swscale
|
||||
- --disable-ffms
|
||||
- --enable-shared
|
||||
- --enable-static
|
||||
- --enable-strip
|
||||
|
||||
provides:
|
||||
- bin/x264
|
||||
|
||||
test:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
script: |
|
||||
cc test.c -lx264 -o test
|
||||
./test
|
||||
x264 --version | grep {{ version.marketing }}
|
10
projects/videolan.org/x264/test.c
Normal file
10
projects/videolan.org/x264/test.c
Normal file
|
@ -0,0 +1,10 @@
|
|||
#include <stdint.h>
|
||||
#include <x264.h>
|
||||
|
||||
int main() {
|
||||
x264_picture_t pic;
|
||||
x264_picture_init(&pic);
|
||||
x264_picture_alloc(&pic, 1, 1, 1);
|
||||
x264_picture_clean(&pic);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue