wok-next diff llvm/receipt @ rev 21247

updated cyrus-imapd (2.4.17 -> 3.0.12)
author Hans-G?nter Theisgen
date Thu Dec 05 16:28:27 2019 +0100 (2019-12-05)
parents d5aab818505e
children
line diff
     1.1 --- a/llvm/receipt	Fri Nov 02 14:15:08 2018 +0200
     1.2 +++ b/llvm/receipt	Thu Dec 05 16:28:27 2019 +0100
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6  PACKAGE="llvm"
     1.7 -VERSION="5.0.0"
     1.8 +VERSION="7.0.0"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="LLVM (Low Level Virtual Machine): collection of modular and \
    1.11  reusable compiler and toolchain technologies"
    1.12 @@ -11,12 +11,15 @@
    1.13  
    1.14  TARBALL="$PACKAGE-$VERSION.src.tar.xz"
    1.15  WGET_URL="${WEB_SITE}releases/$VERSION/$TARBALL"
    1.16 +TARBALL_SHA1="27503a22614626e935a05b609ab4211be72cd78b"
    1.17  
    1.18 -BUILD_DEPENDS="cmake zlib-dev libffi-dev python"
    1.19 -SPLIT="$PACKAGE-dev $PACKAGE-libs"
    1.20 +BUILD_DEPENDS="cmake zlib-dev libffi-dev ninja"
    1.21 +SPLIT="libllvm $PACKAGE $PACKAGE-dev"
    1.22 +
    1.23 +DEPENDS_std="libffi libllvm"
    1.24 +DEPENDS_libllvm="libffi"
    1.25  
    1.26  compile_rules() {
    1.27 -#	fix math
    1.28  	mkdir build
    1.29  	cd    build
    1.30  
    1.31 @@ -25,28 +28,14 @@
    1.32  		-DCMAKE_INSTALL_PREFIX=/usr \
    1.33  		-DLLVM_ENABLE_FFI=ON \
    1.34  		-DCMAKE_BUILD_TYPE=Release \
    1.35 -		-DBUILD_SHARED_LIBS=ON \
    1.36 -		-DLLVM_TARGETS_TO_BUILD="host;AMDGPU" \
    1.37 +		-DLLVM_BUILD_LLVM_DYLIB=ON \
    1.38 +		-DLLVM_LINK_LLVM_DYLIB=ON \
    1.39 +		-DLLVM_TARGETS_TO_BUILD="host;AMDGPU;BPF" \
    1.40 +		-DLLVM_BUILD_TESTS=ON \
    1.41  		-Wno-dev \
    1.42 +		-G Ninja \
    1.43  		.. &&
    1.44 -	make &&
    1.45 -	make install
    1.46 +	ninja install
    1.47  }
    1.48  
    1.49 -genpkg_rules() {
    1.50 -	case $PACKAGE in
    1.51 -		llvm)
    1.52 -			DEPENDS="libffi gcc-lib-base llvm-libs"
    1.53 -			copy bin/
    1.54 -			;;
    1.55 -		llvm-dev)
    1.56 -			DEPENDS="llvm"
    1.57 -			copy include/ cmake/
    1.58 -			;;
    1.59 -		llvm-libs)
    1.60 -			CAT="libs|libraries"
    1.61 -			DEPENDS="libffi gcc-lib-base"
    1.62 -			copy *.so*
    1.63 -			;;
    1.64 -	esac
    1.65 -}
    1.66 +PROVIDE_libllvm="llvm-libs"