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