pantry/projects/dri.freedesktop.org/package.yml

46 lines
905 B
YAML
Raw Permalink Normal View History

distributable:
2023-09-07 18:51:32 +03:00
url: https://dri.freedesktop.org/libdrm/libdrm-{{version}}.tar.xz
strip-components: 1
versions:
url: https://dri.freedesktop.org/libdrm/
2023-09-07 18:51:32 +03:00
match: /libdrm-\d+\.\d+\.\d+\.tar\.xz/
strip:
- /^libdrm-/
2023-09-07 18:51:32 +03:00
- /\.tar\.xz$/
display-name: libdrm
platforms:
- linux
dependencies:
x.org/pciaccess: '*'
build:
dependencies:
mesonbuild.com: '*'
ninja-build.org: '*'
freedesktop.org/pkg-config: '*'
2023-10-03 18:23:56 +03:00
python.org: ~3.11
working-directory: build
script:
- meson $ARGS ..
- ninja -j {{ hw.concurrency }}
- ninja -j {{ hw.concurrency }} install
env:
ARGS:
- --prefix="{{prefix}}"
- --libdir="{{prefix}}/lib"
- --buildtype=release
- --wrap-mode=nofallback
test:
dependencies:
freedesktop.org/pkg-config: '*'
script:
- pkg-config --modversion libdrm | grep {{version}}
- cc test.c -ldrm -o test
- ./test