2018-09-02 20:20:14 +10:00

31 lines
722 B
Plaintext

# Description: Khronos reference front-end for GLSL and ESSL, and sample SPIR-V generator
# URL: https://www.khronos.org/opengles/sdk/tools/Reference-Compiler
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
# Depends on: glslang
name=glslang-32
version=7.8.2853
release=1
source=(https://github.com/KhronosGroup/glslang/archive/$version/${name%-*}-$version.tar.gz)
build() {
cd ${name%-*}-$version
/usr/bin/python update_glslang_sources.py
mkdir build
cd build
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib32 \
-DBUILD_SHARED_LIBS=ON \
-DENABLE_GLSLANG_BINARIES=OFF
make
make DESTDIR=$PKG install
rm -r $PKG/usr/{bin,include}
}