62 lines
2.5 KiB
Bash
62 lines
2.5 KiB
Bash
|
# Template file for 'amdvlk'
|
||
|
pkgname=amdvlk
|
||
|
version=2019.Q1.3
|
||
|
revision=1
|
||
|
_llpc_commit=fc32df219915b72ece2007079063b3942c843630
|
||
|
_xgl_commit=f42a5b845ba784eb9990ed7182a8c4ff1f7cf7e3
|
||
|
_pal_commit=ee4e837d08ec933714df20e76abe0aebee42d457
|
||
|
_llvm_commit=3c7dbb214c3680803f7d3e3c3aed02fddb2f7dbb
|
||
|
_wsa_commit=f558403d3292039de4d17334e562bda58abfc72c
|
||
|
create_wrksrc=yes
|
||
|
build_wrksrc="xgl"
|
||
|
build_style=cmake
|
||
|
configure_args="-DBUILD_WAYLAND_SUPPORT=ON -DBUILD_WSA=ON"
|
||
|
hostmakedepends="pkg-config python3 perl"
|
||
|
makedepends="libxml2-devel xorg-server-devel libXrandr-devel"
|
||
|
depends="vulkan-loader"
|
||
|
short_desc="AMD Open Source Driver For Vulkan"
|
||
|
maintainer="John <johnz@posteo.net>"
|
||
|
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/archive/${_llvm_commit}.tar.gz
|
||
|
https://github.com/GPUOpen-Drivers/wsa/archive/${_wsa_commit}.tar.gz"
|
||
|
checksum="5ad6dfbad5ade7cf26c81468b9c890c07e0d14e93edf356a349952f323dafd26
|
||
|
31a865fd53e1e1a07f73cdeb7413772b68d6fe973c3bc76aa1cc195eddcccc82
|
||
|
6bf4653d687f62ca7819b52903c20a201e59b55acb144c3a5068481f7c03de1c
|
||
|
c3e04b461b7410136f2c58ec7e53692a715335ec57f3aae7a7bdcf45f107edaf
|
||
|
9f17bbf37b92640589ba017030ca8fd569226325e6346aa1a75cceb0010c2301
|
||
|
b23e9453fa7b14bb13157fb645936ec74b18b12cdef301758452a92b23f27705"
|
||
|
|
||
|
case $XBPS_TARGET_MACHINE in
|
||
|
arm*|aarch64*) broken="https://travis-ci.com/Johnnynator/void-packages/jobs/173227514"
|
||
|
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-${_llvm_commit} ${wrksrc}/llvm
|
||
|
mv ${wrksrc}/wsa-${_wsa_commit} ${wrksrc}/wsa
|
||
|
}
|
||
|
|
||
|
do_install() {
|
||
|
case $XBPS_TARGET_MACHINE in
|
||
|
i686*|mips*|arm*|ppc|ppc-musl)
|
||
|
vinstall build/icd/amdvlk32.so 644 usr/lib/
|
||
|
vinstall ${wrksrc}/AMDVLK/json/Redhat/amd_icd32.json 644 usr/share/vulkan/icd.d/
|
||
|
;;
|
||
|
*)
|
||
|
vinstall build/icd/amdvlk64.so 644 usr/lib/
|
||
|
vinstall ${wrksrc}/AMDVLK/json/Redhat/amd_icd64.json 644 usr/share/vulkan/icd.d/
|
||
|
vsed -i ${DESTDIR}/usr/share/vulkan/icd.d/amd_icd64.json -e 's#/usr/lib64/#/usr/lib/#g'
|
||
|
;;
|
||
|
esac
|
||
|
vinstall build/wsa/wayland/libamdgpu_wsa_wayland.so 644 usr/lib/
|
||
|
vlicense ${wrksrc}/AMDVLK/LICENSE.txt
|
||
|
}
|