wok-current rev 25753

Fix lib path for clinfo and patch libclc for AMD gfx9 / gfx10
author Stanislas Leduc <shann@slitaz.org>
date Wed Feb 26 14:28:42 2025 +0000 (7 months ago)
parents e08bb6f7b4b5
children c10a96c0fd2b
files clinfo/receipt libclc/receipt
line diff
     1.1 --- a/clinfo/receipt	Thu Feb 20 12:41:26 2025 +0000
     1.2 +++ b/clinfo/receipt	Wed Feb 26 14:28:42 2025 +0000
     1.3 @@ -17,13 +17,13 @@
     1.4  # Rules to configure and make the package.
     1.5  compile_rules()
     1.6  {
     1.7 -	make PREFIX=/usr &&
     1.8 -	make PREFIX=/usr install
     1.9 +	make &&
    1.10 +	make install
    1.11  }
    1.12  
    1.13  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.14  genpkg_rules()
    1.15  {
    1.16 -	mkdir -p $fs/usr
    1.17 -	cp -a $install/usr/bin $fs/usr
    1.18 +	mkdir -p $fs/usr/bin
    1.19 +	cp -a $src/clinfo $fs/usr/bin
    1.20  }
     2.1 --- a/libclc/receipt	Thu Feb 20 12:41:26 2025 +0000
     2.2 +++ b/libclc/receipt	Wed Feb 26 14:28:42 2025 +0000
     2.3 @@ -17,12 +17,18 @@
     2.4  # Rules to configure and make the package.
     2.5  compile_rules()
     2.6  {
     2.7 +
     2.8 +	# Patch to add AMD gfx9 and gfx10
     2.9 +	# See https://bugs.llvm.org/show_bug.cgi?id=44841
    2.10 +	# and https://github.com/llvm/llvm-project/issues/52665
    2.11 +	patch -p1 < $stuff/libclc-add-missing-AMD-gfx9-and-gfx10-symlinks.patch
    2.12 +
    2.13          mkdir build && cd build
    2.14          CC=gcc CXX=g++ \
    2.15          cmake \
    2.16              -DCMAKE_INSTALL_PREFIX=/usr \
    2.17              -DCMAKE_BUILD_TYPE=Release \
    2.18 -	    -DCMAKE_INSTALL_DATADIR=/usr/lib \
    2.19 +	    -DCMAKE_INSTALL_DATADIR=lib \
    2.20              -Wno-dev \
    2.21          ..
    2.22