wok-next annotate llvm/receipt @ rev 20137
mariadb: receipt v2
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Oct 31 21:42:04 2017 +0100 (2017-10-31) |
parents | 0994d769f208 |
children | 31b0fa204936 |
rev | line source |
---|---|
pascal@13784 | 1 # SliTaz package receipt. |
pascal@13784 | 2 |
pascal@13784 | 3 PACKAGE="llvm" |
al@19643 | 4 VERSION="3.9.1" |
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@19645 | 14 DEPENDS="libffi gcc-lib-base llvm-libs" |
al@19643 | 15 BUILD_DEPENDS="cmake zlib-dev libffi-dev python" |
al@19645 | 16 SPLIT="llvm-libs" |
pascal@13784 | 17 |
pascal@13784 | 18 # Rules to configure and make the package. |
pascal@13784 | 19 compile_rules() |
pascal@13784 | 20 { |
al@19643 | 21 # export LDFLAGS="$LDFLAGS -Wl,-fuse-ld=gold" |
al@19643 | 22 # ln -f $(readlink -f $(which ld.gold)) $(readlink -f $(which ld)) |
al@19643 | 23 |
al@19643 | 24 mkdir build && cd build && |
al@19643 | 25 CC=gcc CXX=g++ \ |
al@19643 | 26 cmake \ |
al@19643 | 27 -DCMAKE_INSTALL_PREFIX=/usr \ |
al@19643 | 28 -DLLVM_ENABLE_FFI=ON \ |
al@19643 | 29 -DCMAKE_BUILD_TYPE=Release \ |
al@19643 | 30 -DBUILD_SHARED_LIBS=ON \ |
al@19643 | 31 -DLLVM_TARGETS_TO_BUILD="host;AMDGPU" \ |
al@19643 | 32 -Wno-dev .. && |
al@19645 | 33 make && |
al@19643 | 34 make install |
pascal@13784 | 35 } |
pascal@13784 | 36 |
pascal@13784 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13784 | 38 genpkg_rules() |
pascal@13784 | 39 { |
al@19783 | 40 copy bin/ |
pascal@13784 | 41 } |