82 lines
3.5 KiB
Bash
82 lines
3.5 KiB
Bash
# Template file for 'amdvlk'
|
|
pkgname=amdvlk
|
|
version=2024.Q2.1
|
|
revision=1
|
|
_xgl_commit=f6a447e31ae7c4583c765042071f48421269cfce
|
|
_pal_commit=c789abc769d264f73e3dad3f21238b876918f594
|
|
_llpc_commit=8252cfa83e03aa0a193c0f0cd6a9dba3e99e25d5
|
|
_gpurt_commit=e0f12d951395cacd8ff117a0e82601e1ce5c4c02
|
|
_llvm_project_commit=45cdb88c143dad74438a9a480b3b1d33305b9da4
|
|
_MetroHash_commit=18893fb28601bb9af1154cd1a671a121fff6d8d3
|
|
_CWPack_commit=4f8cf0584442a91d829d269158567d7ed926f026
|
|
_llvm_dialects_commit=55e176fb88bcfc4fae45bafaa3ff209ec4c0d4ee
|
|
archs="i686* x86_64*"
|
|
create_wrksrc=yes
|
|
build_wrksrc="xgl"
|
|
build_style=cmake
|
|
configure_args="-DBUILD_WAYLAND_SUPPORT=ON
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
-DLLVM_PARALLEL_LINK_JOBS=2"
|
|
hostmakedepends="pkg-config python3 perl"
|
|
makedepends="libxml2-devel xorg-server-devel libXrandr-devel libffi-devel wayland-devel
|
|
DirectXShaderCompiler-devel glslang-devel python3-Jinja2 python3-ruamel.yaml"
|
|
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/gpurt/archive/${_gpurt_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/MetroHash/archive/${_MetroHash_commit}.tar.gz
|
|
https://github.com/GPUOpen-Drivers/CWPack/archive/${_CWPack_commit}.tar.gz
|
|
https://github.com/GPUOpen-Drivers/llvm-dialects/archive/${_llvm_dialects_commit}.tar.gz"
|
|
checksum="ede2ad261f68da64bb3a7ca47c6debfc42c171d3bd9bd91a01e3727ff5a7d4c8
|
|
4a609e8077ad27aa426b0a37ff52c615c10fd19520a83eaed9000b937f93ee16
|
|
8bce7f9b491d37ec6d1ca8fe440b145d6a26248278422f700f0beffb2f6f79d3
|
|
9c9a2da94c10c6108faf47e87a0db085799874a392bd0ead17881ab248c28874
|
|
f74a3b15f230a134a86ee76964582dc0b4fb2990d26b77fe2b7be5f62adc0645
|
|
644b35c146a08af1474d7c030b15811f2480762741b5cef6d72299c1ec353ac4
|
|
141e6c156a834b8e0f90ba108664d7f35193df11acddefa117f394dbf2b7371a
|
|
87ed9209c129f47d0b64c914fb99d6c69e59a257445ec3a394c3e00d5e2b4484
|
|
996b27e2b9b1d40d038a8c8b741a398ae1dab06e5ef24d48b2f9d006871b9a2d"
|
|
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}/gpurt-${_gpurt_commit} ${wrksrc}/gpurt
|
|
mv ${wrksrc}/llvm-project-${_llvm_project_commit} ${wrksrc}/llvm-project
|
|
mkdir ${wrksrc}/third_party
|
|
mv ${wrksrc}/MetroHash-${_MetroHash_commit} ${wrksrc}/third_party/metrohash
|
|
mv ${wrksrc}/CWPack-${_CWPack_commit} ${wrksrc}/third_party/cwpack
|
|
rmdir ${wrksrc}/llpc/imported/llvm-dialects/
|
|
mv ${wrksrc}/llvm-dialects-${_llvm_dialects_commit}/ ${wrksrc}/llpc/imported/llvm-dialects/
|
|
}
|
|
|
|
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
|
|
}
|