summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSíle Ekaterin Liszka <sheila@vulpine.house>2024-08-27 06:49:24 -0700
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2024-11-29 04:54:50 -0600
commitbc4395e52cfb7a28be7cb5a0bd8095306b4f270a (patch)
tree8ad2f99a65a1cc4f178f775f9dc2440f5b684656
parent10b84ace4748e82fcaf7e8fc1a1c2f7aee70963d (diff)
downloadpackages-bc4395e52cfb7a28be7cb5a0bd8095306b4f270a.tar.gz
packages-bc4395e52cfb7a28be7cb5a0bd8095306b4f270a.tar.bz2
packages-bc4395e52cfb7a28be7cb5a0bd8095306b4f270a.tar.xz
packages-bc4395e52cfb7a28be7cb5a0bd8095306b4f270a.zip
user/glslang: new package
-rw-r--r--user/glslang/APKBUILD40
1 files changed, 40 insertions, 0 deletions
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 <sheila@vulpine.house>
+# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
+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"