wok-next annotate 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 |
rev | line source |
---|---|
pascal@20181 | 1 # SliTaz package receipt v2. |
pascal@13784 | 2 |
pascal@13784 | 3 PACKAGE="llvm" |
pascal@20184 | 4 VERSION="5.0.0" |
pascal@13784 | 5 CATEGORY="development" |
al@19643 | 6 SHORT_DESC="LLVM (Low Level Virtual Machine): collection of modular and reusable compiler and toolchain technologies" |
pascal@13784 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15379 | 8 LICENSE="MIT" |
pascal@13784 | 9 WEB_SITE="http://llvm.org/" |
al@19643 | 10 |
al@19643 | 11 TARBALL="$PACKAGE-$VERSION.src.tar.xz" |
pascal@13785 | 12 WGET_URL="${WEB_SITE}releases/$VERSION/$TARBALL" |
pascal@13784 | 13 |
al@19643 | 14 BUILD_DEPENDS="cmake zlib-dev libffi-dev python" |
pascal@20184 | 15 SPLIT="llvm llvm-dev llvm-libs" |
pascal@13784 | 16 |
pascal@13784 | 17 # Rules to configure and make the package. |
pascal@13784 | 18 compile_rules() |
pascal@13784 | 19 { |
al@19643 | 20 mkdir build && cd build && |
al@19643 | 21 CC=gcc CXX=g++ \ |
al@19643 | 22 cmake \ |
al@19643 | 23 -DCMAKE_INSTALL_PREFIX=/usr \ |
al@19643 | 24 -DLLVM_ENABLE_FFI=ON \ |
al@19643 | 25 -DCMAKE_BUILD_TYPE=Release \ |
al@19643 | 26 -DBUILD_SHARED_LIBS=ON \ |
al@19643 | 27 -DLLVM_TARGETS_TO_BUILD="host;AMDGPU" \ |
al@19643 | 28 -Wno-dev .. && |
al@19645 | 29 make && |
al@19643 | 30 make install |
pascal@13784 | 31 } |
pascal@13784 | 32 |
pascal@13784 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13784 | 34 genpkg_rules() |
pascal@13784 | 35 { |
pascal@20181 | 36 case $PACKAGE in |
pascal@20181 | 37 llvm) |
pascal@20181 | 38 DEPENDS="libffi gcc-lib-base llvm-libs" |
pascal@20181 | 39 copy bin/ |
pascal@20181 | 40 ;; |
pascal@20181 | 41 llvm-dev) |
pascal@20181 | 42 CAT="development|LLVM (Low Level Virtual Machine): development files" |
pascal@20181 | 43 DEPENDS="llvm" |
pascal@20181 | 44 copy include/ cmake/ |
pascal@20181 | 45 ;; |
pascal@20181 | 46 llvm-libs) |
pascal@20181 | 47 CAT="libs|LLVM (Low Level Virtual Machine): libraries" |
pascal@20181 | 48 DEPENDS="libffi gcc-lib-base llvm-libs" |
pascal@20181 | 49 copy *.so* |
pascal@20181 | 50 ;; |
pascal@20181 | 51 esac |
pascal@13784 | 52 } |