wok-next view llvm/receipt @ rev 19715

Fix building: pciutils, pcmanfm-legacy, arj
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat May 13 17:25:31 2017 +0300 (2017-05-13)
parents c3bfbad43b02
children f463de72afe3
line source
1 # SliTaz package receipt.
3 PACKAGE="llvm"
4 VERSION="3.9.1"
5 CATEGORY="development"
6 SHORT_DESC="LLVM (Low Level Virtual Machine): collection of modular and reusable compiler and toolchain technologies"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="http://llvm.org/"
11 TARBALL="$PACKAGE-$VERSION.src.tar.xz"
12 WGET_URL="${WEB_SITE}releases/$VERSION/$TARBALL"
14 DEPENDS="libffi gcc-lib-base llvm-libs"
15 BUILD_DEPENDS="cmake zlib-dev libffi-dev python"
16 SPLIT="llvm-libs"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 # export LDFLAGS="$LDFLAGS -Wl,-fuse-ld=gold"
22 # ln -f $(readlink -f $(which ld.gold)) $(readlink -f $(which ld))
24 mkdir build && cd build &&
25 CC=gcc CXX=g++ \
26 cmake \
27 -DCMAKE_INSTALL_PREFIX=/usr \
28 -DLLVM_ENABLE_FFI=ON \
29 -DCMAKE_BUILD_TYPE=Release \
30 -DBUILD_SHARED_LIBS=ON \
31 -DLLVM_TARGETS_TO_BUILD="host;AMDGPU" \
32 -Wno-dev .. &&
33 make &&
34 make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cook_copy_folders bin
41 }