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