ports: Add libdrm port

This commit is contained in:
2026-07-05 14:01:44 +03:00
parent 6e2542d896
commit bfad22211f
2 changed files with 94 additions and 0 deletions

34
ports/libdrm/build.sh Executable file
View File

@@ -0,0 +1,34 @@
#!/bin/bash ../install.sh
NAME='libdrm'
VERSION='2.4.134'
DOWNLOAD_URL="https://dri.freedesktop.org/libdrm/libdrm-$VERSION.tar.xz#ac5e74d157830eb8bee44c6a6bf3ad49774ef0dd2a72bdad74a8f20308b52a95"
_DEPENDENCIES=('mesa')
CONFIGURE_OPTIONS=(
'-Dprefix=/usr'
'-Dbuildtype=release'
'-Dintel=disabled'
'-Dradeon=disabled'
'-Damdgpu=disabled'
'-Dnouveau=disabled'
'-Dvmwgfx=disabled'
'-Domap=disabled'
'-Dexynos=disabled'
'-Dfreedreno=disabled'
'-Dtegra=disabled'
'-Dvc4=disabled'
'-Detnaviv=disabled'
'-Dtests=false'
)
configure() {
meson setup --reconfigure --cross-file "$MESON_CROSS_FILE" "${CONFIGURE_OPTIONS[@]}" build || exit 1
}
build() {
meson compile -C build || exit 1
}
install() {
meson install --destdir="$DESTDIR" -C build || exit 1
}