summaryrefslogtreecommitdiff
path: root/graphics/vulkan-sdk/vulkan-sdk.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/vulkan-sdk/vulkan-sdk.SlackBuild')
-rw-r--r--graphics/vulkan-sdk/vulkan-sdk.SlackBuild29
1 files changed, 21 insertions, 8 deletions
diff --git a/graphics/vulkan-sdk/vulkan-sdk.SlackBuild b/graphics/vulkan-sdk/vulkan-sdk.SlackBuild
index c30f7d7bfc..4983b8e845 100644
--- a/graphics/vulkan-sdk/vulkan-sdk.SlackBuild
+++ b/graphics/vulkan-sdk/vulkan-sdk.SlackBuild
@@ -25,7 +25,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=vulkan-sdk
-VERSION=${VERSION:-1.1.108.0}
+VERSION=${VERSION:-1.1.114.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -73,9 +73,12 @@ cmake_build () {
make install DESTDIR=$PKG
}
-GLSLANG_VERSION=${GLSLANG_VERSION:-7.11.3214}
-SPIRV_HEADERS_VERSION=${SPIRV_HEADERS_VERSION:-1.4.1}
-SPIRV_TOOLS_VERSION=${SPIRV_TOOLS_VERSION:-2019.3}
+# Vulkan-ValidationLayers requires git versions
+# listed in the known_good.json file to build.
+# https://github.com/KhronosGroup/Vulkan-ValidationLayers/issues/1082
+GLSLANG_VERSION=${GLSLANG_VERSION:-3cea2e5882e3455731a8b6657fb06db913eb3aa1}
+SPIRV_HEADERS_VERSION=${SPIRV_HEADERS_VERSION:-45c2cc37276d69e5b257507d97fd90d2a5684ccc}
+SPIRV_TOOLS_VERSION=${SPIRV_TOOLS_VERSION:-aa9e8f538041db3055ea443080e0ccc315fa114f}
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -102,9 +105,9 @@ tar xvf $CWD/Vulkan-Tools-sdk-$VERSION.tar.gz
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
chdir glslang-$GLSLANG_VERSION
@@ -119,15 +122,22 @@ cmake_build
chdir Vulkan-Loader-sdk-$VERSION
+# Require an older cmake version.
+sed -i 's/3.10.2/3.5.2/' CMakeLists.txt
+
cmake_build \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_SKIP_RPATH=TRUE \
+ -DBUILD_TESTS=OFF \
-DBUILD_WSI_WAYLAND_SUPPORT=OFF \
-DVULKAN_HEADERS_INSTALL_DIR=$PKG/usr
chdir Vulkan-ValidationLayers-sdk-$VERSION
+# Require an older cmake version.
+sed -i 's/3.10.2/3.5.2/' CMakeLists.txt
+
# Disable hardcoded errors
sed -i '/-Werror/d' CMakeLists.txt
@@ -149,14 +159,17 @@ cmake_build \
chdir Vulkan-Tools-sdk-$VERSION
+# Require an older cmake version.
+sed -i 's/3.10.2/3.5.2/' CMakeLists.txt
+
cmake_build \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_SKIP_RPATH=TRUE \
-DBUILD_WSI_WAYLAND_SUPPORT=OFF \
-DVULKAN_HEADERS_INSTALL_DIR=$PKG/usr \
- -DGLSLANG_INSTALL_DIR=$PKG/usr \
- -DVULKAN_LOADER_INSTALL_DIR=$PKG/usr
+ -DVULKAN_LOADER_INSTALL_DIR=$PKG/usr \
+ -DGLSLANG_INSTALL_DIR=$PKG/usr
cd -- "$SRC"