SUMMARY="C library and tools for working with many archive formats" DESCRIPTION="The libarchive library features: * Support for a variety of archive and compression formats. * Robust automatic format detection, including archive/compression \ combinations such as tar.gz. * Zero-copy internal architecture for high performance. * Streaming architecture eliminates all limits on size of archive, limits on \ entry sizes depend on particular formats. * Carefully factored code to minimize bloat when programs are statically linked. * Growing test suite ? to verify correctness of new ports. * Works on most POSIX-like systems * Supports Windows, including Cygwin, MinGW, and Visual Studio. The bsdtar and bscpio command-line utilities are feature- and \ performance-competitive with other tar and cpio implementations: * Reads a variety of formats, including tar, pax, cpio, zip, xar, lha, ar, \ cab, mtree, rar, and ISO images. * Writes tar, pax, cpio, zip, xar, ar, ISO, mtree, and shar archives * Automatically handles archives compressed with gzip, bzip2, lzip, xz, lzma, \ or compress. * Unique format conversion feature." HOMEPAGE="http://www.libarchive.org/" LICENSE="BSD (2-clause)" COPYRIGHT="2003-2013 Tim Kientzle" REVISION="2" SOURCE_URI="http://www.libarchive.org/downloads/libarchive-$portVersion.tar.gz" CHECKSUM_SHA256="ed2dbd6954792b2c054ccf8ec4b330a54b85904a80cef477a1c74643ddafa0ce" PATCHES="libarchive-$portVersion.patchset" ARCHITECTURES="!x86_gcc2 x86 x86_64" SECONDARY_ARCHITECTURES="x86" # On x86_gcc2 we don't want to install the commands in bin//, but in bin/. commandSuffix=$secondaryArchSuffix commandBinDir=$binDir if [ "$targetArchitecture" = x86_gcc2 ]; then commandSuffix= commandBinDir=$prefix/bin fi PROVIDES=" libarchive$secondaryArchSuffix = $portVersion compat >= 3.0 cmd:bsdcat$commandSuffix = $portVersion compat >= 3.0 cmd:bsdcpio$commandSuffix = $portVersion compat >= 3.0 cmd:bsdtar$commandSuffix = $portVersion compat >= 3.0 lib:libarchive$secondaryArchSuffix = 13.3.2 compat >= 13 " REQUIRES=" haiku$secondaryArchSuffix lib:libbz2$secondaryArchSuffix lib:libcrypto$secondaryArchSuffix lib:liblzma$secondaryArchSuffix lib:libssl$secondaryArchSuffix lib:libxml2$secondaryArchSuffix lib:libz$secondaryArchSuffix " PROVIDES_devel=" libarchive${secondaryArchSuffix}_devel = $portVersion compat >= 3.0 devel:libarchive$secondaryArchSuffix = 13.3.2 compat >= 13 " REQUIRES_devel=" libarchive$secondaryArchSuffix == $portVersion " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libbz2$secondaryArchSuffix devel:libcrypto$secondaryArchSuffix devel:liblzma$secondaryArchSuffix devel:libssl$secondaryArchSuffix devel:libxml2$secondaryArchSuffix devel:libz$secondaryArchSuffix " BUILD_PREREQUIRES=" cmd:aclocal cmd:autoconf cmd:automake cmd:libtoolize cmd:make cmd:gcc$secondaryArchSuffix cmd:pkg_config$secondaryArchSuffix cmd:xml2_config$secondaryArchSuffix " BUILD() { autoreconf -fi runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir make $jobArgs } INSTALL() { make install rm $libDir/libarchive.la prepareInstalledDevelLibs libarchive fixPkgconfig packageEntries devel $developDir $manDir/man3 } TEST() { make check }