SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libclc"

# SliTaz package receipt.

PACKAGE="libclc"
VERSION="13.0.0"
CATEGORY="development"
SHORT_DESC="OpenCL 1.1 libraries"
MAINTAINER="maintainer@slitaz.org"
LICENSE="MIT"
WEB_SITE="https://libclc.llvm.org/"
TARBALL="$PACKAGE-$VERSION.src.tar.xz"
WGET_URL="https://github.com/llvm/llvm-project/releases/download/llvmorg-$VERSION/$TARBALL"

BUILD_DEPENDS="clang spirv-llvm-translator cmake"

HOST_ARCH="i486 x86_64"

# Rules to configure and make the package.
compile_rules()
{

    # Patch to add AMD gfx9 and gfx10
    # See https://bugs.llvm.org/show_bug.cgi?id=44841
    # and https://github.com/llvm/llvm-project/issues/52665
    patch -p1 < $stuff/libclc-add-missing-AMD-gfx9-and-gfx10-symlinks.patch

        mkdir build && cd build
        CC=gcc CXX=g++ \
        cmake \
            -DCMAKE_INSTALL_PREFIX=/usr \
            -DCMAKE_BUILD_TYPE=Release \
        -DLIB_SUFFIX="" \
            -Wno-dev \
        ..

    make
    make DESTDIR=$install install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
        mkdir -p $fs/usr/share
    cp -a $install/usr/share/clc          $fs/usr/share
}
6088 packages and 256128 files in current database (Wed Mar 5 09:18:31 2025)