1 # Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
6 pkgdesc="High-level loop and data-locality optimizer and optimization infrastructure for LLVM"
8 url="https://polly.llvm.org/"
9 license=('custom:Apache 2.0 with LLVM Exception')
11 makedepends=('llvm' 'cmake' 'ninja' 'python-sphinx')
12 _source_base=https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver
13 source=($_source_base/polly-$pkgver.src.tar.xz{,.sig}
14 $_source_base/llvm-$pkgver.src.tar.xz{,.sig}
15 $_source_base/cmake-$pkgver.src.tar.xz{,.sig})
16 sha256sums=('1053610cace401c0b4e6d430d441277b0283dd4112581e2acc90e174d3192819'
18 '4ad8b2cc8003c86d0078d15d987d84e3a739f24aae9033865c027abae93ee7a4'
20 '8986f29b634fdaa9862eedda78513969fe9788301c9f2d938f4c10a3e7a3e7ea'
22 validpgpkeys=('474E22316ABF4785A88C6E8EA2C794A986419D8A' # Tom Stellard <tstellar@redhat.com>
23 'D574BD5D1D0E98895E3BF90044F2485E45D59042') # Tobias Hieta <tobias@hieta.se>
26 mv cmake{-$pkgver.src,}
32 cd polly-$pkgver.src/build
34 CFLAGS+=' -ffat-lto-objects'
35 CXXFLAGS+=' -ffat-lto-objects'
39 -DCMAKE_BUILD_TYPE=Release
40 -DCMAKE_INSTALL_DOCDIR=share/doc
41 -DCMAKE_INSTALL_PREFIX=/usr
43 -DLLVM_BUILD_MAIN_SRC_DIR="$srcdir/llvm-$pkgver.src"
45 -DLLVM_ENABLE_SPHINX=ON
46 -DLLVM_EXTERNAL_LIT=/usr/bin/lit
47 -DLLVM_LINK_LLVM_DYLIB=ON
48 -DSPHINX_WARNINGS_AS_ERRORS=OFF
50 cmake .. "${cmake_args[@]}"
55 cd polly-$pkgver.src/build
60 cd polly-$pkgver.src/build
62 DESTDIR="$pkgdir" ninja install
63 install -Dm644 ../LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
65 # Remove documentation sources
66 rm -r "$pkgdir"/usr/share/doc/polly/html/{_sources,.buildinfo}
69 # vim:set ts=2 sw=2 et: