diff options
author | psykose <alice@ayaya.dev> | 2022-05-31 05:28:45 +0000 |
---|---|---|
committer | alice <alice@ayaya.dev> | 2022-05-31 05:28:58 +0000 |
commit | 9a6b6f1ced38509b6b221b8305102433059724a6 (patch) | |
tree | b8782347bd2e769f40d2d8333a2b1c51bf2fd39d | |
parent | 06c1f48a222480c1e9bb8babc3949262a808d4b5 (diff) | |
download | aports-9a6b6f1ced38509b6b221b8305102433059724a6.tar.gz aports-9a6b6f1ced38509b6b221b8305102433059724a6.tar.bz2 aports-9a6b6f1ced38509b6b221b8305102433059724a6.tar.xz |
community/mesa-demos: upgrade to 8.5.0
-rw-r--r-- | community/mesa-demos/APKBUILD | 60 |
1 files changed, 41 insertions, 19 deletions
diff --git a/community/mesa-demos/APKBUILD b/community/mesa-demos/APKBUILD index 8d99e11a21c..16f03c9ef53 100644 --- a/community/mesa-demos/APKBUILD +++ b/community/mesa-demos/APKBUILD @@ -1,32 +1,54 @@ # Contributor: Carlo Landmeter <clandmeter@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=mesa-demos -pkgver=8.4.0 -pkgrel=2 -pkgdesc="Mesa demos and utils" +pkgver=8.5.0 +pkgrel=0 +pkgdesc="Mesa demos" url="https://mesa3d.org" arch="all" license="custom" -makedepends="mesa-dev glew-dev glu-dev freeglut-dev - automake autoconf libtool" -source="https://mesa.freedesktop.org/archive/demos/mesa-demos-$pkgver.tar.bz2" - -prepare() { - default_prepare - autoreconf -vif -} +makedepends=" + freeglut-dev + glu-dev + mesa-dev + meson + wayland-dev + wayland-protocols + " +subpackages="mesa-utils:_utils" +source="https://archive.mesa3d.org/demos/$pkgver/mesa-demos-$pkgver.tar.gz" +options="!check" # seemingly no way to run the tests build() { - export LDFLAGS="$LDFLAGS -Wl,-z,lazy" - ./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --prefix=/usr - make V=1 + # todo: figure out why the size went from ~8.4->34MB + # (25 with lto), lots of binaries are ~150kb each and same-sized + abuild-meson \ + -Dgles1=disabled \ + -Dwith-system-data-files=true \ + -Db_lto=true \ + . output + meson compile -C output } package() { - make -j1 DESTDIR="$pkgdir" install + # already big, just pull in the other ones too. + depends="mesa-utils" + DESTDIR="$pkgdir" meson install --no-rebuild -C output +} + +check() { + meson test -v --no-rebuild -C output +} + +_utils() { + pkgdesc="Essential mesa utilities" + + amove \ + usr/bin/eglinfo \ + usr/bin/glxinfo \ + usr/bin/glxgears } -sha512sums="b72d03cad36e0535ff18dcfb222ec4200064b9264f6da51a6e5f03b0dd912abe188bc1d600b6698de3ce6f63b28d2ce01565886ca8e7079edc4967fbf2fb0957 mesa-demos-8.4.0.tar.bz2" +sha512sums=" +f5da35fca9af1f9e1933d7fbd5c0899e494f30573faf3b3c1db5b1ff9e65d057dda5fcb4862c6fe65c3daf70063a778bea09b98a1e0561cfa84818be6a8712c2 mesa-demos-8.5.0.tar.gz +" |