mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
43 lines
1.0 KiB
Bash
43 lines
1.0 KiB
Bash
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="?all x86_gcc2"
|
|
|
|
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
|
|
}
|