# Template file for 'amdvlk' pkgname=amdvlk version=2021.Q2.2 revision=1 _llpc_commit=28c4e99487ebe0a8b5801f56b876df6b33903554 _xgl_commit=f1467f0dfd3dccd643214574ebfbe456a55d03bd _pal_commit=0168557a0715bf47a55ffe9858276cde1e74cc1d _llvm_project_commit=d2e97f4879565c9292f9177debbc7c65ead6ab84 _spvgen_commit=59823e6c3557cb7f3fae4a9f2760ad3f6b694997 _MetroHash_commit=3c566dd9cda44ca7fd97659e0b53ac953f9037d2 _CWPack_commit=7387247eb9889ddcabbc1053b9c2052e253b088e archs="i686* x86_64*" create_wrksrc=yes build_wrksrc="xgl" build_style=cmake configure_args="-DBUILD_WAYLAND_SUPPORT=ON -DXGL_METROHASH_PATH=../../metrohash -DXGL_CWPACK_PATH=../../cwpack -DLLVM_PARALLEL_LINK_JOBS=2" hostmakedepends="pkg-config python3 perl" makedepends="libxml2-devel xorg-server-devel libXrandr-devel libffi-devel wayland-devel" depends="vulkan-loader" short_desc="AMD Open Source Driver For Vulkan" maintainer="John " license="MIT" homepage="https://github.com/GPUOpen-Drivers/AMDVLK" distfiles="https://github.com/GPUOpen-Drivers/AMDVLK/archive/v-${version}.tar.gz https://github.com/GPUOpen-Drivers/llpc/archive/${_llpc_commit}.tar.gz https://github.com/GPUOpen-Drivers/xgl/archive/${_xgl_commit}.tar.gz https://github.com/GPUOpen-Drivers/pal/archive/${_pal_commit}.tar.gz https://github.com/GPUOpen-Drivers/llvm-project/archive/${_llvm_project_commit}.tar.gz https://github.com/GPUOpen-Drivers/spvgen/archive/${_spvgen_commit}.tar.gz https://github.com/GPUOpen-Drivers/MetroHash/archive/${_MetroHash_commit}.tar.gz https://github.com/GPUOpen-Drivers/CWPack/archive/${_CWPack_commit}.tar.gz" checksum="fab8c7db5600d418178d470d19b5507f8bd6166a1fca05abc595f77b2052865e 0a9eacee11c53af5f3fe39d367571e55da9d20bc97d6a2bd8ccd32655c13db7f 09f8c905367b57a9932a3bc7b5d013045906a515f1c8d34eea37e11ea3f71d38 a6450459e839c5ccf546b26115f831dcdc76a7878f91fc589a35bf258474b3a2 e108164d5f06412fe8be56afb8f393def6e1a280f511f82061852af9be4dd9b6 124e37608f2ef49a980c3fff9cc73bcb154c9724ee00397e0dee6cc8cf1b4244 cc8ff538fede25fe023984b3fde27f09b000bdc49793534794cd1d2bf881750a 186060fbcf87165224ba7df0e1858b66ebc42cf190c481aef1df8d89ebab7abd" nocross=yes lib32files="/usr/share/vulkan/icd.d/amd_icd32.json" case "$XBPS_TARGET_MACHINE" in i686*) nodebug=yes;; esac post_extract() { mv ${wrksrc}/AMDVLK-v-${version} ${wrksrc}/AMDVLK mv ${wrksrc}/xgl-${_xgl_commit} ${wrksrc}/xgl mv ${wrksrc}/pal-${_pal_commit} ${wrksrc}/pal mv ${wrksrc}/llpc-${_llpc_commit} ${wrksrc}/llpc mv ${wrksrc}/llvm-project-${_llvm_project_commit} ${wrksrc}/llvm-project mv ${wrksrc}/spvgen-${_spvgen_commit} ${wrksrc}/spvgen mv ${wrksrc}/MetroHash-${_MetroHash_commit} ${wrksrc}/metrohash mv ${wrksrc}/CWPack-${_CWPack_commit} ${wrksrc}/cwpack } pre_configure() { case "$XBPS_TARGET_MACHINE" in i686*) _arch="X86";; x86_64*) _arch="X86";; esac configure_args+=" -DLLVM_TARGET_ARCH=${_arch}" configure_args+=" -DLLVM_DEFAULT_TARGET_TRIPLE=${XBPS_CROSS_TRIPLET:-$XBPS_TRIPLET}" } do_install() { vinstall build/icd/amdvlk${XBPS_TARGET_WORDSIZE}.so 644 usr/lib/ vinstall ${wrksrc}/AMDVLK/json/Redhat/amd_icd${XBPS_TARGET_WORDSIZE}.json \ 644 usr/share/vulkan/icd.d/ vsed -i ${DESTDIR}/usr/share/vulkan/icd.d/amd_icd${XBPS_TARGET_WORDSIZE}.json \ -e "s#/usr/lib/#/usr/lib${XBPS_TARGET_WORDSIZE}/#g" vlicense ${wrksrc}/AMDVLK/LICENSE.txt }