2015-07-21 04:22:45 +00:00
|
|
|
SUMMARY="C library and tools for working with many archive formats"
|
|
|
|
DESCRIPTION="The libarchive library features:
|
|
|
|
|
2014-01-02 21:40:56 +00:00
|
|
|
* 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 \
|
2013-10-27 01:16:28 +00:00
|
|
|
performance-competitive with other tar and cpio implementations:
|
2014-01-02 21:40:56 +00:00
|
|
|
* 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.
|
2015-07-21 04:22:45 +00:00
|
|
|
* Unique format conversion feature."
|
2013-10-27 01:16:28 +00:00
|
|
|
HOMEPAGE="http://www.libarchive.org/"
|
2015-07-21 04:22:45 +00:00
|
|
|
COPYRIGHT="2003-2013 Tim Kientzle"
|
2018-09-11 12:43:35 +00:00
|
|
|
LICENSE="BSD (2-clause)"
|
2020-12-05 20:40:22 +00:00
|
|
|
REVISION="1"
|
2017-02-25 13:05:40 +00:00
|
|
|
SOURCE_URI="http://www.libarchive.org/downloads/libarchive-$portVersion.tar.gz"
|
2021-01-15 13:16:30 +00:00
|
|
|
CHECKSUM_SHA256="9015d109ec00bb9ae1a384b172bf2fc1dff41e2c66e5a9eeddf933af9db37f5a"
|
2015-07-21 04:22:45 +00:00
|
|
|
|
2021-09-15 19:40:18 +00:00
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
2013-10-27 01:16:28 +00:00
|
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
|
|
|
|
# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/.
|
2018-09-22 11:16:03 +00:00
|
|
|
commandSuffix=$secondaryArchSuffix
|
|
|
|
commandBinDir=$binDir
|
2013-10-27 01:16:28 +00:00
|
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
|
|
commandSuffix=
|
2018-09-22 11:16:03 +00:00
|
|
|
commandBinDir=$prefix/bin
|
2013-10-27 01:16:28 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
PROVIDES="
|
|
|
|
libarchive$secondaryArchSuffix = $portVersion compat >= 3.0
|
2017-02-25 13:05:40 +00:00
|
|
|
cmd:bsdcat$commandSuffix = $portVersion compat >= 3.0
|
2013-10-27 01:16:28 +00:00
|
|
|
cmd:bsdcpio$commandSuffix = $portVersion compat >= 3.0
|
2017-02-25 13:05:40 +00:00
|
|
|
cmd:bsdtar$commandSuffix = $portVersion compat >= 3.0
|
2021-01-15 13:16:30 +00:00
|
|
|
lib:libarchive$secondaryArchSuffix = 13.5.1 compat >= 13
|
2013-10-27 01:16:28 +00:00
|
|
|
"
|
|
|
|
REQUIRES="
|
2014-12-14 22:08:52 +00:00
|
|
|
haiku$secondaryArchSuffix
|
2017-02-25 13:05:40 +00:00
|
|
|
lib:libbz2$secondaryArchSuffix
|
|
|
|
lib:libcrypto$secondaryArchSuffix
|
2013-10-27 01:16:28 +00:00
|
|
|
lib:liblzma$secondaryArchSuffix
|
|
|
|
lib:libssl$secondaryArchSuffix
|
2017-02-25 13:05:40 +00:00
|
|
|
lib:libxml2$secondaryArchSuffix
|
2013-10-27 01:16:28 +00:00
|
|
|
lib:libz$secondaryArchSuffix
|
|
|
|
"
|
2018-09-11 12:43:35 +00:00
|
|
|
|
2015-07-21 04:22:45 +00:00
|
|
|
PROVIDES_devel="
|
|
|
|
libarchive${secondaryArchSuffix}_devel = $portVersion compat >= 3.0
|
2021-01-15 13:16:30 +00:00
|
|
|
devel:libarchive$secondaryArchSuffix = 13.5.1 compat >= 13
|
2015-07-21 04:22:45 +00:00
|
|
|
"
|
|
|
|
REQUIRES_devel="
|
|
|
|
libarchive$secondaryArchSuffix == $portVersion
|
|
|
|
"
|
2018-09-11 12:43:35 +00:00
|
|
|
|
2013-10-27 01:16:28 +00:00
|
|
|
BUILD_REQUIRES="
|
2017-02-25 13:05:40 +00:00
|
|
|
haiku${secondaryArchSuffix}_devel
|
|
|
|
devel:libbz2$secondaryArchSuffix
|
|
|
|
devel:libcrypto$secondaryArchSuffix
|
2013-10-27 01:16:28 +00:00
|
|
|
devel:liblzma$secondaryArchSuffix
|
|
|
|
devel:libssl$secondaryArchSuffix
|
2017-02-25 13:05:40 +00:00
|
|
|
devel:libxml2$secondaryArchSuffix
|
2013-10-27 01:16:28 +00:00
|
|
|
devel:libz$secondaryArchSuffix
|
|
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
|
|
cmd:aclocal
|
|
|
|
cmd:autoconf
|
|
|
|
cmd:automake
|
2018-09-11 12:43:35 +00:00
|
|
|
cmd:gcc$secondaryArchSuffix
|
2017-02-25 13:05:40 +00:00
|
|
|
cmd:libtoolize
|
2013-10-27 01:16:28 +00:00
|
|
|
cmd:make
|
2017-02-25 13:05:40 +00:00
|
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
|
|
cmd:xml2_config$secondaryArchSuffix
|
2013-10-27 01:16:28 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
BUILD()
|
|
|
|
{
|
2017-02-25 13:05:40 +00:00
|
|
|
autoreconf -fi
|
2019-09-27 19:02:24 +00:00
|
|
|
LDFLAGS="-lbsd" CFLAGS="-D_BSD_SOURCE" ac_cv_func_readpassphrase=yes \
|
|
|
|
runConfigure --omit-dirs binDir \
|
|
|
|
./configure --bindir=$commandBinDir
|
2013-10-27 01:16:28 +00:00
|
|
|
make $jobArgs
|
|
|
|
}
|
|
|
|
|
|
|
|
INSTALL()
|
|
|
|
{
|
|
|
|
make install
|
2017-04-17 09:00:41 +00:00
|
|
|
|
|
|
|
rm $libDir/libarchive.la
|
|
|
|
|
2013-10-27 01:16:28 +00:00
|
|
|
prepareInstalledDevelLibs libarchive
|
|
|
|
fixPkgconfig
|
|
|
|
packageEntries devel $developDir $manDir/man3
|
|
|
|
}
|
|
|
|
|
|
|
|
TEST()
|
2015-08-04 15:59:44 +00:00
|
|
|
{
|
|
|
|
make check
|
2013-10-27 01:16:28 +00:00
|
|
|
}
|