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