Add a recipe for zx7

This commit is contained in:
Adrien Destugues
2020-02-16 19:30:31 +01:00
parent 7a8aecca12
commit db60f2ecad

View File

@@ -0,0 +1,42 @@
SUMMARY="Optimal LZ77/LZSS data compressor"
DESCRIPTION="Available implementations of standard LZ77/LZSS compression \
algorithm use either a greedy or flexible parsing strategy, that cannot always \
guarantee the best possible encoding. In comparison, ZX7 provides a highly \
efficient compression algorithm that always generate perfectly optimal \
LZ77/LZSS encoding. Technically it means compressing within space and time \
O(n) only."
HOMEPAGE="http://www.worldofspectrum.org/infoseekid.cgi?id=0027996"
COPYRIGHT="2012-2013 Einar Saukas"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="http://www.worldofspectrum.org/pub/sinclair/games-extras/ZX7_SourceCode.zip"
CHECKSUM_SHA256="e02ee4774f51cbe1e77fa1ce52c1f7c9afc5f4f8c2fa0a761e36a53c10527808"
SOURCE_DIR="src"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
PROVIDES="
zx7 = $portVersion
cmd:zx7 = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:gcc
"
BUILD()
{
gcc -O2 zx7.c optimize.c compress.c -o zx7
}
INSTALL()
{
mkdir -p $binDir
cp -a zx7 $binDir
}