amdvlk: generalize with wordsize
This commit is contained in:
parent
5e385183c8
commit
774a3fef75
|
@ -64,17 +64,10 @@ pre_configure() {
|
|||
}
|
||||
|
||||
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/
|
||||
vsed -i ${DESTDIR}/usr/share/vulkan/icd.d/amd_icd32.json -e 's#/usr/lib/#/usr/lib32/#g'
|
||||
;;
|
||||
*)
|
||||
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/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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue