mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-31 14:38:21 +00:00
ports: add mesa-demos
This commit is contained in:
@@ -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)
|
||||||
@@ -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
|
||||||
|
}
|
||||||
@@ -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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user