2019-05-05 23:43:26 +10:00

44 lines
1.1 KiB
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: spirv-tools-32 glslang
name=glslang-32
version=7.11.3188
release=1
source=(https://github.com/KhronosGroup/glslang/archive/$version/${name%-*}-$version.tar.gz)
build() {
cd ${name%-*}-$version
mkdir -p build-{shared,static}
(cd build-shared
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib32 \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=ON
make
)
(cd build-static
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib32 \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=OFF
make
)
make -C build-shared DESTDIR=$PKG install
make -C build-static DESTDIR=$PKG install
cd $PKG/usr/lib32
for lib in *.so; do
ln -sf "${lib}" "${lib}.0"
done
rm -r $PKG/usr/{bin,include}
}