wok-next view llvm/receipt @ rev 19819
gstreamer0: update for the new bison version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 29 12:09:11 2017 +0200 (2017-07-29) |
parents | 0994d769f208 |
children | 31b0fa204936 |
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 copy bin/
41 }