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