wok-6.x view llvm/receipt @ rev 25122
Up apache (2.4.54)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 28 08:48:09 2022 +0000 (2022-06-28) |
parents | bcf7d6192b2d |
children | 73f36875e5a7 |
line source
1 # SliTaz package receipt.
3 PACKAGE="llvm"
4 VERSION="3.2"
5 CATEGORY="development"
6 SHORT_DESC="Modular compiler toolchain collection."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="http://llvm.org/"
10 TARBALL="$PACKAGE-$VERSION.src.tar.gz"
11 WGET_URL="${WEB_SITE}releases/$VERSION/$TARBALL"
13 DEPENDS="libffi gcc-lib-base"
14 BUILD_DEPENDS="libffi-dev libffi perl gcc"
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 ./configure CC=gcc CXX=g++ \
27 --prefix=/usr --sysconfdir=/etc \
28 --enable-libffi \
29 --enable-optimized \
30 --enable-shared \
31 --enable-targets=all \
32 --disable-assertions \
33 --disable-debug-runtime \
34 --disable-expensive-checks \
35 $CONFIGURE_ARGS &&
36 make && make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/lib $fs/usr
45 cp -a $install/usr/include $fs/usr
46 }