mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
51 lines
1.5 KiB
Bash
51 lines
1.5 KiB
Bash
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
|
|
}
|