PKGNAME=libarchive
PKGEPOCH=1
PKGDES="Interface for reading/writing various compression formats"
PKGDEP="acl attr bzip2 expat libb2 lz4 lzo openssl xz zlib zstd"
PKGSEC=libs

# Note: Mutually exclusive feature sets.
#     (1) mbedtls, nettle, or openssl for cryptography support.
#     (2) [lib]xml2 or expat for xar support.
AUTOTOOLS_AFTER=(
    '--enable-bsdtar=shared'
    '--enable-bsdcat=shared'
    '--enable-bsdcpio=shared'
    '--disable-rpath'
    '--enable-posix-regex-lib=libc'
    '--enable-xattr'
    '--enable-acl'
    '--enable-largefile'
    '--with-zlib'
    '--with-bz2lib'
    '--with-libb2'
    '--with-iconv'
    '--with-lz4'
    '--with-zstd'
    '--with-lzma'
    '--with-lzo2'
    '--with-cng'
    '--without-mbedtls'
    '--without-nettle'
    '--with-openssl'
    '--without-xml2'
    '--with-expat'
)

ABSHADOW=0
AB_FLAGS_O3=1

# Needed by Afterglow, whereas FAIL_ARCH defaults to mainline-only.
FAIL_ARCH="!(mainline|retro)"
