From bc4395e52cfb7a28be7cb5a0bd8095306b4f270a Mon Sep 17 00:00:00 2001 From: Síle Ekaterin Liszka Date: Tue, 27 Aug 2024 06:49:24 -0700 Subject: user/glslang: new package --- user/glslang/APKBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 user/glslang/APKBUILD diff --git a/user/glslang/APKBUILD b/user/glslang/APKBUILD new file mode 100644 index 000000000..f4e911e9e --- /dev/null +++ b/user/glslang/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Síle Ekaterin Liszka +# Maintainer: Síle Ekaterin Liszka +pkgname=glslang +pkgver=14.3.0 +pkgrel=0 +pkgdesc="OpenGL and OpenGL ES reference compiler for shading languages" +url="https://github.com/KhronosGroup/glslang" +arch="all" +license="BSD-3-Clause AND MIT AND BSD-2-Clause AND GPL-3.0+ WITH Bison-2.2-exception" +depends="spirv-tools" +makedepends="cmake python3 spirv-tools-dev" +subpackages="$pkgname-dev" +source="glslang-$pkgver.tar.gz::https://github.com/KhronosGroup/glslang/archive/$pkgver.tar.gz" + +build() { + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + -DALLOW_EXTERNAL_SPIRV_TOOLS=YES \ + ${CMAKE_CROSSOPTS} \ + . + make +} + +check() { + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + make DESTDIR="$pkgdir" install +} + +sha512sums="ce6d09cc4d98b01d162ec5a196eec017c4a5f25eaf98c6612695d911f8d136c2f7193ff8f2c07931b2e94182d2c654833adc3b645f0c225e1d07c4e6e7abfd76 glslang-14.3.0.tar.gz" -- cgit v1.2.3-70-g09d2