# HG changeset patch # User Stanislas Leduc # Date 1718050365 0 # Node ID 427d888cd171609eff4b16b3e4a72f0dd7a327d7 # Parent 4fd464abe902f698694e246448ef6c187403e831 Add miss polly diff -r 4fd464abe902 -r 427d888cd171 polly/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/polly/receipt Mon Jun 10 20:12:45 2024 +0000 @@ -0,0 +1,48 @@ +# SliTaz package receipt. + +PACKAGE="polly" +VERSION="13.0.0" +CATEGORY="development" +SHORT_DESC="High-level loop and data-locality optimizer." +MAINTAINER="maintainer@slitaz.org" +LICENSE="MIT" +WEB_SITE="https://polly.llvm.org/" +TARBALL="$PACKAGE-$VERSION.src.tar.xz" +WGET_URL="https://github.com/llvm/llvm-project/releases/download/llvmorg-$VERSION/$TARBALL" + +DEPENDS="llvm-lib" +BUILD_DEPENDS="llvm ninja cmake" + +# What is the latest version available today? +current_version() +{ + wget -O - https://github.com/llvm/llvm-project/releases 2>/dev/null | \ + sed '/-rc/d;/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q' +} + +# Rules to configure and make the package. +compile_rules() +{ + # Use MinSizeRel instead Release to reduce size + + mkdir build && cd build + CC=gcc CXX=g++ \ + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=MinSizeRel \ + -DLLVM_LINK_LLVM_DYLIB=ON \ + -Wno-dev \ + -G Ninja \ + .. + + ninja + DESTDIR=$install ninja install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/lib/*.so* $fs/usr/lib + cp -a $install/usr/include $fs/usr +}