wok-current view clang/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="clang"
4 VERSION="13.0.0"
5 CATEGORY="development"
6 SHORT_DESC="C language family frontend for LLVM."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://clang.llvm.org/"
10 TARBALL="$PACKAGE-$VERSION.src.tar.xz"
11 WGET_URL="https://github.com/llvm/llvm-project/releases/download/llvmorg-$VERSION/$TARBALL"
13 DEPENDS="llvm-lib"
14 BUILD_DEPENDS="llvm ninja cmake"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://github.com/llvm/llvm-project/releases 2>/dev/null | \
20 sed '/-rc/d;/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 # Use MinSizeRel instead Release to reduce size
28 mkdir build && cd build
29 CC=gcc CXX=g++ \
30 cmake \
31 -DCMAKE_INSTALL_PREFIX=/usr \
32 -DCMAKE_BUILD_TYPE=MinSizeRel \
33 -DCLANG_LINK_CLANG_DYLIB=ON \
34 -DLLVM_ENABLE_RTTI=ON \
35 -DLLVM_LINK_LLVM_DYLIB=ON \
36 -Wno-dev \
37 -G Ninja \
38 ..
40 ninja
41 DESTDIR=$install ninja install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/lib
48 cp -a $install/usr/bin $fs/usr
49 cp -a $install/usr/lib/*.so* $fs/usr/lib
50 cp -a $install/usr/lib/clang $fs/usr/lib
51 cp -a $install/usr/lib $fs/usr
52 cp -a $install/usr/include $fs/usr
53 }