78 lines
3.3 KiB
Bash
78 lines
3.3 KiB
Bash
# Template file for 'amdvlk'
|
|
pkgname=amdvlk
|
|
version=2021.Q1.4
|
|
revision=1
|
|
_llpc_commit=2692228d80d8be2221641b719eb7135f52bc34aa
|
|
_xgl_commit=e5c5ad454049892ed803b0adcc15ef6fb27ec50e
|
|
_pal_commit=575d41ff01c856d9566168d65b31e4b49db4734b
|
|
_llvm_project_commit=90d06712ff54e242b7bd225321e4fc8629292d46
|
|
_spvgen_commit=59823e6c3557cb7f3fae4a9f2760ad3f6b694997
|
|
_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"
|
|
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="c88b946a0dd8d9442e798ce3a182b6f23ffab0b96e9967292ad6ba84c74d9273
|
|
1e043aee70e5690bc5934a2352a19c182e5d27c59ac9870089d979ce59c125cc
|
|
571fdf549864eea95e716149bbc54d6906ac74d5d5811c46047b4483256590e6
|
|
42e048a5ea32fb44f26ad96b538754bbffdcd9f20a019bacd1efd2302a3502ac
|
|
e7e9a943486fb16426fb5584a992a227a3e014142bdc70e25ce18a7ccdb830f5
|
|
124e37608f2ef49a980c3fff9cc73bcb154c9724ee00397e0dee6cc8cf1b4244
|
|
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 ${wrksrc}/AMDVLK/json/Redhat/amd_icd${XBPS_TARGET_WORDSIZE}.json \
|
|
644 usr/share/vulkan/icd.d/
|
|
vsed -i ${DESTDIR}/usr/share/vulkan/icd.d/amd_icd${XBPS_TARGET_WORDSIZE}.json \
|
|
-e "s#/usr/lib/#/usr/lib${XBPS_TARGET_WORDSIZE}/#g"
|
|
vlicense ${wrksrc}/AMDVLK/LICENSE.txt
|
|
}
|