76 lines
3.1 KiB
Bash
76 lines
3.1 KiB
Bash
# Template file for 'amdvlk'
|
|
pkgname=amdvlk
|
|
version=2021.Q3.1
|
|
revision=1
|
|
_llpc_commit=b2e47a684ac1ba9bcddfc87afa9d2fffffd15c06
|
|
_xgl_commit=682b4a3d4a49b2db24ad10b31ff192d03ecca097
|
|
_pal_commit=ad699adac6f9f331bbc454050f6b40d1549ce752
|
|
_llvm_project_commit=84bf997c8b569e551ef73d39cf391e72d2f6c682
|
|
_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="22a361b6ddd7e90e2c7e032997aa75fd3ff09b7d8747f858878ab2b55abef6fa
|
|
7850d290692354cc8fff2bb9733483d70a95a4bd6895fe9c8d9f039520a1025d
|
|
1fbc572c0de2dc773fafad5ace4a2c754157cfd44f93ee89b2cbad015f0fd5dc
|
|
6ed1a198f1967dfed7d81ea28a65ce03042fe3b72bf48a119a111ab487a5abf9
|
|
3cf1858a373e8d1eda486e1fc668f0552f80408ba395ac5e7038ec6271513bd3
|
|
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
|
|
}
|