e0f50b3df6
[ci skip]
68 lines
2.7 KiB
Bash
68 lines
2.7 KiB
Bash
# Template file for 'amdvlk'
|
|
pkgname=amdvlk
|
|
version=2019.Q1.4
|
|
revision=1
|
|
_llpc_commit=7476cddf9a7e1d47546e57c9ee654907889d0891
|
|
_xgl_commit=6a629e8286ed9d2a8a3799131a274ee58590765d
|
|
_pal_commit=1af0abb8cfa370284878d5aeaa74d1d0c7406c23
|
|
_llvm_commit=3c7dbb214c3680803f7d3e3c3aed02fddb2f7dbb
|
|
_wsa_commit=f558403d3292039de4d17334e562bda58abfc72c
|
|
create_wrksrc=yes
|
|
build_wrksrc="xgl"
|
|
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
|
|
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="79d6cef1a92b6b252f62887d2901867e3109e91edc8580950b93a4a7dec28ed4
|
|
759c446bd122fbc7a67baef4dd7c1d56b05f40cfb85e850a35453daf1fc0e04c
|
|
46af1b7c8ee8f342e696a1213277118435eaf5b15be234cbaf2eae7c312b1372
|
|
99f41271fa2dd4a04d5b22db1adffca79eaefacd353e5f542fe5285db0485df2
|
|
9f17bbf37b92640589ba017030ca8fd569226325e6346aa1a75cceb0010c2301
|
|
b23e9453fa7b14bb13157fb645936ec74b18b12cdef301758452a92b23f27705"
|
|
nocross=yes
|
|
|
|
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
|
|
}
|
|
|
|
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() {
|
|
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
|
|
}
|