mirror of
git://slackware.nl/current.git
synced 2024-12-27 09:59:16 +01:00
c9ced48b11
Hey folks, we got a new glibc and are beginning the process of baking the new default compile flags into the toolchain, the graphics stack, and whatever else happens along. Enjoy! :-) a/aaa_glibc-solibs-2.40-x86_64-1.txz: Upgraded. a/libblockdev-3.1.1_1-x86_64-2.txz: Rebuilt. Fix build against recent ext2fs.h. Thanks to shipujin. a/xfsprogs-6.9.0-x86_64-1.txz: Upgraded. ap/rpm-4.19.1.1-x86_64-3.txz: Rebuilt. ap/slackpkg-15.0.10-noarch-4.txz: Rebuilt. Prefer gpg1 again. Going with the modern gpg with more dependencies was a mistake in this case. (now we know why gnupg-1 is still around :-) Thanks to Petri Kaukasoina. d/binutils-2.42-x86_64-3.txz: Rebuilt. d/cargo-vendor-filterer-0.5.14-x86_64-2.txz: Rebuilt. d/cbindgen-0.26.0-x86_64-2.txz: Rebuilt. d/ccache-4.10.2-x86_64-1.txz: Upgraded. d/cmake-3.30.1-x86_64-2.txz: Rebuilt. d/gcc-14.1.0-x86_64-2.txz: Rebuilt. d/gcc-g++-14.1.0-x86_64-2.txz: Rebuilt. d/gcc-gdc-14.1.0-x86_64-2.txz: Rebuilt. d/gcc-gfortran-14.1.0-x86_64-2.txz: Rebuilt. d/gcc-gm2-14.1.0-x86_64-2.txz: Rebuilt. d/gcc-gnat-14.1.0-x86_64-2.txz: Rebuilt. d/gcc-go-14.1.0-x86_64-2.txz: Rebuilt. d/gcc-objc-14.1.0-x86_64-2.txz: Rebuilt. d/libgccjit-14.1.0-x86_64-2.txz: Rebuilt. d/libtool-2.4.7-x86_64-8.txz: Rebuilt. d/parallel-20240722-noarch-1.txz: Upgraded. d/pkg-config-0.29.2-x86_64-5.txz: Rebuilt. d/python-setuptools-71.1.0-x86_64-1.txz: Upgraded. d/ruby-3.3.4-x86_64-2.txz: Rebuilt. d/rust-bindgen-0.69.4-x86_64-2.txz: Rebuilt. d/strace-6.10-x86_64-1.txz: Upgraded. d/subversion-1.14.3-x86_64-3.txz: Rebuilt. e/emacs-29.4-x86_64-2.txz: Rebuilt. l/PyQt-builder-1.16.4-x86_64-2.txz: Rebuilt. l/PyQt5-5.15.11-x86_64-1.txz: Upgraded. l/PyQt5_sip-12.15.0-x86_64-2.txz: Rebuilt. l/argon2-20190702-x86_64-6.txz: Rebuilt. l/ffmpeg-6.1.1-x86_64-5.txz: Rebuilt. l/glibc-2.40-x86_64-1.txz: Upgraded. This update fixes security issues: nscd: Stack-based buffer overflow in netgroup cache. nscd: Null pointer crash after notfound response. nscd: netgroup cache may terminate daemon on memory allocation failure. nscd: netgroup cache assumes NSS callback uses in-buffer strings. These vulnerabilities were only present in the nscd binary. For more information, see: https://www.cve.org/CVERecord?id=CVE-2024-33599 https://www.cve.org/CVERecord?id=CVE-2024-33600 https://www.cve.org/CVERecord?id=CVE-2024-33601 https://www.cve.org/CVERecord?id=CVE-2024-33602 (* Security fix *) l/glibc-i18n-2.40-x86_64-1.txz: Upgraded. l/glibc-profile-2.40-x86_64-1.txz: Upgraded. l/gst-plugins-good-1.24.5-x86_64-2.txz: Rebuilt. l/libcdio-paranoia-10.2+2.0.2-x86_64-1.txz: Upgraded. l/libclc-18.1.8-x86_64-3.txz: Rebuilt. l/libproxy-0.5.8-x86_64-1.txz: Upgraded. l/lz4-1.10.0-x86_64-1.txz: Upgraded. l/poppler-24.07.0-x86_64-2.txz: Rebuilt. l/python-importlib_metadata-8.1.0-x86_64-1.txz: Upgraded. l/python-sphinx-7.4.7-x86_64-1.txz: Upgraded. l/qt5-5.15.14_20240716_ae0c8451-x86_64-1.txz: Upgraded. l/qt5-webkit-5.212.0_alpha4-x86_64-13.txz: Rebuilt. l/qt6-6.7.2_20240610_3f005f1e-x86_64-3.txz: Rebuilt. l/sip-6.8.6-x86_64-2.txz: Rebuilt. l/spirv-llvm-translator-18.1.2-x86_64-2.txz: Rebuilt. l/v4l-utils-1.28.0-x86_64-1.txz: Upgraded. n/bind-9.18.28-x86_64-1.txz: Upgraded. This update fixes security issues: Remove SIG(0) support from named as a countermeasure for CVE-2024-1975. qctx-zversion was not being cleared when it should have been leading to an assertion failure if it needed to be reused. An excessively large number of rrtypes per owner can slow down database query processing, so a limit has been placed on the number of rrtypes that can be stored per owner (node) in a cache or zone database. This is configured with the new "max-rrtypes-per-name" option, and defaults to 100. Excessively large rdatasets can slow down database query processing, so a limit has been placed on the number of records that can be stored per rdataset in a cache or zone database. This is configured with the new "max-records-per-type" option, and defaults to 100. Malicious DNS client that sends many queries over TCP but never reads responses can cause server to respond slowly or not respond at all for other clients. For more information, see: https://www.cve.org/CVERecord?id=CVE-2024-1975 https://www.cve.org/CVERecord?id=CVE-2024-4076 https://www.cve.org/CVERecord?id=CVE-2024-1737 https://www.cve.org/CVERecord?id=CVE-2024-0760 (* Security fix *) n/fetchmail-6.4.39-x86_64-1.txz: Upgraded. n/obexftp-0.24.2-x86_64-13.txz: Rebuilt. n/pinentry-1.3.1-x86_64-2.txz: Rebuilt. n/wpa_supplicant-2.11-x86_64-1.txz: Upgraded. x/fcitx5-qt-5.1.6-x86_64-3.txz: Rebuilt. x/ibus-m17n-1.4.30-x86_64-1.txz: Upgraded. x/libdrm-2.4.122-x86_64-2.txz: Rebuilt. x/marisa-0.2.6-x86_64-10.txz: Rebuilt. x/mesa-24.1.4-x86_64-2.txz: Rebuilt. x/vulkan-sdk-1.3.275.0-x86_64-3.txz: Rebuilt. xap/audacious-4.4-x86_64-2.txz: Rebuilt. xap/audacious-plugins-4.4-x86_64-2.txz: Rebuilt. xap/mozilla-thunderbird-128.0.1esr-x86_64-1.txz: Upgraded. This is a bugfix release. For more information, see: https://www.mozilla.org/en-US/thunderbird/128.0.1esr/releasenotes/ xap/xaos-4.3.2-x86_64-2.txz: Rebuilt. extra/emacs-regular-build/emacs-29.4-x86_64-2_regular.txz: Rebuilt.
903 lines
32 KiB
Bash
Executable file
903 lines
32 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
# Slackware build script for vulkan-sdk
|
|
|
|
# Copyright 2016, 2017, 2018, 2020, 2021, 2022, 2023, 2024 Patrick J. Volkerding, Sebeka, MN, USA
|
|
# All rights reserved.
|
|
#
|
|
# Redistribution and use of this script, with or without modification, is
|
|
# permitted provided that the following conditions are met:
|
|
#
|
|
# 1. Redistributions of this script must retain the above copyright
|
|
# notice, this list of conditions and the following disclaimer.
|
|
#
|
|
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
|
|
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
|
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
|
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
cd $(dirname $0) ; CWD=$(pwd)
|
|
|
|
PKGNAM=vulkan-sdk
|
|
# The ./VERSION file is created by ./fetch-sources.sh:
|
|
VERSION=${VERSION:-$(cat VERSION)}
|
|
BUILD=${BUILD:-3}
|
|
|
|
# Choose a compiler (gcc/g++ or clang/clang++ if you'd like to debug that ;-)
|
|
export CC=${CC:-gcc}
|
|
export CXX=${CXX:-g++}
|
|
|
|
# Automatically determine the architecture we're building on:
|
|
MARCH=$( uname -m )
|
|
if [ -z "$ARCH" ]; then
|
|
case "$MARCH" in
|
|
i?86) export ARCH=i686 ;;
|
|
armv7hl) export ARCH=$MARCH ;;
|
|
arm*) export ARCH=arm ;;
|
|
# Unless $ARCH is already set, use uname -m for all other archs:
|
|
*) export ARCH=$MARCH ;;
|
|
esac
|
|
fi
|
|
|
|
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
|
|
# the name of the created package would be, and then exit. This information
|
|
# could be useful to other scripts.
|
|
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
|
echo "$PKGNAM-$VERSION-$ARCH-$BUILD.txz"
|
|
exit 0
|
|
fi
|
|
|
|
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
|
|
|
|
if [ "$ARCH" = "i686" ]; then
|
|
SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
|
|
LIBDIRSUFFIX=""
|
|
elif [ "$ARCH" = "s390" ]; then
|
|
SLKCFLAGS="-O2"
|
|
LIBDIRSUFFIX=""
|
|
elif [ "$ARCH" = "x86_64" ]; then
|
|
SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
|
|
LIBDIRSUFFIX="64"
|
|
elif [ "$ARCH" = "armv7hl" ]; then
|
|
SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16"
|
|
LIBDIRSUFFIX=""
|
|
else
|
|
SLKCFLAGS="-O2"
|
|
LIBDIRSUFFIX=""
|
|
fi
|
|
|
|
TMP=${TMP:-/tmp}
|
|
PKG=$TMP/package-vulkan-sdk
|
|
|
|
GLSLANG_VERSION=$(echo glslang-vulkan-sdk-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
SPIRV_HEADERS_VERSION=$(echo SPIRV-Headers-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
SPIRV_TOOLS_VERSION=$(echo SPIRV-Tools-vulkan-sdk-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
VULKAN_HEADERS_VERSION=$(echo Vulkan-Headers-vulkan-sdk-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
VULKAN_LOADER_VERSION=$(echo Vulkan-Loader-vulkan-sdk-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
VULKAN_VALIDATIONLAYERS_VERSION=$(echo Vulkan-ValidationLayers-vulkan-sdk-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
ROBIN_HOOD_VERSION=$(echo robin-hood-hashing-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
VULKAN_EXTENSIONLAYER_VERSION=$(echo Vulkan-ExtensionLayer-vulkan-sdk-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
VULKAN_TOOLS_VERSION=$(echo Vulkan-Tools-vulkan-sdk-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
VULKANTOOLS_VERSION=$(echo VulkanTools-vulkan-sdk-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
SHADERC_VERSION=$(echo shaderc-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
SPIRV_CROSS_VERSION=$(echo SPIRV-Cross-vulkan-sdk-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
GFXRECONSTRUCT_VERSION=$(echo gfxreconstruct-vulkan-sdk-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
DXC_VERSION=$(echo DirectXShaderCompiler-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
SPIRV_REFLECT_VERSION=$(echo SPIRV-Reflect-vulkan-sdk-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
VULKAN_PROFILES_VERSION=$(echo Vulkan-Profiles-vulkan-sdk-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
VOLK_VERSION=$(echo volk-vulkan-sdk-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
VULKAN_UTILITY_LIBRARIES_VERSION=$(echo Vulkan-Utility-Libraries-vulkan-sdk-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
VULKAN_CAPS_VIEWER_VERSION=$(echo VulkanCapsViewer-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
VULKAN_MEMORY_ALLOCATOR_VERSION=$(echo VulkanMemoryAllocator-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
VALIJSON_VERSION=$(echo valijson-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
JSONCPP_VERSION=$(echo jsoncpp-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
|
|
|
|
# upstream builder order:
|
|
# NOTE from volkerdi: any magic build order given in the comments is always, by definition, wrong
|
|
# - SPIRV-Headers
|
|
# - glslang
|
|
# - Vulkan-Headers
|
|
# - Vulkan-Loader
|
|
# - Vulkan-Utility-Libraries
|
|
# - Vulkan-ValidationLayers
|
|
# - Vulkan-ExtensionLayer
|
|
# = valijson
|
|
# - Vulkan-Tools
|
|
# - VulkanTools
|
|
# - shaderc
|
|
# - SPIRV-Cross
|
|
# - gfxreconstruct
|
|
# - DirectXShaderCompiler
|
|
# - SPIRV-Reflect
|
|
# - Vulkan-Profiles
|
|
|
|
rm -rf $PKG
|
|
mkdir -p $TMP $PKG
|
|
|
|
cd $TMP
|
|
# Clear existing tmp sources:
|
|
rm -rf SPIRV-Headers-$SPIRV_HEADERS_VERSION \
|
|
glslang-vulkan-sdk-${GLSLANG_VERSION} \
|
|
Vulkan-Headers-vulkan-sdk-$VULKAN_HEADERS_VERSION \
|
|
Vulkan-Loader-vulkan-sdk-$VULKAN_LOADER_VERSION \
|
|
Vulkan-ValidationLayers-vulkan-sdk-$VULKAN_VALIDATIONLAYERS_VERSION \
|
|
Vulkan-ExtensionLayer-vulkan-sdk-$VULKAN_EXTENSIONLAYER_VERSION \
|
|
Vulkan-Tools-vulkan-sdk-$VULKAN_TOOLS_VERSION \
|
|
VulkanTools-vulkan-sdk-$VULKANTOOLS_VERSION \
|
|
shaderc-$SHADERC_VERSION \
|
|
SPIRV-Cross-vulkan-sdk-$SPIRV_CROSS_VERSION \
|
|
gfxreconstruct-vulkan-sdk-$GFXRECONSTRUCT_VERSION \
|
|
DirectXShaderCompiler-$DXC_VERSION \
|
|
SPIRV-Reflect-vulkan-sdk-$SPIRV_REFLECT_VERSION \
|
|
Vulkan-Profiles-vulkan-sdk-$VULKAN_PROFILES_VERSION \
|
|
volk-vulkan-sdk-$VOLK_VERSION \
|
|
Vulkan-Utility-Libraries-$VULKAN_UTILITY_LIBRARIES_VERSION \
|
|
VulkanCapsViewer-$VULKAN_CAPS_VIEWER_VERSION \
|
|
VulkanMemoryAllocator-$VULKAN_MEMORY_ALLOCATOR_VERSION \
|
|
valijson-$VALIJSON_VERSION \
|
|
jsoncpp-$JSONCPP_VERSION
|
|
|
|
tar xvf $CWD/SPIRV-Headers-$SPIRV_HEADERS_VERSION.tar.?z || exit 1
|
|
cd SPIRV-Headers-$SPIRV_HEADERS_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
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_BUILD_TYPE=Release \
|
|
..
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/glslang-vulkan-sdk-${GLSLANG_VERSION}.tar.?z || exit 1
|
|
cd glslang-vulkan-sdk-$GLSLANG_VERSION/External
|
|
tar xvf $CWD/SPIRV-Tools-vulkan-sdk-$SPIRV_TOOLS_VERSION.tar.?z || exit 1
|
|
mv SPIRV-Tools-vulkan-sdk-$SPIRV_TOOLS_VERSION spirv-tools
|
|
cd spirv-tools/external
|
|
tar xvf $CWD/SPIRV-Headers-$SPIRV_HEADERS_VERSION.tar.?z || exit 1
|
|
mv SPIRV-Headers-$SPIRV_HEADERS_VERSION spirv-headers
|
|
|
|
cd $TMP/glslang-vulkan-sdk-${GLSLANG_VERSION}
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
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_BUILD_TYPE=Release \
|
|
-DBUILD_SHARED_LIBS=On \
|
|
-DSPIRV_TOOLS_BUILD_STATIC=Off \
|
|
-DENABLE_OPT=Off \
|
|
..
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/Vulkan-Headers-vulkan-sdk-$VULKAN_HEADERS_VERSION.tar.?z || exit 1
|
|
cd Vulkan-Headers-vulkan-sdk-$VULKAN_HEADERS_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
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_BUILD_TYPE=Release \
|
|
..
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/Vulkan-Loader-vulkan-sdk-$VULKAN_LOADER_VERSION.tar.?z || exit 1
|
|
cd $TMP/Vulkan-Loader-vulkan-sdk-$VULKAN_LOADER_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DVULKAN_HEADERS_INSTALL_DIR=$PKG/usr \
|
|
-DBUILD_WSI_WAYLAND_SUPPORT=On \
|
|
..
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/robin-hood-hashing-$ROBIN_HOOD_VERSION.tar.?z || exit 1
|
|
cd robin-hood-hashing-$ROBIN_HOOD_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DRH_STANDALONE_PROJECT="OFF" \
|
|
..
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$TMP/robin-hood-hashing-$ROBIN_HOOD_VERSION/build/install || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/Vulkan-Utility-Libraries-vulkan-sdk-$VULKAN_UTILITY_LIBRARIES_VERSION.tar.?z || exit 1
|
|
cd $TMP/Vulkan-Utility-Libraries-vulkan-sdk-$VULKAN_UTILITY_LIBRARIES_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_SYSCONFDIR=/usr/share \
|
|
-DVulkanHeaders_DIR=$PKG/usr/share/cmake/VulkanHeaders/ \
|
|
..
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/Vulkan-ValidationLayers-vulkan-sdk-$VULKAN_VALIDATIONLAYERS_VERSION.tar.?z || exit 1
|
|
cd Vulkan-ValidationLayers-vulkan-sdk-$VULKAN_VALIDATIONLAYERS_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
|
|
-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=On \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DGLSLANG_INSTALL_DIR=$PKG/usr \
|
|
-DVULKAN_HEADERS_INSTALL_DIR=$PKG/usr \
|
|
-DSPIRV_HEADERS_INSTALL_DIR=$PKG/usr \
|
|
-DBUILD_LAYER_SUPPORT_FILES=On \
|
|
-DROBIN_HOOD_HASHING_INSTALL_DIR="$TMP/robin-hood-hashing-$ROBIN_HOOD_VERSION/build/install/usr" \
|
|
..
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/Vulkan-ExtensionLayer-vulkan-sdk-$VULKAN_EXTENSIONLAYER_VERSION.tar.?z || exit 1
|
|
cd $TMP/Vulkan-ExtensionLayer-vulkan-sdk-$VULKAN_EXTENSIONLAYER_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
|
|
-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=On \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DVULKAN_HEADERS_INSTALL_DIR=$PKG/usr \
|
|
-DBUILD_LAYER_SUPPORT_FILES=On \
|
|
..
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/volk-vulkan-sdk-$VOLK_VERSION.tar.?z || exit 1
|
|
cd $TMP/volk-vulkan-sdk-$VOLK_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_SYSCONFDIR=/usr/share \
|
|
-DVULKAN_HEADERS_INSTALL_DIR=$PKG/usr \
|
|
-DVOLK_INSTALL=ON \
|
|
..
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/Vulkan-Tools-vulkan-sdk-$VULKAN_TOOLS_VERSION.tar.?z || exit 1
|
|
cd $TMP/Vulkan-Tools-vulkan-sdk-$VULKAN_TOOLS_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DVULKAN_HEADERS_INSTALL_DIR=$PKG/usr \
|
|
-DGLSLANG_INSTALL_DIR=$PKG/usr \
|
|
-DVULKAN_LOADER_INSTALL_DIR=$PKG/usr \
|
|
-DBUILD_WSI_WAYLAND_SUPPORT=On \
|
|
..
|
|
|
|
# make uses glslangValidator, which is built against a shared
|
|
# libglslang that isn't installed yet
|
|
export LD_LIBRARY_PATH=$PKG/usr/lib$LIBDIRSUFFIX
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/jsoncpp-$JSONCPP_VERSION.tar.?z || exit 1
|
|
cd jsoncpp-$JSONCPP_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DBUILD_OBJECT_LIBS=OFF \
|
|
-DBUILD_STATIC_LIBS=ON \
|
|
-DBUILD_SHARED_LIBS=OFF \
|
|
-DJSONCPP_WITH_TESTS=OFF \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
..
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$TMP/jsoncpp-$JSONCPP_VERSION/build/install || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/valijson-$VALIJSON_VERSION.tar.?z || exit 1
|
|
cd valijson-$VALIJSON_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
..
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$TMP/valijson-$VALIJSON_VERSION/build/install || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/VulkanTools-vulkan-sdk-$VULKANTOOLS_VERSION.tar.?z || exit 1
|
|
cd $TMP/VulkanTools-vulkan-sdk-$VULKANTOOLS_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_SYSCONFDIR=/usr/share \
|
|
-DVULKAN_HEADERS_INSTALL_DIR=$PKG/usr \
|
|
-DVULKAN_REGISTRY_PATH_HINT=$PKG/usr \
|
|
-DVULKAN_LOADER_INSTALL_DIR=$PKG/usr \
|
|
-DVULKAN_VALIDATIONLAYERS_INSTALL_DIR=$PKG/usr \
|
|
-Dvalijson_DIR="$TMP/valijson-$VALIJSON_VERSION/build/install/usr/lib$LIBDIRSUFFIX/cmake/valijson" \
|
|
-Djsoncpp_DIR="$TMP/jsoncpp-$JSONCPP_VERSION/build/install/usr/lib$LIBDIRSUFFIX/cmake/jsoncpp" \
|
|
-DBUILD_WSI_WAYLAND_SUPPORT=On \
|
|
-DBUILD_TESTS=Off \
|
|
-DINSTALL_GTEST=Off \
|
|
..
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/shaderc-$SHADERC_VERSION.tar.?z || exit 1
|
|
cd $TMP/shaderc-$SHADERC_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
# Use python3:
|
|
cat $CWD/shaderc-2023.8.python3.patch | patch -p1 --verbose || exit 1
|
|
|
|
# Report correct versions in `glslc --version`
|
|
# git describe output collected in fetch-sources.sh
|
|
sed -i "s|\['git', 'describe'\]|\['cat', '.git-version'\]|" \
|
|
utils/update_build_version.py
|
|
|
|
# We're pointing shaderc to the sources we just compiled
|
|
# This won't avoid compiling them again, but slightly better than
|
|
# extracting them twice.
|
|
# Short of polluting the build system with the libraries we built
|
|
# so far, there's no (easy) way to point shaderc to the already
|
|
# built versions.
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_SYSCONFDIR=/usr/share \
|
|
-DSHADERC_SKIP_TESTS=On \
|
|
-DSHADERC_SKIP_EXAMPLES=On \
|
|
-DSHADERC_SPIRV_TOOLS_DIR=$TMP/glslang-vulkan-sdk-$GLSLANG_VERSION/External/spirv-tools \
|
|
-DSHADERC_GLSLANG_DIR=$TMP/glslang-vulkan-sdk-$GLSLANG_VERSION \
|
|
-DSKIP_GLSLANG_INSTALL=On \
|
|
-DSKIP_SPIRV_TOOLS_INSTALL=On \
|
|
-DBUILD_SHARED_LIBS=On \
|
|
-DSPIRV_TOOLS_BUILD_STATIC=Off \
|
|
-DBUILD_TESTING=Off \
|
|
..
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/SPIRV-Cross-vulkan-sdk-$SPIRV_CROSS_VERSION.tar.?z || exit 1
|
|
cd $TMP/SPIRV-Cross-vulkan-sdk-$SPIRV_CROSS_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
# Set version
|
|
sed -i "s|version \"unknown\"|version \"$SPIRV_CROSS_VERSION\"|" \
|
|
CMakeLists.txt
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DSPIRV_CROSS_ENABLE_TESTS=Off \
|
|
-DSPIRV_CROSS_SHARED=On \
|
|
-DSPIRV_CROSS_FORCE_PIC=On \
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON \
|
|
..
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/gfxreconstruct-vulkan-sdk-$GFXRECONSTRUCT_VERSION.tar.?z || exit 1
|
|
cd $TMP/gfxreconstruct-vulkan-sdk-$GFXRECONSTRUCT_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -Wno-error=stringop-overflow" \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
..
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/DirectXShaderCompiler-$DXC_VERSION.tar.?z || exit 1
|
|
cd $TMP/DirectXShaderCompiler-$DXC_VERSION
|
|
|
|
# This breaks the build, so skip it:
|
|
cat $CWD/DirectXShaderCompiler.noverify.patch | patch -p1 --verbose || exit 1
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
mkdir -p build/docs
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -Wno-error=stringop-truncation" \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_INCLUDEDIR=include/dxc \
|
|
-DLLVM_LIBDIR_SUFFIX=$LIBDIRSUFFIX \
|
|
-DLLVM_BUILD_TOOLS="OFF" \
|
|
-C"../cmake/caches/PredefinedParams.cmake" \
|
|
-DHLSL_INCLUDE_TESTS="OFF" \
|
|
..
|
|
|
|
make $NUMJOBS VERBOSE=1 || make VERBOSE=1 || exit 1
|
|
|
|
# "make install" is essentially useless at this point
|
|
# It installs a bunch of unnecessary llvm files
|
|
# https://github.com/microsoft/DirectXShaderCompiler/issues/3276
|
|
|
|
# install steps taken from appveyor.yml
|
|
mkdir -p $PKG/usr/{bin,lib$LIBDIRSUFFIX,include}
|
|
cp -P bin/dxc* $PKG/usr/bin/
|
|
cp -P lib$LIBDIRSUFFIX/libdxcompiler.so* $PKG/usr/lib$LIBDIRSUFFIX/
|
|
cp -r ../include/dxc $PKG/usr/include/
|
|
|
|
# Remove CMakeLists.txt files in /usr/include
|
|
find $PKG/usr/include/dxc -name "CMakeLists.txt" | xargs rm -f
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/SPIRV-Reflect-vulkan-sdk-$SPIRV_REFLECT_VERSION.tar.?z || exit 1
|
|
cd $TMP/SPIRV-Reflect-vulkan-sdk-$SPIRV_REFLECT_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
..
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
mkdir -p $PKG/usr/include/SPIRV-Reflect/include/spirv/unified1
|
|
|
|
install -m 644 ../spirv_reflect.c $PKG/usr/include/SPIRV-Reflect/
|
|
install -m 644 ../spirv_reflect.h $PKG/usr/include/SPIRV-Reflect/
|
|
install -m 644 ../include/spirv/unified1/spirv.h \
|
|
$PKG/usr/include/SPIRV-Reflect/include/spirv/unified1/
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/Vulkan-Profiles-vulkan-sdk-$VULKAN_PROFILES_VERSION.tar.?z || exit 1
|
|
cd $TMP/Vulkan-Profiles-vulkan-sdk-$VULKAN_PROFILES_VERSION
|
|
|
|
# do not depend on python-jsonschema
|
|
#sed -i "/jsonschema/d" scripts/gen_profiles_solution.py
|
|
|
|
# Fix indentation error:
|
|
#cat $CWD/Vulkan-Profiles-vulkan-sdk.indent.patch | patch -p1 --verbose || exit 1
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS -Wno-error=deprecated-declarations -I$PKG/usr/include/vulkan" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -Wno-error=deprecated-declarations -I$PKG/usr/include/vulkan" \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_SYSCONFDIR=/usr/share \
|
|
-DVULKAN_LOADER_INSTALL_DIR=$PKG/usr \
|
|
-DVULKAN_HEADERS_INSTALL_DIR=$PKG/usr \
|
|
-DVULKAN_HEADERS_SOURCE_DIR="$TMP/Vulkan-Headers-vulkan-sdk-$VULKAN_HEADERS_VERSION" \
|
|
-DVULKAN_VALIDATIONLAYERS_SOURCE_DIR="$TMP/Vulkan-ValidationLayers-vulkan-sdk-$VULKAN_VALIDATIONLAYERS_VERSION" \
|
|
-DVVL_INCLUDE_DIR="$PKG/usr/include/vulkan" \
|
|
-Dvalijson_DIR="$TMP/valijson-$VALIJSON_VERSION/build/install/usr/lib$LIBDIRSUFFIX/cmake/valijson" \
|
|
-Djsoncpp_DIR="$TMP/jsoncpp-$JSONCPP_VERSION/build/install/usr/lib$LIBDIRSUFFIX/cmake/jsoncpp" \
|
|
-DVulkan_INCLUDE_DIR="$PKG/usr/include/vulkan" \
|
|
-DPROFILES_BUILD_TESTS=OFF \
|
|
..
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/VulkanCapsViewer-$VULKAN_CAPS_VIEWER_VERSION.tar.?z || exit 1
|
|
cd $TMP/VulkanCapsViewer-$VULKAN_CAPS_VIEWER_VERSION
|
|
|
|
# Fix finding Vulkan-Loader
|
|
sed -i "s|/lib/|/lib$LIBDIRSUFFIX/|g" CMakeLists.txt
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_SYSCONFDIR=/usr/share \
|
|
-DVULKAN_LOADER_INSTALL_DIR=$PKG/usr \
|
|
-DVULKAN_HEADERS_INSTALL_DIR=$PKG/usr \
|
|
..
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
cd $TMP
|
|
tar xvf $CWD/VulkanMemoryAllocator-$VULKAN_MEMORY_ALLOCATOR_VERSION.tar.?z || exit 1
|
|
cd $TMP/VulkanMemoryAllocator-$VULKAN_MEMORY_ALLOCATOR_VERSION
|
|
|
|
chown -R root:root .
|
|
find . \
|
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
|
-exec chmod 755 {} \+ -o \
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
-exec chmod 644 {} \+
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake \
|
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_SYSCONFDIR=/usr/share \
|
|
-DVulkan_GLSLANG_VALIDATOR_EXECUTABLE=$PKG/usr/bin/glslangValidator \
|
|
-DVulkan_GLSLC_EXECUTABLE=$PKG/usr/bin/glslc \
|
|
-DVulkan_INCLUDE_DIR=$PKG/usr/include \
|
|
-DVulkan_LIBRARY=$PKG/usr/lib$LIBDIRSUFFIX/libvulkan.so.$VULKAN_LOADER_VERSION \
|
|
..
|
|
|
|
# make uses glslangValidator/glslc, which is built against a shared
|
|
# libglslang that isn't installed yet
|
|
export LD_LIBRARY_PATH=$PKG/usr/lib$LIBDIRSUFFIX
|
|
|
|
make $NUMJOBS || make || exit 1
|
|
make install DESTDIR=$PKG || exit 1
|
|
|
|
cd $TMP
|
|
|
|
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
|
|
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/SPIRV-Headers
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/SPIRV-Tools
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/glslang
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/Vulkan-Headers
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/Vulkan-Loader
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/Vulkan-ValidationLayers
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/Vulkan-ExtensionLayer
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/Vulkan-Tools
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/VulkanTools
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/shaderc
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/SPIRV-Cross
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/gfxreconstruct
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/DirectXShaderCompiler
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/SPIRV-Reflect
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/Vulkan-Profiles
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/volk
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/Vulkan-Utility-Libraries
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/VulkanCapsViewer
|
|
mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION/VulkanMemoryAllocator
|
|
cp -a \
|
|
SPIRV-Headers-$SPIRV_HEADERS_VERSION/LICENSE* \
|
|
SPIRV-Headers-$SPIRV_HEADERS_VERSION/README* \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/SPIRV-Headers
|
|
cp -a \
|
|
glslang-vulkan-sdk-$GLSLANG_VERSION/External/spirv-tools/LICENSE* \
|
|
glslang-vulkan-sdk-$GLSLANG_VERSION/External/spirv-tools/README* \
|
|
glslang-vulkan-sdk-$GLSLANG_VERSION/External/spirv-tools/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/SPIRV-Tools
|
|
cp -a \
|
|
glslang-vulkan-sdk-$GLSLANG_VERSION/LICENSE* \
|
|
glslang-vulkan-sdk-$GLSLANG_VERSION/README* \
|
|
glslang-vulkan-sdk-$GLSLANG_VERSION/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/glslang
|
|
cp -a \
|
|
Vulkan-Headers-vulkan-sdk-$VULKAN_HEADERS_VERSION/LICENSE* \
|
|
Vulkan-Headers-vulkan-sdk-$VULKAN_HEADERS_VERSION/README* \
|
|
Vulkan-Headers-vulkan-sdk-$VULKAN_HEADERS_VERSION/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/Vulkan-Headers
|
|
cp -a \
|
|
Vulkan-Loader-vulkan-sdk-$VULKAN_LOADER_VERSION/LICENSE* \
|
|
Vulkan-Loader-vulkan-sdk-$VULKAN_LOADER_VERSION/README* \
|
|
Vulkan-Loader-vulkan-sdk-$VULKAN_LOADER_VERSION/*.md \
|
|
Vulkan-Loader-vulkan-sdk-$VULKAN_LOADER_VERSION/loader/LoaderAndLayerInterface.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/Vulkan-Loader
|
|
cp -a \
|
|
Vulkan-ValidationLayers-vulkan-sdk-$VULKAN_VALIDATIONLAYERS_VERSION/LICENSE* \
|
|
Vulkan-ValidationLayers-vulkan-sdk-$VULKAN_VALIDATIONLAYERS_VERSION/README* \
|
|
Vulkan-ValidationLayers-vulkan-sdk-$VULKAN_VALIDATIONLAYERS_VERSION/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/Vulkan-ValidationLayers
|
|
cp -a \
|
|
Vulkan-ExtensionLayer-vulkan-sdk-$VULKAN_EXTENSIONLAYER_VERSION/LICENSE* \
|
|
Vulkan-ExtensionLayer-vulkan-sdk-$VULKAN_EXTENSIONLAYER_VERSION/README* \
|
|
Vulkan-ExtensionLayer-vulkan-sdk-$VULKAN_EXTENSIONLAYER_VERSION/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/Vulkan-ExtensionLayer
|
|
cp -a \
|
|
Vulkan-Tools-vulkan-sdk-$VULKAN_TOOLS_VERSION/LICENSE* \
|
|
Vulkan-Tools-vulkan-sdk-$VULKAN_TOOLS_VERSION/README* \
|
|
Vulkan-Tools-vulkan-sdk-$VULKAN_TOOLS_VERSION/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/Vulkan-Tools
|
|
cp -a \
|
|
VulkanTools-vulkan-sdk-$VULKANTOOLS_VERSION/LICENSE* \
|
|
VulkanTools-vulkan-sdk-$VULKANTOOLS_VERSION/README* \
|
|
VulkanTools-vulkan-sdk-$VULKANTOOLS_VERSION/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/VulkanTools
|
|
cp -a \
|
|
shaderc-$SHADERC_VERSION/AUTHORS \
|
|
shaderc-$SHADERC_VERSION/LICENSE* \
|
|
shaderc-$SHADERC_VERSION/README* \
|
|
shaderc-$SHADERC_VERSION/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/shaderc
|
|
cp -a \
|
|
SPIRV-Cross-vulkan-sdk-$SPIRV_CROSS_VERSION/LICENSE* \
|
|
SPIRV-Cross-vulkan-sdk-$SPIRV_CROSS_VERSION/README* \
|
|
SPIRV-Cross-vulkan-sdk-$SPIRV_CROSS_VERSION/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/SPIRV-Cross
|
|
cp -a \
|
|
gfxreconstruct-vulkan-sdk-$GFXRECONSTRUCT_VERSION/LICENSE* \
|
|
gfxreconstruct-vulkan-sdk-$GFXRECONSTRUCT_VERSION/README* \
|
|
gfxreconstruct-vulkan-sdk-$GFXRECONSTRUCT_VERSION/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/gfxreconstruct
|
|
cp -a \
|
|
DirectXShaderCompiler-$DXC_VERSION/LICENSE* \
|
|
DirectXShaderCompiler-$DXC_VERSION/README* \
|
|
DirectXShaderCompiler-$DXC_VERSION/ThirdPartyNotices.txt \
|
|
DirectXShaderCompiler-$DXC_VERSION/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/DirectXShaderCompiler
|
|
cp -a \
|
|
SPIRV-Reflect-vulkan-sdk-$SPIRV_REFLECT_VERSION/LICENSE* \
|
|
SPIRV-Reflect-vulkan-sdk-$SPIRV_REFLECT_VERSION/README* \
|
|
SPIRV-Reflect-vulkan-sdk-$SPIRV_REFLECT_VERSION/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/SPIRV-Reflect
|
|
cp -a \
|
|
Vulkan-Profiles-vulkan-sdk-$VULKAN_PROFILES_VERSION/LICENSE* \
|
|
Vulkan-Profiles-vulkan-sdk-$VULKAN_PROFILES_VERSION/README* \
|
|
Vulkan-Profiles-vulkan-sdk-$VULKAN_PROFILES_VERSION/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/Vulkan-Profiles
|
|
cp -a \
|
|
volk-vulkan-sdk-$VOLK_VERSION/LICENSE* \
|
|
volk-vulkan-sdk-$VOLK_VERSION/README* \
|
|
volk-vulkan-sdk-$VOLK_VERSION/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/volk
|
|
cp -a \
|
|
Vulkan-Utility-Libraries-vulkan-sdk-$VULKAN_UTILITY_LIBRARIES_VERSION/LICENSE* \
|
|
Vulkan-Utility-Libraries-vulkan-sdk-$VULKAN_UTILITY_LIBRARIES_VERSION/README* \
|
|
Vulkan-Utility-Libraries-vulkan-sdk-$VULKAN_UTILITY_LIBRARIES_VERSION/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/Vulkan-Utility-Libraries
|
|
cp -a \
|
|
VulkanCapsViewer-$VULKAN_CAPS_VIEWER_VERSION/LICENSE* \
|
|
VulkanCapsViewer-$VULKAN_CAPS_VIEWER_VERSION/README* \
|
|
VulkanCapsViewer-$VULKAN_CAPS_VIEWER_VERSION/docs/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/VulkanCapsViewer
|
|
cp -a \
|
|
VulkanMemoryAllocator-$VULKAN_MEMORY_ALLOCATOR_VERSION/LICENSE* \
|
|
VulkanMemoryAllocator-$VULKAN_MEMORY_ALLOCATOR_VERSION/README* \
|
|
VulkanMemoryAllocator-$VULKAN_MEMORY_ALLOCATOR_VERSION/docs/*.md \
|
|
$PKG/usr/doc/$PKGNAM-$VERSION/VulkanMemoryAllocator
|
|
|
|
mkdir -p $PKG/install
|
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
|
|
|
cd $PKG
|
|
/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz
|