mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
dri.freedesktop.org (#2573)
* new file: projects/dri.freedesktop.org/package.yml * dri.freedesktop.org * python ^3.11 --------- Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
parent
eca2a14988
commit
77bcbea0d6
47
projects/dri.freedesktop.org/package.yml
Normal file
47
projects/dri.freedesktop.org/package.yml
Normal file
|
@ -0,0 +1,47 @@
|
|||
distributable:
|
||||
url: https://dri.freedesktop.org/libdrm/libdrm-{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
url: https://dri.freedesktop.org/libdrm/
|
||||
match: /libdrm-\d+\.\d+\.\d+\.tar\.gz/
|
||||
strip:
|
||||
- /^libdrm-/
|
||||
- /\.tar\.gz$/
|
||||
|
||||
display-name: libdrm
|
||||
|
||||
platforms:
|
||||
- linux
|
||||
|
||||
dependencies:
|
||||
x.org/pciaccess: '*'
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
mesonbuild.com: '*'
|
||||
ninja-build.org: '*'
|
||||
freedesktop.org/pkg-config: '*'
|
||||
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:
|
||||
tea.xyz/gx/cc: c99
|
||||
freedesktop.org/pkg-config: '*'
|
||||
script:
|
||||
- pkg-config --modversion libdrm | grep {{version}}
|
||||
- cc test.c -ldrm -o test
|
||||
- ./test
|
5
projects/dri.freedesktop.org/test.c
Normal file
5
projects/dri.freedesktop.org/test.c
Normal file
|
@ -0,0 +1,5 @@
|
|||
#include <libdrm/drm.h>
|
||||
int main(int argc, char* argv[]) {
|
||||
struct drm_gem_open open;
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue