2012-10-07 13:14:34 +11:00
|
|
|
# Description: Mesa 3D demos
|
2020-06-18 20:33:08 -05:00
|
|
|
# URL: https://www.mesa3d.org/
|
2012-10-07 13:14:34 +11:00
|
|
|
# Maintainer: CRUX Xorg Team, xorg-ports at crux dot nu
|
2024-12-31 11:37:51 +01:00
|
|
|
# Depends on: glew
|
2023-04-05 20:33:31 +02:00
|
|
|
# Optional: libdecor wayland
|
2012-10-07 13:14:34 +11:00
|
|
|
|
|
|
|
name=mesa-demos
|
2023-03-26 18:37:14 +02:00
|
|
|
version=9.0.0
|
|
|
|
release=1
|
|
|
|
source=(https://archive.mesa3d.org/demos/$name-$version.tar.xz)
|
2012-10-07 13:14:34 +11:00
|
|
|
|
|
|
|
build() {
|
2023-04-07 11:39:52 +02:00
|
|
|
prt-get isinst libdecor wayland || PKGMK_MESA_DEMOS+=' -D wayland=disabled'
|
|
|
|
|
2023-04-05 20:33:31 +02:00
|
|
|
meson setup build $name-$version $PKGMK_MESA_DEMOS \
|
2022-05-31 13:29:50 +02:00
|
|
|
--prefix=/usr \
|
|
|
|
--buildtype=plain \
|
|
|
|
--wrap-mode nodownload \
|
|
|
|
-D b_lto=true \
|
|
|
|
-D b_pie=true \
|
2023-03-18 12:16:21 +11:00
|
|
|
-D osmesa=disabled \
|
|
|
|
-D gles1=disabled
|
2022-05-31 13:29:50 +02:00
|
|
|
meson compile -C build -j ${JOBS:-1}
|
2023-03-18 12:16:21 +11:00
|
|
|
|
|
|
|
install -Dm 0755 -t $PKG/usr/bin \
|
|
|
|
build/src/xdemos/glx{gears,info} \
|
|
|
|
build/src/egl/opengl/eglinfo
|
2012-10-07 13:14:34 +11:00
|
|
|
}
|