basisu port (#13638)

This commit is contained in:
Peppersawce
2026-03-28 07:17:36 +01:00
committed by GitHub
parent fe9634c141
commit 65158241b3
2 changed files with 72 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
SUMMARY="Basis Universal GPU Texture Codec"
DESCRIPTION="Basis Universal is an open source supercompressed LDR/HDR GPU compressed texture interchange system from Binomial LLC that supports \
two intermediate file formats: the .KTX2 open standard from the Khronos Group, and our own ".basis" file format.
These file formats support rapid transcoding to virtually any compressed GPU texture format released in the past ~25 years."
HOMEPAGE="https://github.com/BinomialLLC/basis_universal"
COPYRIGHT="2019-2026 Binomial LLC"
LICENSE="Apache v2"
REVISION="1"
SOURCE_URI="https://github.com/BinomialLLC/basis_universal/archive/refs/tags/v2_1_0.tar.gz"
CHECKSUM_SHA256="ee1dbeb4c16699b577a0c78dce337bbede268e04bd2d463946971f8cb1e9c8df"
PATCHES="basisu-$portVersion.patchset"
SOURCE_DIR="basis_universal-2_1_0"
ARCHITECTURES="all ?x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
basisu$secondaryArchSuffix = $portVersion
cmd:basisu = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
#lib:libopencl$secondaryArchSuffix # Optional, OpenCL support
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
#devel:libopencl$secondaryArchSuffix # Optional, OpenCL support
#devel:libopencl_headers$secondaryArchSuffix # Optional, OpenCL support
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
cmake . -DCMAKE_BUILD_TYPE=Release -DEXAMPLES=OFF #-DOPENCL=ON
make $jobArgs
}
INSTALL()
{
mkdir -p $prefix/bin && cp -t $prefix/bin bin/basisu
# Pack docs
mkdir -p $docDir && cp -t $docDir README.md
}