wok-current rev 25711

Add miss polly
author Stanislas Leduc <shann@slitaz.org>
date Mon Jun 10 20:12:45 2024 +0000 (5 months ago)
parents 4fd464abe902
children 4f280129f9f2
files polly/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/polly/receipt	Mon Jun 10 20:12:45 2024 +0000
     1.3 @@ -0,0 +1,48 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="polly"
     1.7 +VERSION="13.0.0"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="High-level loop and data-locality optimizer."
    1.10 +MAINTAINER="maintainer@slitaz.org"
    1.11 +LICENSE="MIT"
    1.12 +WEB_SITE="https://polly.llvm.org/"
    1.13 +TARBALL="$PACKAGE-$VERSION.src.tar.xz"
    1.14 +WGET_URL="https://github.com/llvm/llvm-project/releases/download/llvmorg-$VERSION/$TARBALL"
    1.15 +
    1.16 +DEPENDS="llvm-lib"
    1.17 +BUILD_DEPENDS="llvm ninja cmake"
    1.18 +
    1.19 +# What is the latest version available today?
    1.20 +current_version()
    1.21 +{
    1.22 +	wget -O - https://github.com/llvm/llvm-project/releases 2>/dev/null | \
    1.23 +	sed '/-rc/d;/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q'
    1.24 +}
    1.25 +
    1.26 +# Rules to configure and make the package.
    1.27 +compile_rules()
    1.28 +{
    1.29 +	# Use MinSizeRel instead Release to reduce size
    1.30 +
    1.31 +	mkdir build && cd build
    1.32 +	CC=gcc CXX=g++ \
    1.33 +	cmake \
    1.34 +	    -DCMAKE_INSTALL_PREFIX=/usr \
    1.35 +	    -DCMAKE_BUILD_TYPE=MinSizeRel \
    1.36 +	    -DLLVM_LINK_LLVM_DYLIB=ON \
    1.37 +	    -Wno-dev \
    1.38 +	    -G Ninja \
    1.39 +	..
    1.40 +
    1.41 +	ninja
    1.42 +	DESTDIR=$install ninja install
    1.43 +}
    1.44 +
    1.45 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.46 +genpkg_rules()
    1.47 +{
    1.48 +	mkdir -p $fs/usr/lib
    1.49 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.50 +	cp -a $install/usr/include   $fs/usr
    1.51 +}