diff --git a/app-arch/pigz/pigz-2.1.6.recipe b/app-arch/pigz/pigz-2.1.6.recipe deleted file mode 100644 index 5beb18652..000000000 --- a/app-arch/pigz/pigz-2.1.6.recipe +++ /dev/null @@ -1,31 +0,0 @@ -DESCRIPTION="pigz" -HOMEPAGE="http://www.zlib.net/pigz" -SRC_URI="http://www.zlib.net/pigz/pigz-2.1.6.tar.gz" -CHECKSUM_MD5="cbe9030c4be3d0ef2438ee5f8b169ca4" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" -BUILD() -{ - cd pigz-2.1.6 - sed -i 's/-lpthread/ /g' Makefile - sed -i 's/ln -f pigz unpigz/cp pigz unpigz/' Makefile - make -} - -INSTALL() -{ - cd pigz-2.1.6 - mkdir -p ${DESTDIR}`finddir B_COMMON_BIN_DIRECTORY` - cp pigz ${DESTDIR}`finddir B_COMMON_BIN_DIRECTORY`/pigz - cp unpigz ${DESTDIR}`finddir B_COMMON_BIN_DIRECTORY`/unpigz -} - -TEST() -{ - cd pigz-2.1.6 - make test -} - -LICENSE="Zlib" -COPYRIGHT="2008 Mark Adler" diff --git a/app-arch/pigz/pigz-2.3.1.recipe b/app-arch/pigz/pigz-2.3.1.recipe new file mode 100644 index 000000000..d97b59227 --- /dev/null +++ b/app-arch/pigz/pigz-2.3.1.recipe @@ -0,0 +1,65 @@ +SUMMARY="A parallel implementation of gzip for multi-processor machines" +DESCRIPTION=" +pigz, which stands for Parallel Implementation of GZip, is a fully +functional replacement for gzip that exploits multiple processors and +multiple cores to the hilt when compressing data. + +pigz was written by Mark Adler, and uses the zlib and pthread +libraries. + +This version of pigz is written to be portable across Unix-style +operating systems that provide the zlib and pthread libraries. +" +LICENSE="Zlib" +COPYRIGHT="2008-2013 Mark Adler" +HOMEPAGE="http://www.zlib.net/pigz" +SRC_URI="http://www.zlib.net/pigz/pigz-2.3.1.tar.gz" +CHECKSUM_MD5="e803f8bc0770c7a5e96dccb1d2dd2aab" +REVISION="1" +ARCHITECTURES="x86 ?x86_gcc2 ?x86_64" + +PROVIDES=" + pigz = $portVersion + cmd:pigz = $portVersion + cmd:unpigz = $portVersion + " + +REQUIRES=" + haiku >= $haikuVersion + lib:libz + " + +BUILD_REQUIRES=" + haiku_devel >= $haikuVersion + devel:libz + " + +BUILD_PREREQUIRES=" + cmd:make + cmd:gcc + " + +PATCH() +{ + sed -i 's/-lm//g' Makefile + sed -i 's/-lpthread//g' Makefile + sed -i 's/ln -f/ln -sf/g' Makefile +} + +BUILD() +{ + make +} + +INSTALL() +{ + mkdir -p $binDir + cp -af pigz unpigz $binDir + mkdir -p $manDir/man1 + cp -af pigz.1 $manDir/man1 +} + +TEST() +{ + make test +}