wok-current annotate spirv-llvm-translator/receipt @ rev 25710

Build full mesa features and split it
author Stanislas Leduc <shann@slitaz.org>
date Mon Jun 10 19:04:54 2024 +0000 (6 months ago)
parents
children 5926178cd6fa
rev   line source
shann@25710 1 # SliTaz package receipt.
shann@25710 2
shann@25710 3 PACKAGE="spirv-llvm-translator"
shann@25710 4 VERSION="13.0.1"
shann@25710 5 CATEGORY="development"
shann@25710 6 SHORT_DESC="LLVM/SPIR-V Bi-Directional Translator"
shann@25710 7 MAINTAINER="maintainer@slitaz.org"
shann@25710 8 LICENSE="MIT"
shann@25710 9 WEB_SITE="https://github.com/KhronosGroup/SPIRV-LLVM-Translator/"
shann@25710 10 TARBALL="$PACKAGE-$VERSION.tar.xz"
shann@25710 11 WGET_URL="https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/refs/tags/v$VERSION.tar.gz"
shann@25710 12
shann@25710 13 DEPENDS="llvm"
shann@25710 14 BUILD_DEPENDS="cmake llvm spirv-headers"
shann@25710 15
shann@25710 16 # What is the latest version available today?
shann@25710 17 current_version()
shann@25710 18 {
shann@25710 19 wget -O - https://github.com/llvm/llvm-project/releases 2>/dev/null | \
shann@25710 20 sed '/-rc/d;/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q'
shann@25710 21 }
shann@25710 22
shann@25710 23 # Rules to configure and make the package.
shann@25710 24 compile_rules()
shann@25710 25 {
shann@25710 26 mkdir build && cd build
shann@25710 27 cmake \
shann@25710 28 -DCMAKE_INSTALL_PREFIX=/usr \
shann@25710 29 -DBUILD_SHARED_LIBS=ON \
shann@25710 30 -DLLVM_INCLUDE_TESTS=OFF \
shann@25710 31 -DCMAKE_BUILD_TYPE=Release \
shann@25710 32 -DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=/usr/include/spirv \
shann@25710 33 -G 'Unix Makefiles' \
shann@25710 34 -Wno-dev \
shann@25710 35 ..
shann@25710 36
shann@25710 37 make
shann@25710 38 make llvm-spirv
shann@25710 39 make install DESTDIR=$install
shann@25710 40 }
shann@25710 41
shann@25710 42 # Rules to gen a SliTaz package suitable for Tazpkg.
shann@25710 43 genpkg_rules()
shann@25710 44 {
shann@25710 45 mkdir -p $fs/usr/bin
shann@25710 46 cp -a $src/build/tools/llvm-spirv/llvm-spirv $fs/usr/bin
shann@25710 47 cp -a $install/usr/lib $fs/usr
shann@25710 48 #cp -a $install/usr/include $fs/usr
shann@25710 49 }