1SUMMARY="A parallel implementation of gzip for multi-processor machines" 2DESCRIPTION=" 3pigz, which stands for Parallel Implementation of GZip, is a fully functional \ 4replacement for gzip that exploits multiple processors and multiple cores to \ 5the hilt when compressing data. 6 7pigz was written by Mark Adler, and uses the zlib and pthread libraries. 8 9This version of pigz is written to be portable across Unix-style operating \ 10systems that provide the zlib and pthread libraries." 11HOMEPAGE="http://www.zlib.net/pigz" 12COPYRIGHT="2008-2013 Mark Adler" 13LICENSE="Zlib" 14REVISION="1" 15SOURCE_URI="http://www.zlib.net/pigz/pigz-$portVersion.tar.gz" 16CHECKSUM_SHA256="b4c9e60344a08d5db37ca7ad00a5b2c76ccb9556354b722d56d55ca7e8b1c707" 17 18ARCHITECTURES="all !x86_gcc2" 19if [ "$targetArchitecture" = x86_gcc2 ]; then 20SECONDARY_ARCHITECTURES="x86" 21fi 22 23# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/. 24commandBinDir=$binDir 25if [ "$targetArchitecture" = x86_gcc2 ]; then 26 commandBinDir=$prefix/bin 27fi 28 29PROVIDES=" 30 pigz$secondaryArchSuffix = $portVersion 31 cmd:pigz = $portVersion 32 cmd:unpigz = $portVersion 33 " 34REQUIRES=" 35 haiku$secondaryArchSuffix 36 lib:libz$secondaryArchSuffix 37 " 38 39BUILD_REQUIRES=" 40 haiku${secondaryArchSuffix}_devel 41 devel:libz$secondaryArchSuffix 42 " 43BUILD_PREREQUIRES=" 44 cmd:gcc$secondaryArchSuffix 45 cmd:make 46 " 47 48PATCH() 49{ 50 sed -i 's/-lm//g' Makefile 51 sed -i 's/-lpthread//g' Makefile 52 sed -i 's/ln -f/ln -sf/g' Makefile 53} 54 55BUILD() 56{ 57 make 58} 59 60INSTALL() 61{ 62 mkdir -p $commandBinDir 63 cp -af pigz unpigz $commandBinDir 64 mkdir -p $manDir/man1 65 cp -af pigz.1 $manDir/man1 66} 67 68TEST() 69{ 70 make test 71} 72