ports: add mesa-demos

This commit is contained in:
Matheus
2024-08-21 21:37:55 -03:00
parent a662b79e7f
commit e0813e0701
3 changed files with 37 additions and 0 deletions
@@ -0,0 +1,13 @@
diff --git mesa-demos-clean/meson.build mesa-demos-workdir/meson.build
index c1853f9..1edc2d9 100644
--- mesa-demos-clean/meson.build
+++ mesa-demos-workdir/meson.build
@@ -99,7 +99,7 @@ if not dep_glu.found() and host_machine.system() != 'darwin'
endif
dep_glx = dependency('glx', required: false, disabler : true)
-if not dep_glx.found() and host_machine.system() == 'darwin'
+if not dep_glx.found() and (host_machine.system() == 'darwin' or host_machine.system() == 'astral')
# xquartz doesn't have a glx.pc, but it does have the header. And all the
# symbols reside in libGL, so let's just use that.
if cc.check_header('GL/glx.h', dependencies: dep_x11)
+16
View File
@@ -0,0 +1,16 @@
name=mesa-demos
revision=1
from_source=mesa-demos
imagedeps="gcc meson ninja"
hostdeps="xgcc xbinutils pkgconfig libtool"
deps="mlibc mesa freetype libx11 libxext glu"
build() {
meson setup --cross-file ${base_dir}/util/crossfile --prefix=${prefix} --buildtype=release ${source_dir} -Dx11=enabled -Dwith-system-data-files=true
ninja -j${parallelism}
}
package() {
DESTDIR=${dest_dir} ninja install
}
+8
View File
@@ -0,0 +1,8 @@
name=mesa-demos
version=9.0.0
source_method=tarball
tarball_url="https://archive.mesa3d.org/demos/mesa-demos-${version}.tar.xz"
tarball_sha512="af33ef72a521416e39d93370b2b4ccb768f08084c9e4c0aa62868210d9465c858e5cb8e5d23952295a3073946f609eb8723ee60b39dd9fb6696c4e45aafbb2c1"
regenerate() {
true
}