summaryrefslogtreecommitdiff
path: root/glslang/Pkgfile
blob: b650115c8fbd3def02a0731f62af3473573ada8c (plain)
    1 # Description: OpenGL and OpenGL ES shader front end and validator
    2 # URL: https://www.khronos.org/opengles/sdk/tools/Reference-Compiler
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Depends on: spirv-tools
    5 
    6 name=glslang
    7 version=11.0.0-c594de2
    8 release=1
    9 source=(
   10 	#https://github.com/KhronosGroup/glslang/archive/$version/$name-$version.tar.gz
   11 	https://github.com/KhronosGroup/glslang/archive/c594de23cdd790d64ad5f9c8b059baae0ee2941d.zip
   12 	glslang-default-resource-limits_staticlib.patch
   13 	0001-pkg-config-compatibility.patch)
   14 
   15 build() {
   16 	mv $name-c594de23cdd790d64ad5f9c8b059baae0ee2941d $name-$version
   17 
   18 	patch -d $name-$version -p1 -i $SRC/glslang-default-resource-limits_staticlib.patch
   19 	patch -d $name-$version -p1 -i $SRC/0001-pkg-config-compatibility.patch
   20 
   21 	local config="
   22 -S$name-$version \
   23 -DCMAKE_INSTALL_PREFIX=/usr \
   24 -DCMAKE_INSTALL_LIBDIR=lib \
   25 -DCMAKE_BUILD_TYPE=Release \
   26 -DCMAKE_SKIP_RPATH:BOOL=yes \
   27 -GNinja"
   28 
   29 	cmake -Bbuild-static $config -DBUILD_SHARED_LIBS=OFF
   30 	cmake --build build-static
   31 	
   32 	# https://github.com/KhronosGroup/glslang/issues/1484 -Wl,--no-undefined
   33 	cmake -Bbuild-shared $config -DBUILD_SHARED_LIBS=ON -DCMAKE_SHARED_LINKER_FLAGS='-Wl,--no-undefined'
   34 	cmake --build build-shared
   35 	
   36 	DESTDIR=$PKG cmake --build build-static --target install
   37 	DESTDIR=$PKG cmake --build build-shared --target install
   38 }

Generated by cgit