diff --git a/app-arch/zx7/zx7-2013.02.25.recipe b/app-arch/zx7/zx7-2013.02.25.recipe new file mode 100644 index 000000000..1ab7685de --- /dev/null +++ b/app-arch/zx7/zx7-2013.02.25.recipe @@ -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 +}