amdvlk: generalize with wordsize
This commit is contained in:
parent
5e385183c8
commit
774a3fef75
|
@ -64,17 +64,10 @@ pre_configure() {
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
case $XBPS_TARGET_MACHINE in
|
vinstall build/icd/amdvlk${XBPS_TARGET_WORDSIZE}.so 644 usr/lib/
|
||||||
i686*|mips*|arm*|ppc|ppc-musl)
|
vinstall ${wrksrc}/AMDVLK/json/Redhat/amd_icd${XBPS_TARGET_WORDSIZE}.json \
|
||||||
vinstall build/icd/amdvlk32.so 644 usr/lib/
|
644 usr/share/vulkan/icd.d/
|
||||||
vinstall ${wrksrc}/AMDVLK/json/Redhat/amd_icd32.json 644 usr/share/vulkan/icd.d/
|
vsed -i ${DESTDIR}/usr/share/vulkan/icd.d/amd_icd${XBPS_TARGET_WORDSIZE}.json \
|
||||||
vsed -i ${DESTDIR}/usr/share/vulkan/icd.d/amd_icd32.json -e 's#/usr/lib/#/usr/lib32/#g'
|
-e "s#/usr/lib/#/usr/lib${XBPS_TARGET_WORDSIZE}/#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
|
|
||||||
vlicense ${wrksrc}/AMDVLK/LICENSE.txt
|
vlicense ${wrksrc}/AMDVLK/LICENSE.txt
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue