wok-current annotate 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 |
rev | line source |
---|---|
shann@25710 | 1 # SliTaz package receipt. |
shann@25710 | 2 |
shann@25710 | 3 PACKAGE="libclc" |
shann@25710 | 4 VERSION="13.0.0" |
shann@25710 | 5 CATEGORY="development" |
shann@25710 | 6 SHORT_DESC="OpenCL 1.1 libraries" |
shann@25710 | 7 MAINTAINER="maintainer@slitaz.org" |
shann@25710 | 8 LICENSE="MIT" |
shann@25710 | 9 WEB_SITE="https://libclc.llvm.org/" |
shann@25710 | 10 TARBALL="$PACKAGE-$VERSION.src.tar.xz" |
shann@25710 | 11 WGET_URL="https://github.com/llvm/llvm-project/releases/download/llvmorg-$VERSION/$TARBALL" |
shann@25710 | 12 |
shann@25710 | 13 BUILD_DEPENDS="clang spirv-llvm-translator cmake" |
shann@25710 | 14 |
shann@25710 | 15 # Rules to configure and make the package. |
shann@25710 | 16 compile_rules() |
shann@25710 | 17 { |
shann@25710 | 18 mkdir build && cd build |
shann@25710 | 19 CC=gcc CXX=g++ \ |
shann@25710 | 20 cmake \ |
shann@25710 | 21 -DCMAKE_INSTALL_PREFIX=/usr \ |
shann@25710 | 22 -DCMAKE_BUILD_TYPE=Release \ |
shann@25710 | 23 -DCMAKE_INSTALL_DATADIR=/usr/lib \ |
shann@25710 | 24 -Wno-dev \ |
shann@25710 | 25 .. |
shann@25710 | 26 |
shann@25710 | 27 make |
shann@25710 | 28 make DESTDIR=$install install |
shann@25710 | 29 } |
shann@25710 | 30 |
shann@25710 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
shann@25710 | 32 genpkg_rules() |
shann@25710 | 33 { |
shann@25710 | 34 mkdir -p $fs/usr/lib |
shann@25710 | 35 cp -a $install/usr/include $fs/usr |
shann@25710 | 36 cp -a $install/usr/lib/clc $fs/usr/lib |
shann@25710 | 37 cp -a $install/usr/lib/pkgconfig $fs/usr/lib |
shann@25710 | 38 } |