wok-next annotate llvm/receipt @ rev 21072
Update Xorg packages
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Dec 20 17:55:43 2018 +0200 (2018-12-20) |
parents | d5aab818505e |
children |
rev | line source |
---|---|
pascal@20181 | 1 # SliTaz package receipt v2. |
pascal@13784 | 2 |
pascal@13784 | 3 PACKAGE="llvm" |
al@21072 | 4 VERSION="7.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" |
al@21072 | 14 TARBALL_SHA1="27503a22614626e935a05b609ab4211be72cd78b" |
pascal@13784 | 15 |
al@21072 | 16 BUILD_DEPENDS="cmake zlib-dev libffi-dev ninja" |
al@21072 | 17 SPLIT="libllvm $PACKAGE $PACKAGE-dev" |
al@21072 | 18 |
al@21072 | 19 DEPENDS_std="libffi libllvm" |
al@21072 | 20 DEPENDS_libllvm="libffi" |
pascal@13784 | 21 |
al@20443 | 22 compile_rules() { |
al@20514 | 23 mkdir build |
al@20514 | 24 cd build |
al@20514 | 25 |
al@19643 | 26 CC=gcc CXX=g++ \ |
al@19643 | 27 cmake \ |
al@19643 | 28 -DCMAKE_INSTALL_PREFIX=/usr \ |
al@19643 | 29 -DLLVM_ENABLE_FFI=ON \ |
al@19643 | 30 -DCMAKE_BUILD_TYPE=Release \ |
al@21072 | 31 -DLLVM_BUILD_LLVM_DYLIB=ON \ |
al@21072 | 32 -DLLVM_LINK_LLVM_DYLIB=ON \ |
al@21072 | 33 -DLLVM_TARGETS_TO_BUILD="host;AMDGPU;BPF" \ |
al@21072 | 34 -DLLVM_BUILD_TESTS=ON \ |
al@20514 | 35 -Wno-dev \ |
al@21072 | 36 -G Ninja \ |
al@20514 | 37 .. && |
al@21072 | 38 ninja install |
pascal@13784 | 39 } |
pascal@13784 | 40 |
al@21072 | 41 PROVIDE_libllvm="llvm-libs" |