* +libass

* Fix formatting
This commit is contained in:
Joe DeCapo 2023-05-06 16:15:59 -05:00 committed by GitHub
parent 1afe1a9baa
commit 30f93c02e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1,43 @@
distributable:
url: https://github.com/libass/libass/archive/refs/tags/{{version}}.tar.gz
strip-components: 1
versions:
github: libass/libass/tags
dependencies:
freetype.org: 2
gnu.org/fribidi: 1
harfbuzz.org: '*'
github.com/adah1972/libunibreak: '*'
linux:
freedesktop.org/fontconfig: 2
x86-64:
nasm.us: 2
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
gnu.org/autoconf: 2
gnu.org/automake: 1
gnu.org/libtool: 2
freedesktop.org/pkg-config: '*'
script: |
./autogen.sh
./configure $ARGS
make install
env:
ARGS:
- --disable-dependency-tracking
- --prefix={{prefix}}
darwin:
ARGS:
- --disable-fontconfig # libass uses coretext on macOS, fontconfig on Linux
test:
dependencies:
tea.xyz/gx/cc: c99
script: |
c++ test.cpp -lass -o test
./test

View file

@ -0,0 +1,20 @@
#include "ass/ass.h"
int main() {
ASS_Library *library;
ASS_Renderer *renderer;
library = ass_library_init();
if (library) {
renderer = ass_renderer_init(library);
if (renderer) {
ass_renderer_done(renderer);
ass_library_done(library);
return 0;
} else {
ass_library_done(library);
return 1;
}
} else {
return 1;
}
}