wok-current view llvm/receipt @ rev 25634

Mass update, new toolchain gcc 8.3.0, glibc 2.28.0
author Stanislas Leduc <shann@slitaz.org>
date Sun Jan 14 08:12:37 2024 +0000 (12 months ago)
parents 73f36875e5a7
children 4fd464abe902
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 -DCMAKE_BUILD_TYPE=MinSizeRel \
36 -DLLVM_BUILD_LLVM_DYLIB=ON \
37 -DLLVM_LINK_LLVM_DYLIB=ON \
38 -DLLVM_BUILD_TESTS=OFF \
39 -Wno-dev \
40 -G Ninja \
41 ..
43 ninja
44 DESTDIR=$install ninja install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr
51 cp -a $install/usr/bin $fs/usr
52 cp -a $install/usr/lib $fs/usr
53 cp -a $install/usr/include $fs/usr
54 }