# Description: OpenGL and OpenGL ES shader front end and validator # URL: https://www.khronos.org/opengles/sdk/tools/Reference-Compiler # Maintainer: Danny Rawlins, crux at romster dot me # Depends on: spirv-tools name=glslang version=11.0.0-c594de2 release=1 source=( #https://github.com/KhronosGroup/glslang/archive/$version/$name-$version.tar.gz https://github.com/KhronosGroup/glslang/archive/c594de23cdd790d64ad5f9c8b059baae0ee2941d.zip glslang-default-resource-limits_staticlib.patch 0001-pkg-config-compatibility.patch) build() { mv $name-c594de23cdd790d64ad5f9c8b059baae0ee2941d $name-$version patch -d $name-$version -p1 -i $SRC/glslang-default-resource-limits_staticlib.patch patch -d $name-$version -p1 -i $SRC/0001-pkg-config-compatibility.patch local config=" -S$name-$version \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_SKIP_RPATH:BOOL=yes \ -GNinja" cmake -Bbuild-static $config -DBUILD_SHARED_LIBS=OFF cmake --build build-static # https://github.com/KhronosGroup/glslang/issues/1484 -Wl,--no-undefined cmake -Bbuild-shared $config -DBUILD_SHARED_LIBS=ON -DCMAKE_SHARED_LINKER_FLAGS='-Wl,--no-undefined' cmake --build build-shared DESTDIR=$PKG cmake --build build-static --target install DESTDIR=$PKG cmake --build build-shared --target install }