mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
parent
1afe1a9baa
commit
30f93c02e5
2 changed files with 63 additions and 0 deletions
43
projects/github.com/libass/libass/package.yml
Normal file
43
projects/github.com/libass/libass/package.yml
Normal 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
|
20
projects/github.com/libass/libass/test.cpp
Normal file
20
projects/github.com/libass/libass/test.cpp
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue