wok-current diff libclc/receipt @ rev 25710

Build full mesa features and split it
author Stanislas Leduc <shann@slitaz.org>
date Mon Jun 10 19:04:54 2024 +0000 (5 months ago)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libclc/receipt	Mon Jun 10 19:04:54 2024 +0000
     1.3 @@ -0,0 +1,38 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="libclc"
     1.7 +VERSION="13.0.0"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="OpenCL 1.1 libraries"
    1.10 +MAINTAINER="maintainer@slitaz.org"
    1.11 +LICENSE="MIT"
    1.12 +WEB_SITE="https://libclc.llvm.org/"
    1.13 +TARBALL="$PACKAGE-$VERSION.src.tar.xz"
    1.14 +WGET_URL="https://github.com/llvm/llvm-project/releases/download/llvmorg-$VERSION/$TARBALL"
    1.15 +
    1.16 +BUILD_DEPENDS="clang spirv-llvm-translator cmake"
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +compile_rules()
    1.20 +{
    1.21 +        mkdir build && cd build
    1.22 +        CC=gcc CXX=g++ \
    1.23 +        cmake \
    1.24 +            -DCMAKE_INSTALL_PREFIX=/usr \
    1.25 +            -DCMAKE_BUILD_TYPE=Release \
    1.26 +	    -DCMAKE_INSTALL_DATADIR=/usr/lib \
    1.27 +            -Wno-dev \
    1.28 +        ..
    1.29 +
    1.30 +	make
    1.31 +	make DESTDIR=$install install
    1.32 +}
    1.33 +
    1.34 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.35 +genpkg_rules()
    1.36 +{
    1.37 +        mkdir -p $fs/usr/lib
    1.38 +	cp -a $install/usr/include          $fs/usr
    1.39 +	cp -a $install/usr/lib/clc          $fs/usr/lib
    1.40 +        cp -a $install/usr/lib/pkgconfig    $fs/usr/lib
    1.41 +}