75 lines
3.1 KiB
Bash
75 lines
3.1 KiB
Bash
# Template file for 'amdvlk'
|
|
pkgname=amdvlk
|
|
version=2021.Q3.7
|
|
revision=1
|
|
_llpc_commit=b8ba5f3626f07dbf76026a05394bc2b5c99fe713
|
|
_xgl_commit=9244bd33f361bbfd23df14789e82457a63d70d5d
|
|
_pal_commit=8e5baae7cfdd885974013337e556e9dc955b6737
|
|
_llvm_project_commit=2108ca319b3f5d5e84603e6644365cd14a58c0de
|
|
_spvgen_commit=ac9911afeff0e33ee240c01a593b156f0bc6f6af
|
|
_MetroHash_commit=3c566dd9cda44ca7fd97659e0b53ac953f9037d2
|
|
_CWPack_commit=39f8940199e60c44d4211cf8165dfd12876316fa
|
|
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="1b17e6c2cfe1e94e4f114a2f9e6e88ace48760e06068d3967bad6c7f62efac5e
|
|
beaa044cb6035d332cabd5f46dbd10a6da7fa36d27bcbfa14ec3903bddd0801a
|
|
2137647bee53a36e1da61c74781b95d9b0355d8ae18169324c848fdcfebf3fc3
|
|
13ea4c6cd6fd71543369968fd54d943a10458fbc965a8b3261e7592abfb5340c
|
|
78bad8a9fe5eb9a2de91241e41b8050aa21ab1f19be3fdfdfabf6d5170aac939
|
|
a382c15bb12489a5e47eac7161d27f25c6d4d13050d710d20d6e71ad9e45ee01
|
|
cc8ff538fede25fe023984b3fde27f09b000bdc49793534794cd1d2bf881750a
|
|
0f5f9e050bdd944b335b3dd5baafce8327b75d65ec5a2812cf0441d1172b03ea"
|
|
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
|
|
}
|