75 lines
3.1 KiB
Bash
75 lines
3.1 KiB
Bash
# Template file for 'amdvlk'
|
|
pkgname=amdvlk
|
|
version=2021.Q3.3
|
|
revision=1
|
|
_llpc_commit=9a3ae083e7400d38790dd9a251731b20aae0d31a
|
|
_xgl_commit=b135615f415f318c4e910e4b4f44aba2b5ea2e7f
|
|
_pal_commit=f2be9e29a870305e2b2ff1641c0f230725685ef3
|
|
_llvm_project_commit=d3ad9a01687d912773e4fe802ddc85143b7e66d1
|
|
_spvgen_commit=051b6997c7c34f1167cfd400e3205ed6d4b728ef
|
|
_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 <me@johnnynator.dev>"
|
|
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="bfb86692af5c47d4d1b9b1b669fa67626dbd6145804b4deda7d20cc688cd403f
|
|
241b9f62ae01284468f45b3f690303c884bfaddeade19f6041e617f20485789b
|
|
5608e53d87d55fd4667d67a4293d9a17ef99a769bf41eeacd99ac9b829ee4412
|
|
ca9f60cdeb22c1befcab88bf527f8318265dbda1cb5149421bf38c4fcc0f91a7
|
|
01a07a396604ec3634e9369d3dbb5d198e7b58fbcde54e0cf06e55bd95e77a90
|
|
1718847a0476f47dede1f061a61dcbd00861bd998f4257c54ec92e866e94f8f2
|
|
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 build/icd/amd_icd${XBPS_TARGET_WORDSIZE}.json \
|
|
644 usr/share/vulkan/icd.d/
|
|
vlicense ${wrksrc}/AMDVLK/LICENSE.txt
|
|
}
|