wok-next view llvm/receipt @ rev 20184
Up llvm (5.0.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Nov 02 17:11:17 2017 +0100 (2017-11-02) |
parents | 31b0fa204936 |
children | ccb92f8ccaf6 |
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 reusable compiler and toolchain technologies"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="http://llvm.org/"
11 TARBALL="$PACKAGE-$VERSION.src.tar.xz"
12 WGET_URL="${WEB_SITE}releases/$VERSION/$TARBALL"
14 BUILD_DEPENDS="cmake zlib-dev libffi-dev python"
15 SPLIT="llvm llvm-dev llvm-libs"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 mkdir build && cd build &&
21 CC=gcc CXX=g++ \
22 cmake \
23 -DCMAKE_INSTALL_PREFIX=/usr \
24 -DLLVM_ENABLE_FFI=ON \
25 -DCMAKE_BUILD_TYPE=Release \
26 -DBUILD_SHARED_LIBS=ON \
27 -DLLVM_TARGETS_TO_BUILD="host;AMDGPU" \
28 -Wno-dev .. &&
29 make &&
30 make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 case $PACKAGE in
37 llvm)
38 DEPENDS="libffi gcc-lib-base llvm-libs"
39 copy bin/
40 ;;
41 llvm-dev)
42 CAT="development|LLVM (Low Level Virtual Machine): development files"
43 DEPENDS="llvm"
44 copy include/ cmake/
45 ;;
46 llvm-libs)
47 CAT="libs|LLVM (Low Level Virtual Machine): libraries"
48 DEPENDS="libffi gcc-lib-base llvm-libs"
49 copy *.so*
50 ;;
51 esac
52 }