libclcş
This commit is contained in:
1 parent
9a46441074
commit
ca1a6ad0c6
4 files changed
+147
No files matched your search
@@ -0,0 +1,33 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
name='libclc'
|
||||||
|
release='1'
|
||||||
|
version='15.0.6'
|
||||||
|
url='https://libclc.llvm.org/'
|
||||||
|
description='Open source implementation of the library requirements of the OpenCL C programming language'
|
||||||
|
email='aliriza.keskin@pardus.org.tr'
|
||||||
|
maintainer='aliriza'
|
||||||
|
license=('GPLv3')
|
||||||
|
source=("https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/libclc-$version.src.tar.xz")
|
||||||
|
depends=(spirv-llvm-translator)
|
||||||
|
makedepends=()
|
||||||
|
md5sums=('5fd8548b294168c8fb55839bb16cccb3')
|
||||||
|
group=()
|
||||||
|
uses=()
|
||||||
|
arch=('x86_64')
|
||||||
|
|
||||||
|
cd $name-$version.src
|
||||||
|
|
||||||
|
setup(){
|
||||||
|
mkdir build && cd build
|
||||||
|
cmake .. -G Ninja \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr
|
||||||
|
}
|
||||||
|
|
||||||
|
build(){
|
||||||
|
ninja -C build
|
||||||
|
}
|
||||||
|
|
||||||
|
package(){
|
||||||
|
ninja -C build
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
name='spirv-headers'
|
||||||
|
release='1'
|
||||||
|
version='1.3.236.0'
|
||||||
|
url='https://github.com/KhronosGroup/SPIRV-Headers'
|
||||||
|
description='Machine-readable files for the SPIR-V Registry'
|
||||||
|
email='aliriza.keskin@pardus.org.tr'
|
||||||
|
maintainer='aliriza'
|
||||||
|
license=('GPLv3')
|
||||||
|
source=("https://github.com/KhronosGroup/SPIRV-Headers/archive/refs/tags/sdk-$version.tar.gz")
|
||||||
|
depends=()
|
||||||
|
makedepends=()
|
||||||
|
md5sums=('da1982a5df290f7a76ff786af4587ffc')
|
||||||
|
group=()
|
||||||
|
uses=()
|
||||||
|
arch=('x86_64')
|
||||||
|
|
||||||
|
cd SPIRV-Headers-sdk-$version
|
||||||
|
|
||||||
|
setup(){
|
||||||
|
mkdir build && cd build
|
||||||
|
cmake .. \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr
|
||||||
|
}
|
||||||
|
|
||||||
|
build(){
|
||||||
|
make -C build
|
||||||
|
}
|
||||||
|
|
||||||
|
package(){
|
||||||
|
make -C build install
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
name='spirv-llvm-translator'
|
||||||
|
release='1'
|
||||||
|
version='14.0.0'
|
||||||
|
url='https://github.com/KhronosGroup/SPIRV-LLVM-Translator'
|
||||||
|
description='Bi-directional translator between SPIR-V and LLVM IR'
|
||||||
|
email='aliriza.keskin@pardus.org.tr'
|
||||||
|
maintainer='aliriza'
|
||||||
|
license=('GPLv3')
|
||||||
|
source=("https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/refs/tags/v$version.tar.gz")
|
||||||
|
depends=(spirv-tools)
|
||||||
|
makedepends=()
|
||||||
|
md5sums=('ae2b5b53e27bfbd700346db2d481c7d8')
|
||||||
|
group=()
|
||||||
|
uses=()
|
||||||
|
arch=('x86_64')
|
||||||
|
|
||||||
|
cd SPIRV-LLVM-Translator-$version
|
||||||
|
|
||||||
|
setup(){
|
||||||
|
mkdir build && cd build
|
||||||
|
cmake .. \
|
||||||
|
-DBUILD_SHARED_LIBS=ON \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
||||||
|
-DCMAKE_SKIP_RPATH=ON \
|
||||||
|
-DLLVM_INCLUDE_TESTS=ON \
|
||||||
|
-DLLVM_EXTERNAL_LIT=/usr/bin/lit \
|
||||||
|
-DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=/usr/include/spirv/ \
|
||||||
|
-Wno-dev
|
||||||
|
}
|
||||||
|
|
||||||
|
build(){
|
||||||
|
make -C build
|
||||||
|
}
|
||||||
|
|
||||||
|
package(){
|
||||||
|
make -C build install
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
name='spirv-tools'
|
||||||
|
release='1'
|
||||||
|
version='2022.4'
|
||||||
|
url='https://github.com/KhronosGroup/SPIRV-Tools'
|
||||||
|
description='Provides an API and commands for processing SPIR-V modules'
|
||||||
|
email='aliriza.keskin@pardus.org.tr'
|
||||||
|
maintainer='aliriza'
|
||||||
|
license=('GPLv3')
|
||||||
|
source=("https://github.com/KhronosGroup/SPIRV-Tools/archive/refs/tags/v$version.tar.gz")
|
||||||
|
depends=(spirv-headers)
|
||||||
|
makedepends=()
|
||||||
|
md5sums=('9f40d51201510d809dbabc48b076febc')
|
||||||
|
group=()
|
||||||
|
uses=()
|
||||||
|
arch=('x86_64')
|
||||||
|
|
||||||
|
cd SPIRV-Tools-$version
|
||||||
|
|
||||||
|
setup(){
|
||||||
|
mkdir build && cd build
|
||||||
|
cmake .. \
|
||||||
|
-GNinja \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
-DCMAKE_INSTALL_LIBDIR=lib64 \
|
||||||
|
-DCMAKE_BUILD_TYPE=None \
|
||||||
|
-DSPIRV_WERROR=Off \
|
||||||
|
-DBUILD_SHARED_LIBS=ON \
|
||||||
|
-DSPIRV_TOOLS_BUILD_STATIC=OFF \
|
||||||
|
-DSPIRV-Headers_SOURCE_DIR=/usr
|
||||||
|
}
|
||||||
|
|
||||||
|
build(){
|
||||||
|
ninja -C build
|
||||||
|
}
|
||||||
|
|
||||||
|
package(){
|
||||||
|
ninja -C build install
|
||||||
|
}
|
||||||
|
|
||||||
Reference in new issue
Block a user