diff --git a/srcpkgs/amdvlk/template b/srcpkgs/amdvlk/template index b91e5c4bd85..fdf4a313491 100644 --- a/srcpkgs/amdvlk/template +++ b/srcpkgs/amdvlk/template @@ -1,10 +1,10 @@ # Template file for 'amdvlk' pkgname=amdvlk -version=2019.Q1.3 +version=2019.Q1.4 revision=1 -_llpc_commit=fc32df219915b72ece2007079063b3942c843630 -_xgl_commit=f42a5b845ba784eb9990ed7182a8c4ff1f7cf7e3 -_pal_commit=ee4e837d08ec933714df20e76abe0aebee42d457 +_llpc_commit=7476cddf9a7e1d47546e57c9ee654907889d0891 +_xgl_commit=6a629e8286ed9d2a8a3799131a274ee58590765d +_pal_commit=1af0abb8cfa370284878d5aeaa74d1d0c7406c23 _llvm_commit=3c7dbb214c3680803f7d3e3c3aed02fddb2f7dbb _wsa_commit=f558403d3292039de4d17334e562bda58abfc72c create_wrksrc=yes @@ -25,12 +25,13 @@ distfiles="https://github.com/GPUOpen-Drivers/AMDVLK/archive/v-${version}.tar.gz https://github.com/GPUOpen-Drivers/pal/archive/${_pal_commit}.tar.gz https://github.com/GPUOpen-Drivers/llvm/archive/${_llvm_commit}.tar.gz https://github.com/GPUOpen-Drivers/wsa/archive/${_wsa_commit}.tar.gz" -checksum="5ad6dfbad5ade7cf26c81468b9c890c07e0d14e93edf356a349952f323dafd26 - 31a865fd53e1e1a07f73cdeb7413772b68d6fe973c3bc76aa1cc195eddcccc82 - 6bf4653d687f62ca7819b52903c20a201e59b55acb144c3a5068481f7c03de1c - c3e04b461b7410136f2c58ec7e53692a715335ec57f3aae7a7bdcf45f107edaf +checksum="79d6cef1a92b6b252f62887d2901867e3109e91edc8580950b93a4a7dec28ed4 + 759c446bd122fbc7a67baef4dd7c1d56b05f40cfb85e850a35453daf1fc0e04c + 46af1b7c8ee8f342e696a1213277118435eaf5b15be234cbaf2eae7c312b1372 + 99f41271fa2dd4a04d5b22db1adffca79eaefacd353e5f542fe5285db0485df2 9f17bbf37b92640589ba017030ca8fd569226325e6346aa1a75cceb0010c2301 b23e9453fa7b14bb13157fb645936ec74b18b12cdef301758452a92b23f27705" +nocross=yes post_extract() { mv ${wrksrc}/AMDVLK-v-${version} ${wrksrc}/AMDVLK @@ -41,6 +42,15 @@ post_extract() { mv ${wrksrc}/wsa-${_wsa_commit} ${wrksrc}/wsa } +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() { case $XBPS_TARGET_MACHINE in i686*|mips*|arm*|ppc|ppc-musl)