mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
zx0: new recipe
This commit is contained in:
46
app-arch/zx0/zx0-2021.12.17.recipe
Normal file
46
app-arch/zx0/zx0-2021.12.17.recipe
Normal file
@@ -0,0 +1,46 @@
|
||||
SUMMARY="Optimal data compressor for a custom LZ77/LZSS based compression format"
|
||||
DESCRIPTION="Optimal data compressor for a custom LZ77/LZSS based compression format,
|
||||
that provides a tradeoff between high compression ratio, and extremely simple fast decompression.
|
||||
Therefore it's especially appropriate for low-end platforms, including 8-bit computers like the
|
||||
ZX Spectrum."
|
||||
HOMEPAGE="https://github.com/einar-saukas/ZX0"
|
||||
COPYRIGHT="2021 Einar Saukas"
|
||||
LICENSE="BSD (3-clause)"
|
||||
SOURCE_URI="https://github.com/einar-saukas/zx0/archive/ecde3a2ae05061fe06469ed46df81a33b7de7d86.tar.gz"
|
||||
CHECKSUM_SHA256="f52eef64185c795b9b4080296ba9bc2f5f32fc2c6a1f3f3b264b05d14b08f99a"
|
||||
SOURCE_DIR="ZX0-ecde3a2ae05061fe06469ed46df81a33b7de7d86"
|
||||
REVISION="1"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
zx0$secondaryArchSuffix = $portVersion
|
||||
cmd:zx0 = $portVersion
|
||||
cmd:dzx0 = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:make
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd src
|
||||
make $jobArgs CC=gcc$secondaryArchSuffix EXTENSION="" CFLAGS="-O3 -Wall -finline-functions -floop-optimize -fno-stack-check"
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd src
|
||||
mkdir -p $prefix/bin
|
||||
|
||||
cp zx0 dzx0 $prefix/bin
|
||||
}
|
||||
Reference in New Issue
Block a user