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