wok-next view llvm/receipt @ rev 20801
Add icons.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Jun 12 02:01:49 2018 +0300 (2018-06-12) |
parents | 6477d7f70481 |
children | d5aab818505e |
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="llvm-dev llvm-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 }