wok-current view spirv-llvm-translator/receipt @ rev 25728
Merge wok for both arch and few updates
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Dec 05 08:39:45 2024 +0000 (2 weeks ago) |
parents | 4fd464abe902 |
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 HOST_ARCH="i486 x86_64"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://github.com/llvm/llvm-project/releases 2>/dev/null | \
22 sed '/-rc/d;/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 mkdir build && cd build
29 cmake \
30 -DCMAKE_INSTALL_PREFIX=/usr \
31 -DBUILD_SHARED_LIBS=ON \
32 -DLLVM_INCLUDE_TESTS=OFF \
33 -DCMAKE_BUILD_TYPE=Release \
34 -DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=/usr/include/spirv \
35 -G 'Unix Makefiles' \
36 -Wno-dev \
37 ..
39 make
40 make llvm-spirv
41 make install DESTDIR=$install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/bin
48 cp -a $src/build/tools/llvm-spirv/llvm-spirv $fs/usr/bin
49 cp -a $install/usr/lib $fs/usr
50 #cp -a $install/usr/include $fs/usr
51 }