Skip to content

Commit

Permalink
switch-glu: 9.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
WinterMute committed Apr 29, 2024
1 parent 4b3357c commit d65c28b
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 72 deletions.
34 changes: 21 additions & 13 deletions switch/glu/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,48 @@

pkgbasename=glu
pkgname=switch-$pkgbasename
pkgver=9.0.1
pkgver=9.0.3
pkgrel=1
pkgdesc='SGI implementation of the OpenGL Utility library'
arch=('any')
url='https://mesa.freedesktop.org/archive/glu/'
license=('custom')
options=(!strip libtool staticlibs)
source=("${url}/${pkgbasename}-${pkgver}.tar.xz")
sha256sums=('fb5a4c2dd6ba6d1c21ab7c05129b0769544e1d68e1e3b0ffecb18e73c93055bc')
source=(
"${url}/${pkgbasename}-${pkgver}.tar.xz"
"glu-9.0.3-meson-enable-egl-arg.patch"
"LICENSE"
)
depends=('switch-mesa')
makedepends=('switch-pkg-config' 'devkitpro-pkgbuild-helpers')
makedepends=("switch-pkg-config" "dkp-toolchain-vars" "dkp-meson-scripts")
groups=('switch-portlibs')

prepare() {
cd ${pkgbasename}-${pkgver}
patch -Np1 -i "${startdir}/${pkgbasename}-9.0.1-configure-ac-enable-egl-arg.patch"
patch -Np2 -i "${srcdir}/glu-9.0.3-meson-enable-egl-arg.patch"
}

build() {
cd ${pkgbasename}-${pkgver}

source /opt/devkitpro/switchvars.sh

autoconf
/opt/devkitpro/meson-cross.sh switch ../crossfile.txt \
-Dgl_provider=egl \
build

./configure --prefix="${PORTLIBS_PREFIX}" --host=aarch64-none-elf \
--disable-shared --enable-static --enable-egl

make
}

package() {
cd ${pkgbasename}-${pkgver}

make DESTDIR="$pkgdir" install
install -Dm644 "${startdir}"/LICENSE "$pkgdir"/opt/devkitpro/portlibs/switch/licenses/$pkgname/LICENSE
}
DESTDIR="$pkgdir" meson install -C build
install -dm755 "$pkgdir"/opt/devkitpro/portlibs/switch/licenses/$pkgname
install -m644 "${srcdir}"/LICENSE "$pkgdir"/opt/devkitpro/portlibs/switch/licenses/$pkgname/

}

sha256sums=('bd43fe12f374b1192eb15fe20e45ff456b9bc26ab57f0eee919f96ca0f8a330f'
'5dccad835d8229d8a10daa87b70fd2fddd193702df23fd47b1934d6721acc52c'
'0d27597d42ef0c1ad0e52887de19d3c985608daa60581e9c075c1a978aa5bf40')

59 changes: 0 additions & 59 deletions switch/glu/glu-9.0.1-configure-ac-enable-egl-arg.patch

This file was deleted.

11 changes: 11 additions & 0 deletions switch/glu/glu-9.0.3-meson-enable-egl-arg.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- src/glu-9.0.3/meson_options.txt~ 2024-04-29 09:41:20
+++ src/glu-9.0.3/meson_options.txt 2024-04-29 09:41:27
@@ -4,7 +4,7 @@
option(
'gl_provider',
type : 'combo',
- choices : ['glvnd', 'gl', 'osmesa'],
+ choices : ['glvnd', 'gl', 'osmesa', 'egl'],
value : 'glvnd',
description : 'Which OpenGL to link with'
)

0 comments on commit d65c28b

Please sign in to comment.