diff options
author | Hunter Sezen <orbea@riseup.net> | 2019-06-22 20:00:52 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-06-22 20:20:48 +0700 |
commit | d354bb45b7b014f1dad4c19783c1f4e8d74b5a0c (patch) | |
tree | 54413211a8cd3c2b85965d9d29ea60b7357fea7c /graphics | |
parent | 78ddbe5b3d18d21f830948fd44c04ea4c217459b (diff) |
graphics/vulkan-sdk: Updated for version 1.1.108.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/vulkan-sdk/vulkan-sdk.SlackBuild | 143 | ||||
-rw-r--r-- | graphics/vulkan-sdk/vulkan-sdk.info | 30 |
2 files changed, 76 insertions, 97 deletions
diff --git a/graphics/vulkan-sdk/vulkan-sdk.SlackBuild b/graphics/vulkan-sdk/vulkan-sdk.SlackBuild index 092bb5eb5ea5..c30f7d7bfcd3 100644 --- a/graphics/vulkan-sdk/vulkan-sdk.SlackBuild +++ b/graphics/vulkan-sdk/vulkan-sdk.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # Slackware build script for vulkan-sdk @@ -25,7 +25,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=vulkan-sdk -VERSION=${VERSION:-1.1.106.0} +VERSION=${VERSION:-1.1.108.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -59,9 +59,23 @@ fi set -eu -GLSLANG_VERSION=${GLSLANG_VERSION:-7.11.3188} -SPIRV_HEADERS_VERSION=${SPIRV_HEADERS_VERSION:-1.3.7} -SPIRV_TOOLS_VERSION=${SPIRV_TOOLS_VERSION:-2019.2} +chdir () { cd -- "$SRC/$1"; printf %s\\n '' "Building $1" ''; } + +cmake_build () { + mkdir -p build + cd build + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib$LIBDIRSUFFIX \ + -DCMAKE_BUILD_TYPE=Release \ + "${@:-}" .. + make + 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} rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -92,49 +106,27 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -cd $SRC/glslang-$GLSLANG_VERSION -printf %s\\n '' "Building glslang-$GLSLANG_VERSION" '' +chdir glslang-$GLSLANG_VERSION -mkdir -p build -cd build - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=lib$LIBDIRSUFFIX \ - -DCMAKE_SKIP_RPATH=TRUE \ - -DCMAKE_BUILD_TYPE=Release .. - make - make install DESTDIR=$PKG -cd $SRC/Vulkan-Headers-sdk-$VERSION -printf %s\\n '' "Building Vulkan-Headers-sdk-$VERSION" '' +cmake_build \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_SKIP_RPATH=TRUE -mkdir -p build -cd build - cmake \ - -DCMAKE_INSTALL_PREFIX=/usr\ - -DCMAKE_INSTALL_LIBDIR=lib$LIBDIRSUFFIX \ - -DCMAKE_BUILD_TYPE=Release .. - make - make install DESTDIR=$PKG -cd $SRC/Vulkan-Loader-sdk-$VERSION -printf %s\\n '' "Building Vulkan-Loader-sdk-$VERSION" '' +chdir Vulkan-Headers-sdk-$VERSION -mkdir -p build -cd build - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=lib$LIBDIRSUFFIX \ - -DCMAKE_SKIP_RPATH=TRUE \ - -DBUILD_WSI_WAYLAND_SUPPORT=OFF \ - -DVULKAN_HEADERS_INSTALL_DIR=$PKG/usr \ - -DCMAKE_BUILD_TYPE=Release .. - make - make install DESTDIR=$PKG -cd $SRC/Vulkan-ValidationLayers-sdk-$VERSION -printf %s\\n '' "Building Vulkan-ValidationLayers-sdk-$VERSION" '' +cmake_build + +chdir Vulkan-Loader-sdk-$VERSION + +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 + +chdir Vulkan-ValidationLayers-sdk-$VERSION # Disable hardcoded errors sed -i '/-Werror/d' CMakeLists.txt @@ -143,43 +135,30 @@ sed -i '/-Werror/d' CMakeLists.txt sed -i '/#include <math.h>/i#include <cmath>\n' \ layers/parameter_validation_utils.cpp -mkdir -p build -cd build - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=lib$LIBDIRSUFFIX \ - -DCMAKE_INSTALL_DATADIR=share \ - -DCMAKE_SKIP_RPATH=TRUE \ - -DBUILD_TESTS=OFF \ - -DBUILD_WSI_XLIB_SUPPORT=ON \ - -DBUILD_WSI_XCB_SUPPORT=ON \ - -DBUILD_WSI_WAYLAND_SUPPORT=OFF \ - -DGLSLANG_INSTALL_DIR=$PKG/usr \ - -DVULKAN_HEADERS_INSTALL_DIR=$PKG/usr \ - -DCMAKE_BUILD_TYPE=Release .. - make - make install DESTDIR=$PKG -cd $SRC/Vulkan-Tools-sdk-$VERSION -printf %s\\n '' "Building Vulkan-Tools-sdk-$VERSION" '' - -mkdir -p build -cd build - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=lib$LIBDIRSUFFIX \ - -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 \ - -DCMAKE_BUILD_TYPE=Release .. - make - make install DESTDIR=$PKG -cd $SRC +cmake_build \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_DATADIR=share \ + -DCMAKE_SKIP_RPATH=TRUE \ + -DBUILD_TESTS=OFF \ + -DBUILD_WSI_XLIB_SUPPORT=ON \ + -DBUILD_WSI_XCB_SUPPORT=ON \ + -DBUILD_WSI_WAYLAND_SUPPORT=OFF \ + -DGLSLANG_INSTALL_DIR=$PKG/usr \ + -DVULKAN_HEADERS_INSTALL_DIR=$PKG/usr + +chdir Vulkan-Tools-sdk-$VERSION + +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 + +cd -- "$SRC" find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/graphics/vulkan-sdk/vulkan-sdk.info b/graphics/vulkan-sdk/vulkan-sdk.info index f2903eddf8ec..b0cf186a4ef9 100644 --- a/graphics/vulkan-sdk/vulkan-sdk.info +++ b/graphics/vulkan-sdk/vulkan-sdk.info @@ -1,20 +1,20 @@ PRGNAM="vulkan-sdk" -VERSION="1.1.106.0" +VERSION="1.1.108.0" HOMEPAGE="https://www.khronos.org/vulkan/" -DOWNLOAD="https://github.com/KhronosGroup/SPIRV-Headers/archive/1.3.7/SPIRV-Headers-1.3.7.tar.gz \ - https://github.com/KhronosGroup/SPIRV-Tools/archive/v2019.2/SPIRV-Tools-2019.2.tar.gz \ - https://github.com/KhronosGroup/Vulkan-Headers/archive/sdk-1.1.106.0/Vulkan-Headers-sdk-1.1.106.0.tar.gz \ - https://github.com/KhronosGroup/Vulkan-Loader/archive/sdk-1.1.106.0/Vulkan-Loader-sdk-1.1.106.0.tar.gz \ - https://github.com/KhronosGroup/Vulkan-Tools/archive/sdk-1.1.106.0/Vulkan-Tools-sdk-1.1.106.0.tar.gz \ - https://github.com/KhronosGroup/Vulkan-ValidationLayers/archive/sdk-1.1.106.0/Vulkan-ValidationLayers-sdk-1.1.106.0.tar.gz \ - https://github.com/KhronosGroup/glslang/archive/7.11.3188/glslang-7.11.3188.tar.gz" -MD5SUM="e85eb41d05f56d98b649805cc82a0751 \ - 3090d1fc1208fa661f340bc93f19217d \ - 574ab2131807852627ab81bcb8e8f016 \ - d27d2bf30b47c446404948da8fe6f557 \ - a164295dccda325afc9d915fc18cb222 \ - e6142028de77cdb00678f99cbd9935a0 \ - 10d4a3999d2a960aa453d3c180a32358" +DOWNLOAD="https://github.com/KhronosGroup/SPIRV-Headers/archive/1.4.1/SPIRV-Headers-1.4.1.tar.gz \ + https://github.com/KhronosGroup/SPIRV-Tools/archive/v2019.3/SPIRV-Tools-2019.3.tar.gz \ + https://github.com/KhronosGroup/Vulkan-Headers/archive/sdk-1.1.108.0/Vulkan-Headers-sdk-1.1.108.0.tar.gz \ + https://github.com/KhronosGroup/Vulkan-Loader/archive/sdk-1.1.108.0/Vulkan-Loader-sdk-1.1.108.0.tar.gz \ + https://github.com/KhronosGroup/Vulkan-Tools/archive/sdk-1.1.108.0/Vulkan-Tools-sdk-1.1.108.0.tar.gz \ + https://github.com/KhronosGroup/Vulkan-ValidationLayers/archive/sdk-1.1.108.0/Vulkan-ValidationLayers-sdk-1.1.108.0.tar.gz \ + https://github.com/KhronosGroup/glslang/archive/7.11.3214/glslang-7.11.3214.tar.gz" +MD5SUM="136a6f1acb8b2dc33ec8eb4d29ef889d \ + 453199cc5d9a280231029719188aac41 \ + 4fcc9e1e2fbb5e7c39ee49f3a2e4f4b6 \ + 65338497997e52c19412bae9b12b4855 \ + dc98c6c425ca06a32e4bb8f2755c5ca5 \ + 577eb509ab8d10c4f522ad28e81c52bb \ + 4699eeb6501bad8ed982a279fb827390" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="python3" |