From 6c6d12da3ad3a92138507ff4a1d0733396a766b1 Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Mon, 1 May 2023 20:18:12 +0300 Subject: [PATCH] xvid.com (#1779) * new file: projects/xvid.com/package.yml new file: projects/xvid.com/test.cpp * modified: projects/xvid.com/package.yml --- projects/xvid.com/package.yml | 30 ++++++++++++++++++++++++++++++ projects/xvid.com/test.cpp | 7 +++++++ 2 files changed, 37 insertions(+) create mode 100644 projects/xvid.com/package.yml create mode 100644 projects/xvid.com/test.cpp diff --git a/projects/xvid.com/package.yml b/projects/xvid.com/package.yml new file mode 100644 index 00000000..a40c9a94 --- /dev/null +++ b/projects/xvid.com/package.yml @@ -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 \ No newline at end of file diff --git a/projects/xvid.com/test.cpp b/projects/xvid.com/test.cpp new file mode 100644 index 00000000..af8d7355 --- /dev/null +++ b/projects/xvid.com/test.cpp @@ -0,0 +1,7 @@ +#include +#define NULL 0 +int main() { + xvid_gbl_init_t xvid_gbl_init; + xvid_global(NULL, XVID_GBL_INIT, &xvid_gbl_init, NULL); + return 0; +} \ No newline at end of file