wok-next annotate llvm/receipt @ rev 20443

The rest of my "home work" for update many packages (up to Xorg, GTK and Openbox) for Next and mainly for Next64. Since this point this repository is open for commits. Many errors are expected due to harfbuzz-freetype dependency loop...
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Feb 24 16:17:33 2018 +0200 (2018-02-24)
parents ccb92f8ccaf6
children 6477d7f70481
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"
al@20207 15 SPLIT="llvm-dev llvm-libs"
pascal@13784 16
al@20443 17 compile_rules() {
al@19643 18 mkdir build && cd build &&
al@19643 19 CC=gcc CXX=g++ \
al@19643 20 cmake \
al@19643 21 -DCMAKE_INSTALL_PREFIX=/usr \
al@19643 22 -DLLVM_ENABLE_FFI=ON \
al@19643 23 -DCMAKE_BUILD_TYPE=Release \
al@19643 24 -DBUILD_SHARED_LIBS=ON \
al@19643 25 -DLLVM_TARGETS_TO_BUILD="host;AMDGPU" \
al@19643 26 -Wno-dev .. &&
al@19645 27 make &&
al@19643 28 make install
pascal@13784 29 }
pascal@13784 30
al@20443 31 genpkg_rules() {
pascal@20181 32 case $PACKAGE in
al@20443 33 llvm)
al@20443 34 DEPENDS="libffi gcc-lib-base llvm-libs"
al@20443 35 copy bin/
al@20443 36 ;;
al@20443 37 llvm-dev)
al@20443 38 DEPENDS="llvm"
al@20443 39 copy include/ cmake/
al@20443 40 ;;
al@20443 41 llvm-libs)
al@20443 42 CAT="libs|libraries"
al@20443 43 DEPENDS="libffi gcc-lib-base"
al@20443 44 copy *.so*
al@20443 45 ;;
pascal@20181 46 esac
pascal@13784 47 }