2004-03-24 18:20:48 +01:00
|
|
|
PORTNAME= libarchive
|
2023-01-10 09:05:57 +01:00
|
|
|
DISTVERSION= 3.6.2
|
2004-08-23 18:37:49 +02:00
|
|
|
PORTEPOCH= 1
|
2004-06-16 17:20:49 +02:00
|
|
|
CATEGORIES= archivers
|
2021-11-24 13:59:56 +01:00
|
|
|
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/v${DISTVERSION}/ \
|
|
|
|
https://libarchive.org/downloads/
|
2004-03-24 18:20:48 +01:00
|
|
|
|
2022-12-06 22:08:11 +01:00
|
|
|
PATCH_SITES= https://github.com/${PORTNAME}/${PORTNAME}/commit/
|
2023-01-10 09:05:57 +01:00
|
|
|
PATCHFILES= 1f35c466aaa9444335a1b854b0b7223b0d2346c2.patch:-p1
|
2022-12-06 22:08:11 +01:00
|
|
|
|
2004-03-24 18:20:48 +01:00
|
|
|
MAINTAINER= glewis@FreeBSD.org
|
|
|
|
COMMENT= Library to create and read several streaming archive formats
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= https://libarchive.org/
|
2004-03-24 18:20:48 +01:00
|
|
|
|
2016-10-25 06:08:08 +02:00
|
|
|
LICENSE= BSD2CLAUSE
|
2018-09-19 19:31:04 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2016-10-25 06:08:08 +02:00
|
|
|
|
2016-04-01 15:29:15 +02:00
|
|
|
LIB_DEPENDS= libexpat.so:textproc/expat2
|
2015-07-29 15:39:12 +02:00
|
|
|
|
2021-01-05 17:59:44 +01:00
|
|
|
OPTIONS_DEFINE= LZ4 LZO ZSTD
|
2021-11-24 13:59:56 +01:00
|
|
|
OPTIONS_DEFAULT=LZ4 ZSTD OPENSSL
|
2012-07-31 20:46:09 +02:00
|
|
|
|
2021-11-24 13:59:56 +01:00
|
|
|
OPTIONS_RADIO= CRYPTO
|
2021-01-05 17:59:44 +01:00
|
|
|
OPTIONS_RADIO_CRYPTO= OPENSSL MBEDTLS NETTLE
|
|
|
|
|
|
|
|
CRYPTO_DESC= Crypto and hashing support
|
2021-11-24 13:59:56 +01:00
|
|
|
NETTLE_DESC= Crypto support via Nettle
|
|
|
|
|
2023-01-10 09:05:57 +01:00
|
|
|
USES= autoreconf cpe iconv libtool localbase:ldflags pathfix \
|
|
|
|
pkgconfig tar:xz
|
2004-08-23 18:37:49 +02:00
|
|
|
GNU_CONFIGURE= yes
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_LDCONFIG= yes
|
2021-11-24 13:59:56 +01:00
|
|
|
|
|
|
|
INSTALL_TARGET= install-strip
|
2018-09-19 19:31:04 +02:00
|
|
|
TEST_TARGET= check
|
2012-02-25 23:41:56 +01:00
|
|
|
|
2021-11-24 13:59:56 +01:00
|
|
|
CONFIGURE_ARGS= --disable-static --without-xml2
|
2004-03-24 18:20:48 +01:00
|
|
|
|
2016-05-09 17:48:43 +02:00
|
|
|
PLIST_FILES= bin/bsdcat \
|
|
|
|
bin/bsdcpio \
|
2009-05-24 18:55:25 +02:00
|
|
|
bin/bsdtar \
|
2006-06-21 00:33:47 +02:00
|
|
|
include/archive.h \
|
2004-03-24 18:20:48 +01:00
|
|
|
include/archive_entry.h \
|
2005-10-13 19:09:27 +02:00
|
|
|
lib/libarchive.so \
|
2014-06-22 22:11:54 +02:00
|
|
|
lib/libarchive.so.13 \
|
2022-04-24 13:42:27 +02:00
|
|
|
lib/libarchive.so.1${DISTVERSION} \
|
2014-01-03 19:35:01 +01:00
|
|
|
libdata/pkgconfig/libarchive.pc \
|
2016-05-09 17:48:43 +02:00
|
|
|
man/man1/bsdcat.1.gz \
|
2014-01-03 19:35:01 +01:00
|
|
|
man/man1/bsdcpio.1.gz \
|
|
|
|
man/man1/bsdtar.1.gz \
|
|
|
|
man/man3/archive_entry.3.gz \
|
|
|
|
man/man3/archive_entry_acl.3.gz \
|
|
|
|
man/man3/archive_entry_linkify.3.gz \
|
2019-09-01 22:33:09 +02:00
|
|
|
man/man3/archive_entry_misc.3.gz \
|
2014-01-03 19:35:01 +01:00
|
|
|
man/man3/archive_entry_paths.3.gz \
|
|
|
|
man/man3/archive_entry_perms.3.gz \
|
|
|
|
man/man3/archive_entry_stat.3.gz \
|
|
|
|
man/man3/archive_entry_time.3.gz \
|
|
|
|
man/man3/archive_read.3.gz \
|
2016-05-09 17:48:43 +02:00
|
|
|
man/man3/archive_read_add_passphrase.3.gz \
|
2014-01-03 19:35:01 +01:00
|
|
|
man/man3/archive_read_data.3.gz \
|
|
|
|
man/man3/archive_read_disk.3.gz \
|
|
|
|
man/man3/archive_read_extract.3.gz \
|
|
|
|
man/man3/archive_read_filter.3.gz \
|
|
|
|
man/man3/archive_read_format.3.gz \
|
|
|
|
man/man3/archive_read_free.3.gz \
|
|
|
|
man/man3/archive_read_header.3.gz \
|
|
|
|
man/man3/archive_read_new.3.gz \
|
|
|
|
man/man3/archive_read_open.3.gz \
|
|
|
|
man/man3/archive_read_set_options.3.gz \
|
|
|
|
man/man3/archive_util.3.gz \
|
|
|
|
man/man3/archive_write.3.gz \
|
|
|
|
man/man3/archive_write_blocksize.3.gz \
|
|
|
|
man/man3/archive_write_data.3.gz \
|
|
|
|
man/man3/archive_write_disk.3.gz \
|
|
|
|
man/man3/archive_write_filter.3.gz \
|
|
|
|
man/man3/archive_write_finish_entry.3.gz \
|
|
|
|
man/man3/archive_write_format.3.gz \
|
|
|
|
man/man3/archive_write_free.3.gz \
|
|
|
|
man/man3/archive_write_header.3.gz \
|
|
|
|
man/man3/archive_write_new.3.gz \
|
|
|
|
man/man3/archive_write_open.3.gz \
|
|
|
|
man/man3/archive_write_set_options.3.gz \
|
2016-05-09 17:48:43 +02:00
|
|
|
man/man3/archive_write_set_passphrase.3.gz \
|
2014-01-03 19:35:01 +01:00
|
|
|
man/man3/libarchive.3.gz \
|
|
|
|
man/man3/libarchive_changes.3.gz \
|
|
|
|
man/man3/libarchive_internals.3.gz \
|
|
|
|
man/man5/cpio.5.gz \
|
|
|
|
man/man5/libarchive-formats.5.gz \
|
|
|
|
man/man5/mtree.5.gz \
|
|
|
|
man/man5/tar.5.gz
|
2004-03-24 18:20:48 +01:00
|
|
|
|
2017-05-04 01:34:33 +02:00
|
|
|
LZO_LIB_DEPENDS= liblzo2.so:archivers/lzo2
|
|
|
|
LZO_CONFIGURE_WITH= lzo2
|
2021-11-24 13:59:56 +01:00
|
|
|
|
2016-05-13 10:55:36 +02:00
|
|
|
LZ4_LIB_DEPENDS= liblz4.so:archivers/liblz4
|
|
|
|
LZ4_CONFIGURE_WITH= lz4
|
2021-11-24 13:59:56 +01:00
|
|
|
|
2018-10-07 18:33:21 +02:00
|
|
|
ZSTD_LIB_DEPENDS= libzstd.so:archivers/zstd
|
|
|
|
ZSTD_CONFIGURE_WITH= zstd
|
2012-02-25 23:41:56 +01:00
|
|
|
|
2016-04-01 15:29:15 +02:00
|
|
|
NETTLE_LIB_DEPENDS= libnettle.so:security/nettle
|
2014-07-03 21:06:07 +02:00
|
|
|
NETTLE_CONFIGURE_WITH= nettle
|
2021-11-24 13:59:56 +01:00
|
|
|
|
2018-09-19 19:31:04 +02:00
|
|
|
OPENSSL_USES= ssl
|
|
|
|
OPENSSL_CONFIGURE_WITH= openssl
|
2021-01-05 17:59:44 +01:00
|
|
|
OPENSSL_CONFIGURE_OFF= --without-openssl
|
2021-11-24 13:59:56 +01:00
|
|
|
|
2021-01-05 17:59:44 +01:00
|
|
|
MBEDTLS_LIB_DEPENDS= libmbedtls.so:security/mbedtls
|
|
|
|
MBEDTLS_CONFIGURE_WITH= mbedtls
|
2008-06-17 07:12:47 +02:00
|
|
|
|
2015-08-14 23:20:10 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if empty(ICONV_LIB)
|
|
|
|
CONFIGURE_ENV+= ac_cv_header_localcharset_h=no \
|
|
|
|
ac_cv_func_locale_charset=no \
|
|
|
|
ac_cv_lib_charset_locale_charset=no
|
|
|
|
.endif
|
|
|
|
|
2023-01-10 09:05:57 +01:00
|
|
|
# Prior to 1301508 we didn't ship openssl.pc which libarchive now excepts
|
|
|
|
# so we need to use the old approach on older versions of FreeBSD
|
|
|
|
# which is not to define Requires.private in libarchive.pc
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MOPENSSL} && ${OPSYS} == FreeBSD && ${OSVERSION} < 1301508
|
|
|
|
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-pkgconfig-compat
|
|
|
|
.endif
|
|
|
|
|
2015-08-14 23:20:10 +02:00
|
|
|
.include <bsd.port.post.mk>
|