wok-next view clang/receipt @ rev 21493
updated aria2 (1.34.0 -> 1.35.0)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jun 18 21:19:09 2020 +0100 (2020-06-18) |
parents | 8b5b2a6d07b8 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="clang"
4 VERSION="5.0.0" # follow llvm
5 CATEGORY="development"
6 SHORT_DESC="C language family frontend for LLVM"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="custom"
9 WEB_SITE="https://clang.llvm.org/"
11 TARBALL="cfe-$VERSION.src.tar.xz"
12 WGET_URL="https://releases.llvm.org/$VERSION/$TARBALL"
14 BUILD_DEPENDS="cmake llvm-dev z3-dev"
15 SPLIT="$PACKAGE-libs $PACKAGE-analyzer $PACKAGE $PACKAGE-dev"
17 compile_rules() {
18 mkdir build
19 cd build
21 cmake \
22 -Wno-dev \
23 -DCMAKE_BUILD_TYPE=MinSizeRel \
24 -DCMAKE_C_FLAGS_MINSIZEREL_INIT="$CFLAGS" \
25 -DCMAKE_CXX_FLAGS_MINSIZEREL_INIT="$CXXFLAGS" \
26 -DCMAKE_EXE_LINKER_FLAGS_MINSIZEREL_INIT="$LDFLAGS" \
27 -DCMAKE_INSTALL_PREFIX=/usr \
28 -DCMAKE_VERBOSE_MAKEFILE=OFF \
29 .. &&
30 make clang-tblgen &&
31 make &&
32 make DESTDIR=$install install
33 }
35 genpkg_rules() {
36 case $PACKAGE in
37 clang-libs)
38 copy *.so*
39 CAT="development|shared libs"
40 DEPENDS="llvm-libs"
41 ;;
42 clang-analyzer)
43 copy bin/scan-* libexec/*-analyzer share/scan-*
44 CAT="development|analysis framework"
45 DEPENDS="python"
46 ;;
47 clang)
48 copy @std @rm
49 DEPENDS="clang-libs llvm-libs python clang-analyzer"
50 ;;
51 *-dev)
52 copy @dev
53 ;;
54 esac
55 }