wok-next rev 19643
Up llvm
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Feb 15 20:28:29 2017 +0200 (2017-02-15) |
parents | 364cb5b583b1 |
children | a20b099066a4 |
files | llvm/receipt |
line diff
1.1 --- a/llvm/receipt Wed Feb 15 19:42:20 2017 +0200 1.2 +++ b/llvm/receipt Wed Feb 15 20:28:29 2017 +0200 1.3 @@ -1,32 +1,36 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="llvm" 1.7 -VERSION="3.2" 1.8 +VERSION="3.9.1" 1.9 CATEGORY="development" 1.10 -SHORT_DESC="Modular compiler toolchain collection." 1.11 +SHORT_DESC="LLVM (Low Level Virtual Machine): collection of modular and reusable compiler and toolchain technologies" 1.12 MAINTAINER="pascal.bellard@slitaz.org" 1.13 LICENSE="MIT" 1.14 WEB_SITE="http://llvm.org/" 1.15 -TARBALL="$PACKAGE-$VERSION.src.tar.gz" 1.16 + 1.17 +TARBALL="$PACKAGE-$VERSION.src.tar.xz" 1.18 WGET_URL="${WEB_SITE}releases/$VERSION/$TARBALL" 1.19 1.20 DEPENDS="libffi gcc-lib-base" 1.21 -BUILD_DEPENDS="libffi-dev libffi perl gcc" 1.22 +BUILD_DEPENDS="cmake zlib-dev libffi-dev python" 1.23 1.24 # Rules to configure and make the package. 1.25 compile_rules() 1.26 { 1.27 - ./configure CC=gcc CXX=g++ \ 1.28 - --prefix=/usr --sysconfdir=/etc \ 1.29 - --enable-libffi \ 1.30 - --enable-optimized \ 1.31 - --enable-shared \ 1.32 - --enable-targets=all \ 1.33 - --disable-assertions \ 1.34 - --disable-debug-runtime \ 1.35 - --disable-expensive-checks \ 1.36 - $CONFIGURE_ARGS && 1.37 - make && make DESTDIR=$DESTDIR install 1.38 +# export LDFLAGS="$LDFLAGS -Wl,-fuse-ld=gold" 1.39 +# ln -f $(readlink -f $(which ld.gold)) $(readlink -f $(which ld)) 1.40 + 1.41 + mkdir build && cd build && 1.42 + CC=gcc CXX=g++ \ 1.43 + cmake \ 1.44 + -DCMAKE_INSTALL_PREFIX=/usr \ 1.45 + -DLLVM_ENABLE_FFI=ON \ 1.46 + -DCMAKE_BUILD_TYPE=Release \ 1.47 + -DBUILD_SHARED_LIBS=ON \ 1.48 + -DLLVM_TARGETS_TO_BUILD="host;AMDGPU" \ 1.49 + -Wno-dev .. && 1.50 + make -j1 && 1.51 + make install 1.52 } 1.53 1.54 # Rules to gen a SliTaz package suitable for Tazpkg.