wok-next view llvm/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | d13588435e1f |
children | d01953cd12ed |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="llvm"
4 VERSION="5.0.0"
5 CATEGORY="development"
6 SHORT_DESC="LLVM (Low Level Virtual Machine): collection of modular and \
7 reusable compiler and toolchain technologies"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="MIT"
10 WEB_SITE="http://llvm.org/"
12 TARBALL="$PACKAGE-$VERSION.src.tar.xz"
13 WGET_URL="${WEB_SITE}releases/$VERSION/$TARBALL"
15 BUILD_DEPENDS="cmake zlib-dev libffi-dev python"
16 SPLIT="$PACKAGE-dev $PACKAGE-libs"
18 compile_rules() {
19 # fix math
20 mkdir build
21 cd build
23 CC=gcc CXX=g++ \
24 cmake \
25 -DCMAKE_INSTALL_PREFIX=/usr \
26 -DLLVM_ENABLE_FFI=ON \
27 -DCMAKE_BUILD_TYPE=Release \
28 -DBUILD_SHARED_LIBS=ON \
29 -DLLVM_TARGETS_TO_BUILD="host;AMDGPU" \
30 -Wno-dev \
31 .. &&
32 make &&
33 make install
34 }
36 genpkg_rules() {
37 case $PACKAGE in
38 llvm)
39 DEPENDS="libffi gcc-lib-base llvm-libs"
40 copy bin/
41 ;;
42 llvm-dev)
43 DEPENDS="llvm"
44 copy include/ cmake/
45 ;;
46 llvm-libs)
47 CAT="libs|libraries"
48 DEPENDS="libffi gcc-lib-base"
49 copy *.so*
50 ;;
51 esac
52 }