+libbluray (#1873)

* +libbluray

* cleanup brewisms

---------

Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
Joe DeCapo 2023-05-07 15:44:16 -05:00 committed by GitHub
parent bc5a88ce8f
commit bff3b77d71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,42 @@
distributable:
url: https://download.videolan.org/videolan/libbluray/{{version}}/libbluray-{{version}}.tar.bz2
strip-components: 1
versions:
url: http://download.videolan.org/videolan/libbluray/
match: /\d+\.\d+\.\d+\//
strip:
- /\/$/
dependencies:
freedesktop.org/fontconfig: '*'
freetype.org: '*'
darwin:
gnome.org/libxml2: '*'
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
gnu.org/automake: '*'
gnu.org/autoconf: '*'
gnu.org/libtool: '*'
freedesktop.org/pkg-config: '*'
script: |
./bootstrap
./configure $ARGS
make
make install
env:
ARGS:
- --prefix={{prefix}}
- --disable-dependency-tracking
- --disable-silent-rules
- --disable-bdjava-jar
test:
dependencies:
tea.xyz/gx/cc: c99
script: |
cc test.c -lbluray -o test
./test

View file

@ -0,0 +1,7 @@
#include <libbluray/bluray.h>
int main(void) {
BLURAY *bluray = bd_init();
bd_close(bluray);
return 0;
}