# Template file for 'amdvlk' pkgname=amdvlk version=2021.Q2.3 revision=1 _llpc_commit=f6a6db59d49977cefa79dab3346a1eba2ecfca3c _xgl_commit=d81362ec6baf91a98895572d721ce7497efc8eeb _pal_commit=de5f376ca30a108f1fc1fd5cdf33fdfe9f9d5dbb _llvm_project_commit=95783cc95c317154202ca84d5d91619e0a097c13 _spvgen_commit=faf9ff1722d3eac902481401252c2529c6988782 _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="ec17d7f7c7af5adaa2fee7744321da3665be215105df7c3fc72bfeff2575a509 c203bb337cd6e9606ee314f9945cbd3705f1c621985cc5b9ae89e8fc5cfba15c c3abc3e6936c727f326d53ccd97b030c8dc2d3d052016a55bb68b2f7aeef9a39 bc14685a6b1abf865f829075d65a107a47a7951ca884f2ef1b219b06736be66e a3962ea0a88e762af1156ce268ddb2e981adea8de91b348c3a736ea9975b349e f1676d6f3519224f7a67f1271eadceea26718b3aefc6aaa9de087e176ae3975f 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 }