freebsd-src/lib/libarchive/Makefile

419 lines
18 KiB
Makefile
Raw Normal View History

# $FreeBSD$
.include <src.opts.mk>
PACKAGE=lib${LIB}
_LIBARCHIVEDIR= ${SRCTOP}/contrib/libarchive
LIB= archive
LIBADD= z bz2 lzma bsdxml
CFLAGS+= -DHAVE_BZLIB_H=1 -DHAVE_LIBLZMA=1 -DHAVE_LZMA_H=1
# FreeBSD SHLIB_MAJOR value is managed as part of the FreeBSD system.
# It has no real relation to the libarchive version number.
Commit the 64-bit inode project. Extend the ino_t, dev_t, nlink_t types to 64-bit ints. Modify struct dirent layout to add d_off, increase the size of d_fileno to 64-bits, increase the size of d_namlen to 16-bits, and change the required alignment. Increase struct statfs f_mntfromname[] and f_mntonname[] array length MNAMELEN to 1024. ABI breakage is mitigated by providing compatibility using versioned symbols, ingenious use of the existing padding in structures, and by employing other tricks. Unfortunately, not everything can be fixed, especially outside the base system. For instance, third-party APIs which pass struct stat around are broken in backward and forward incompatible ways. Kinfo sysctl MIBs ABI is changed in backward-compatible way, but there is no general mechanism to handle other sysctl MIBS which return structures where the layout has changed. It was considered that the breakage is either in the management interfaces, where we usually allow ABI slip, or is not important. Struct xvnode changed layout, no compat shims are provided. For struct xtty, dev_t tty device member was reduced to uint32_t. It was decided that keeping ABI compat in this case is more useful than reporting 64-bit dev_t, for the sake of pstat. Update note: strictly follow the instructions in UPDATING. Build and install the new kernel with COMPAT_FREEBSD11 option enabled, then reboot, and only then install new world. Credits: The 64-bit inode project, also known as ino64, started life many years ago as a project by Gleb Kurtsou (gleb). Kirk McKusick (mckusick) then picked up and updated the patch, and acted as a flag-waver. Feedback, suggestions, and discussions were carried by Ed Maste (emaste), John Baldwin (jhb), Jilles Tjoelker (jilles), and Rick Macklem (rmacklem). Kris Moore (kris) performed an initial ports investigation followed by an exp-run by Antoine Brodin (antoine). Essential and all-embracing testing was done by Peter Holm (pho). The heavy lifting of coordinating all these efforts and bringing the project to completion were done by Konstantin Belousov (kib). Sponsored by: The FreeBSD Foundation (emaste, kib) Differential revision: https://reviews.freebsd.org/D10439
2017-05-23 09:29:05 +00:00
SHLIB_MAJOR= 7
CFLAGS+= -DPLATFORM_CONFIG_H=\"${.CURDIR}/config_freebsd.h\"
CFLAGS+= -I${.OBJDIR}
.if ${MK_OPENSSL} != "no"
CFLAGS+= -DWITH_OPENSSL
LIBADD+= crypto
.else
LIBADD+= md
.endif
.if ${MK_ICONV} != "no"
# TODO: This can be changed back to CFLAGS once iconv works correctly
# with statically linked binaries.
SHARED_CFLAGS+= -DHAVE_ICONV=1 -DHAVE_ICONV_H=1 -DICONV_CONST=
.endif
.if ${MACHINE_ARCH:Marm*} != "" || ${MACHINE_ARCH:Mmips*} != "" || \
Create a new MACHINE_ARCH for Freescale PowerPC e500v2 Summary: The Freescale e500v2 PowerPC core does not use a standard FPU. Instead, it uses a Signal Processing Engine (SPE)--a DSP-style vector processor unit, which doubles as a FPU. The PowerPC SPE ABI is incompatible with the stock powerpc ABI, so a new MACHINE_ARCH was created to deal with this. Additionaly, the SPE opcodes overlap with Altivec, so these are mutually exclusive. Taking advantage of this fact, a new file, powerpc/booke/spe.c, was created with the same function set as in powerpc/powerpc/altivec.c, so it becomes effectively a drop-in replacement. setjmp/longjmp were modified to save the upper 32-bits of the now-64-bit GPRs (upper 32-bits are only accessible by the SPE). Note: This does _not_ support the SPE in the e500v1, as the e500v1 SPE does not support double-precision floating point. Also, without a new MACHINE_ARCH it would be impossible to provide binary packages which utilize the SPE. Additionally, no work has been done to support ports, work is needed for this. This also means no newer gcc can yet be used. However, gcc's powerpc support has been refactored which would make adding a powerpcspe-freebsd target very easy. Test Plan: This was lightly tested on a RouterBoard RB800 and an AmigaOne A1222 (P1022-based) board, compiled against the new ABI. Base system utilities (/bin/sh, /bin/ls, etc) still function appropriately, the system is able to boot multiuser. Reviewed By: bdrewery, imp Relnotes: yes Differential Revision: https://reviews.freebsd.org/D5683
2016-10-22 01:57:15 +00:00
${MACHINE_ARCH:Msparc64*} != "" || ${MACHINE_ARCH:Mpowerpc*} != ""
NO_WCAST_ALIGN= yes
.if ${MACHINE_ARCH:M*64*} == ""
CFLAGS+= -DPPMD_32BIT
.endif
.endif
NO_WCAST_ALIGN.clang=
.PATH: ${_LIBARCHIVEDIR}/libarchive
# Headers to be installed in /usr/include
INCS= archive.h archive_entry.h
# Sources to be compiled.
SRCS= archive_acl.c \
archive_check_magic.c \
archive_cmdline.c \
archive_cryptor.c \
archive_disk_acl_freebsd.c \
archive_digest.c \
archive_entry.c \
archive_entry_copy_stat.c \
archive_entry_link_resolver.c \
archive_entry_sparse.c \
archive_entry_stat.c \
archive_entry_strmode.c \
archive_entry_xattr.c \
2012-07-28 06:38:44 +00:00
archive_getdate.c \
archive_hmac.c \
2012-07-28 06:38:44 +00:00
archive_match.c \
archive_options.c \
archive_pack_dev.c \
2012-07-28 06:38:44 +00:00
archive_pathmatch.c \
archive_ppmd7.c \
archive_random.c \
archive_rb.c \
archive_read.c \
archive_read_add_passphrase.c \
archive_read_append_filter.c \
archive_read_data_into_fd.c \
archive_read_disk_entry_from_file.c \
archive_read_disk_posix.c \
archive_read_disk_set_standard_lookup.c \
archive_read_extract.c \
archive_read_extract2.c \
archive_read_open_fd.c \
archive_read_open_file.c \
archive_read_open_filename.c \
archive_read_open_memory.c \
archive_read_set_format.c \
archive_read_set_options.c \
archive_read_support_filter_all.c \
archive_read_support_filter_bzip2.c \
archive_read_support_filter_compress.c \
archive_read_support_filter_gzip.c \
archive_read_support_filter_grzip.c \
archive_read_support_filter_lrzip.c \
archive_read_support_filter_lz4.c \
archive_read_support_filter_lzop.c \
archive_read_support_filter_none.c \
archive_read_support_filter_program.c \
archive_read_support_filter_rpm.c \
archive_read_support_filter_uu.c \
archive_read_support_filter_xz.c \
archive_read_support_format_7zip.c \
archive_read_support_format_all.c \
archive_read_support_format_ar.c \
archive_read_support_format_by_code.c \
archive_read_support_format_cab.c \
archive_read_support_format_cpio.c \
archive_read_support_format_empty.c \
archive_read_support_format_iso9660.c \
archive_read_support_format_lha.c \
archive_read_support_format_mtree.c \
archive_read_support_format_rar.c \
archive_read_support_format_raw.c \
archive_read_support_format_tar.c \
archive_read_support_format_warc.c \
archive_read_support_format_xar.c \
archive_read_support_format_zip.c \
archive_string.c \
archive_string_sprintf.c \
archive_util.c \
archive_version_details.c \
archive_virtual.c \
archive_write.c \
2012-07-28 06:38:44 +00:00
archive_write_add_filter.c \
archive_write_disk_set_standard_lookup.c \
archive_write_disk_posix.c \
archive_write_open_fd.c \
archive_write_open_file.c \
archive_write_open_filename.c \
archive_write_open_memory.c \
archive_write_add_filter_b64encode.c \
archive_write_add_filter_by_name.c \
archive_write_add_filter_bzip2.c \
archive_write_add_filter_compress.c \
archive_write_add_filter_grzip.c \
archive_write_add_filter_gzip.c \
archive_write_add_filter_lrzip.c \
archive_write_add_filter_lz4.c \
archive_write_add_filter_lzop.c \
archive_write_add_filter_none.c \
archive_write_add_filter_program.c \
archive_write_add_filter_uuencode.c \
archive_write_add_filter_xz.c \
archive_write_set_format.c \
archive_write_set_format_7zip.c \
archive_write_set_format_ar.c \
archive_write_set_format_by_name.c \
archive_write_set_format_cpio.c \
archive_write_set_format_cpio_newc.c \
archive_write_set_format_filter_by_ext.c \
archive_write_set_format_gnutar.c \
archive_write_set_format_iso9660.c \
archive_write_set_format_mtree.c \
archive_write_set_format_pax.c \
archive_write_set_format_raw.c \
archive_write_set_format_shar.c \
archive_write_set_format_ustar.c \
archive_write_set_format_v7tar.c \
archive_write_set_format_warc.c \
archive_write_set_format_xar.c \
archive_write_set_format_zip.c \
archive_write_set_passphrase.c \
archive_write_set_options.c \
filter_fork_posix.c
# Man pages to be installed.
MAN= archive_entry.3 \
archive_entry_acl.3 \
archive_entry_linkify.3 \
archive_entry_paths.3 \
archive_entry_perms.3 \
archive_entry_stat.3 \
archive_entry_time.3 \
archive_read.3 \
archive_read_data.3 \
archive_read_disk.3 \
archive_read_extract.3 \
archive_read_filter.3 \
archive_read_format.3 \
archive_read_free.3 \
archive_read_header.3 \
archive_read_new.3 \
archive_read_open.3 \
archive_read_set_options.3 \
archive_util.3 \
archive_write.3 \
archive_write_blocksize.3 \
archive_write_data.3 \
archive_write_disk.3 \
archive_write_filter.3 \
archive_write_finish_entry.3 \
archive_write_format.3 \
archive_write_free.3 \
archive_write_header.3 \
archive_write_new.3 \
archive_write_open.3 \
archive_write_set_options.3 \
cpio.5 \
libarchive.3 \
libarchive_changes.3 \
libarchive_internals.3 \
libarchive-formats.5 \
tar.5
# Symlink the man pages under each function name.
MLINKS+= archive_entry.3 archive_entry_clear.3
MLINKS+= archive_entry.3 archive_entry_clone.3
MLINKS+= archive_entry.3 archive_entry_free.3
MLINKS+= archive_entry.3 archive_entry_new.3
MLINKS+= archive_entry_acl.3 archive_entry_acl_add_entry.3
MLINKS+= archive_entry_acl.3 archive_entry_acl_add_entry_w.3
MLINKS+= archive_entry_acl.3 archive_entry_acl_clear.3
MLINKS+= archive_entry_acl.3 archive_entry_acl_count.3
MLINKS+= archive_entry_acl.3 archive_entry_acl_next.3
MLINKS+= archive_entry_acl.3 archive_entry_acl_next_w.3
MLINKS+= archive_entry_acl.3 archive_entry_acl_reset.3
MLINKS+= archive_entry_acl.3 archive_entry_acl_text_w.3
MLINKS+= archive_entry_linkify.3 archive_entry_linkresolver.3
MLINKS+= archive_entry_linkify.3 archive_entry_linkresolver_new.3
MLINKS+= archive_entry_linkify.3 archive_entry_linkresolver_set_strategy.3
MLINKS+= archive_entry_linkify.3 archive_entry_linkresolver_free.3
MLINKS+= archive_entry_paths.3 archive_entry_copy_hardlink.3
MLINKS+= archive_entry_paths.3 archive_entry_copy_hardlink_w.3
MLINKS+= archive_entry_paths.3 archive_entry_copy_link.3
MLINKS+= archive_entry_paths.3 archive_entry_copy_link_w.3
MLINKS+= archive_entry_paths.3 archive_entry_copy_pathname.3
MLINKS+= archive_entry_paths.3 archive_entry_copy_pathname_w.3
MLINKS+= archive_entry_paths.3 archive_entry_copy_sourcepath.3
MLINKS+= archive_entry_paths.3 archive_entry_copy_symlink.3
MLINKS+= archive_entry_paths.3 archive_entry_copy_symlink_w.3
MLINKS+= archive_entry_paths.3 archive_entry_hardlink.3
MLINKS+= archive_entry_paths.3 archive_entry_hardlink_w.3
MLINKS+= archive_entry_paths.3 archive_entry_pathname.3
MLINKS+= archive_entry_paths.3 archive_entry_pathname_w.3
MLINKS+= archive_entry_paths.3 archive_entry_set_hardlink.3
MLINKS+= archive_entry_paths.3 archive_entry_set_link.3
MLINKS+= archive_entry_paths.3 archive_entry_set_pathname.3
MLINKS+= archive_entry_paths.3 archive_entry_set_symlink.3
MLINKS+= archive_entry_paths.3 archive_entry_symlink.3
MLINKS+= archive_entry_paths.3 archive_entry_symlink_w.3
MLINKS+= archive_entry_paths.3 archive_entry_update_symlink_utf8.3
MLINKS+= archive_entry_paths.3 archive_entry_update_hardlink_utf8.3
MLINKS+= archive_entry_perms.3 archive_entry_copy_fflags_text.3
MLINKS+= archive_entry_perms.3 archive_entry_copy_fflags_text_w.3
MLINKS+= archive_entry_perms.3 archive_entry_copy_gname.3
MLINKS+= archive_entry_perms.3 archive_entry_copy_gname_w.3
MLINKS+= archive_entry_perms.3 archive_entry_copy_uname.3
MLINKS+= archive_entry_perms.3 archive_entry_copy_uname_w.3
MLINKS+= archive_entry_perms.3 archive_entry_fflags.3
MLINKS+= archive_entry_perms.3 archive_entry_fflags_text.3
MLINKS+= archive_entry_perms.3 archive_entry_gid.3
MLINKS+= archive_entry_perms.3 archive_entry_gname.3
MLINKS+= archive_entry_perms.3 archive_entry_gname_w.3
MLINKS+= archive_entry_perms.3 archive_entry_set_fflags.3
MLINKS+= archive_entry_perms.3 archive_entry_set_gid.3
MLINKS+= archive_entry_perms.3 archive_entry_set_gname.3
MLINKS+= archive_entry_perms.3 archive_entry_perm.3
MLINKS+= archive_entry_perms.3 archive_entry_set_perm.3
MLINKS+= archive_entry_perms.3 archive_entry_set_uid.3
MLINKS+= archive_entry_perms.3 archive_entry_set_uname.3
MLINKS+= archive_entry_perms.3 archive_entry_strmode.3
MLINKS+= archive_entry_perms.3 archive_entry_uid.3
MLINKS+= archive_entry_perms.3 archive_entry_uname.3
MLINKS+= archive_entry_perms.3 archive_entry_uname_w.3
MLINKS+= archive_entry_perms.3 archive_entry_update_gname_utf8.3
MLINKS+= archive_entry_perms.3 archive_entry_update_uname_utf8.3
MLINKS+= archive_entry_stat.3 archive_entry_copy_stat.3
MLINKS+= archive_entry_stat.3 archive_entry_dev.3
MLINKS+= archive_entry_stat.3 archive_entry_dev_is_set.3
MLINKS+= archive_entry_stat.3 archive_entry_devmajor.3
MLINKS+= archive_entry_stat.3 archive_entry_devminor.3
MLINKS+= archive_entry_stat.3 archive_entry_filetype.3
MLINKS+= archive_entry_stat.3 archive_entry_ino.3
MLINKS+= archive_entry_stat.3 archive_entry_ino64.3
MLINKS+= archive_entry_stat.3 archive_entry_ino_is_set.3
MLINKS+= archive_entry_stat.3 archive_entry_mode.3
MLINKS+= archive_entry_stat.3 archive_entry_nlink.3
MLINKS+= archive_entry_stat.3 archive_entry_rdev.3
MLINKS+= archive_entry_stat.3 archive_entry_rdevmajor.3
MLINKS+= archive_entry_stat.3 archive_entry_rdevminor.3
MLINKS+= archive_entry_stat.3 archive_entry_set_dev.3
MLINKS+= archive_entry_stat.3 archive_entry_set_devmajor.3
MLINKS+= archive_entry_stat.3 archive_entry_set_devminor.3
MLINKS+= archive_entry_stat.3 archive_entry_set_filetype.3
MLINKS+= archive_entry_stat.3 archive_entry_set_ino.3
MLINKS+= archive_entry_stat.3 archive_entry_set_ino64.3
MLINKS+= archive_entry_stat.3 archive_entry_set_mode.3
MLINKS+= archive_entry_stat.3 archive_entry_set_nlink.3
MLINKS+= archive_entry_stat.3 archive_entry_set_rdev.3
MLINKS+= archive_entry_stat.3 archive_entry_set_rdevmajor.3
MLINKS+= archive_entry_stat.3 archive_entry_set_rdevminor.3
MLINKS+= archive_entry_stat.3 archive_entry_set_size.3
MLINKS+= archive_entry_stat.3 archive_entry_size.3
MLINKS+= archive_entry_stat.3 archive_entry_size_is_set.3
MLINKS+= archive_entry_stat.3 archive_entry_unset_size.3
MLINKS+= archive_entry_time.3 archive_entry_atime.3
MLINKS+= archive_entry_time.3 archive_entry_atime_is_set.3
MLINKS+= archive_entry_time.3 archive_entry_atime_nsec.3
MLINKS+= archive_entry_time.3 archive_entry_birthtime.3
MLINKS+= archive_entry_time.3 archive_entry_birthtime_is_set.3
MLINKS+= archive_entry_time.3 archive_entry_birthtime_nsec.3
MLINKS+= archive_entry_time.3 archive_entry_ctime.3
MLINKS+= archive_entry_time.3 archive_entry_ctime_is_set.3
MLINKS+= archive_entry_time.3 archive_entry_ctime_nsec.3
MLINKS+= archive_entry_time.3 archive_entry_mtime.3
MLINKS+= archive_entry_time.3 archive_entry_mtime_is_set.3
MLINKS+= archive_entry_time.3 archive_entry_mtime_nsec.3
MLINKS+= archive_entry_time.3 archive_entry_set_atime.3
MLINKS+= archive_entry_time.3 archive_entry_set_birthtime.3
MLINKS+= archive_entry_time.3 archive_entry_set_ctime.3
MLINKS+= archive_entry_time.3 archive_entry_set_mtime.3
MLINKS+= archive_entry_time.3 archive_entry_unset_atime.3
MLINKS+= archive_entry_time.3 archive_entry_unset_birthtime.3
MLINKS+= archive_entry_time.3 archive_entry_unset_ctime.3
MLINKS+= archive_entry_time.3 archive_entry_unset_mtime.3
MLINKS+= archive_read_data.3 archive_read_data_block.3
MLINKS+= archive_read_data.3 archive_read_data_into_fd.3
MLINKS+= archive_read_data.3 archive_read_data_skip.3
MLINKS+= archive_read_header.3 archive_read_next_header.3
MLINKS+= archive_read_header.3 archive_read_next_header2.3
MLINKS+= archive_read_extract.3 archive_read_extract2.3
MLINKS+= archive_read_extract.3 archive_read_extract_set_progress_callback.3
MLINKS+= archive_read_extract.3 archive_read_extract_set_skip_file.3
MLINKS+= archive_read_open.3 archive_read_open2.3
MLINKS+= archive_read_open.3 archive_read_open_FILE.3
MLINKS+= archive_read_open.3 archive_read_open_fd.3
MLINKS+= archive_read_open.3 archive_read_open_file.3
MLINKS+= archive_read_open.3 archive_read_open_filename.3
MLINKS+= archive_read_open.3 archive_read_open_memory.3
MLINKS+= archive_read_free.3 archive_read_close.3
MLINKS+= archive_read_free.3 archive_read_finish.3
MLINKS+= archive_read_filter.3 archive_read_support_filter_all.3
MLINKS+= archive_read_filter.3 archive_read_support_filter_bzip2.3
MLINKS+= archive_read_filter.3 archive_read_support_filter_compress.3
MLINKS+= archive_read_filter.3 archive_read_support_filter_gzip.3
MLINKS+= archive_read_filter.3 archive_read_support_filter_lzma.3
MLINKS+= archive_read_filter.3 archive_read_support_filter_none.3
MLINKS+= archive_read_filter.3 archive_read_support_filter_xz.3
MLINKS+= archive_read_filter.3 archive_read_support_filter_program.3
MLINKS+= archive_read_filter.3 archive_read_support_filter_program_signature.3
MLINKS+= archive_read_format.3 archive_read_support_format_7zip.3
MLINKS+= archive_read_format.3 archive_read_support_format_all.3
MLINKS+= archive_read_format.3 archive_read_support_format_ar.3
MLINKS+= archive_read_format.3 archive_read_support_format_by_code.3
MLINKS+= archive_read_format.3 archive_read_support_format_cab.3
MLINKS+= archive_read_format.3 archive_read_support_format_cpio.3
MLINKS+= archive_read_format.3 archive_read_support_format_empty.3
MLINKS+= archive_read_format.3 archive_read_support_format_iso9660.3
MLINKS+= archive_read_format.3 archive_read_support_format_lha.3
MLINKS+= archive_read_format.3 archive_read_support_format_mtree.3
MLINKS+= archive_read_format.3 archive_read_support_format_rar.3
MLINKS+= archive_read_format.3 archive_read_support_format_raw.3
MLINKS+= archive_read_format.3 archive_read_support_format_tar.3
MLINKS+= archive_read_format.3 archive_read_support_format_xar.3
MLINKS+= archive_read_format.3 archive_read_support_format_zip.3
MLINKS+= archive_read_disk.3 archive_read_disk_entry_from_file.3
MLINKS+= archive_read_disk.3 archive_read_disk_gname.3
MLINKS+= archive_read_disk.3 archive_read_disk_new.3
MLINKS+= archive_read_disk.3 archive_read_disk_set_gname_lookup.3
MLINKS+= archive_read_disk.3 archive_read_disk_set_standard_lookup.3
MLINKS+= archive_read_disk.3 archive_read_disk_set_symlink_hybrid.3
MLINKS+= archive_read_disk.3 archive_read_disk_set_symlink_logical.3
MLINKS+= archive_read_disk.3 archive_read_disk_set_symlink_physical.3
MLINKS+= archive_read_disk.3 archive_read_disk_set_uname_lookup.3
MLINKS+= archive_read_disk.3 archive_read_disk_uname.3
MLINKS+= archive_read_set_options.3 archive_read_set_filter_option.3
MLINKS+= archive_read_set_options.3 archive_read_set_format_option.3
MLINKS+= archive_read_set_options.3 archive_read_set_option.3
MLINKS+= archive_util.3 archive_clear_error.3
MLINKS+= archive_util.3 archive_compression.3
MLINKS+= archive_util.3 archive_compression_name.3
MLINKS+= archive_util.3 archive_copy_error.3
MLINKS+= archive_util.3 archive_errno.3
MLINKS+= archive_util.3 archive_error_string.3
2009-12-28 02:58:14 +00:00
MLINKS+= archive_util.3 archive_file_count.3
MLINKS+= archive_util.3 archive_filter_code.3
MLINKS+= archive_util.3 archive_filter_count.3
MLINKS+= archive_util.3 archive_filter_name.3
MLINKS+= archive_util.3 archive_format.3
MLINKS+= archive_util.3 archive_format_name.3
MLINKS+= archive_util.3 archive_position.3
MLINKS+= archive_util.3 archive_set_error.3
MLINKS+= archive_write_blocksize.3 archive_write_get_bytes_in_last_block.3
MLINKS+= archive_write_blocksize.3 archive_write_get_bytes_per_block.3
MLINKS+= archive_write_blocksize.3 archive_write_set_bytes_in_last_block.3
MLINKS+= archive_write_blocksize.3 archive_write_set_bytes_per_block.3
MLINKS+= archive_write_disk.3 archive_write_data_block.3
MLINKS+= archive_write_disk.3 archive_write_disk_new.3
MLINKS+= archive_write_disk.3 archive_write_disk_set_group_lookup.3
MLINKS+= archive_write_disk.3 archive_write_disk_set_options.3
MLINKS+= archive_write_disk.3 archive_write_disk_set_skip_file.3
MLINKS+= archive_write_disk.3 archive_write_disk_set_standard_lookup.3
MLINKS+= archive_write_disk.3 archive_write_disk_set_user_lookup.3
MLINKS+= archive_write_filter.3 archive_write_add_filter_bzip2.3
MLINKS+= archive_write_filter.3 archive_write_add_filter_compress.3
MLINKS+= archive_write_filter.3 archive_write_add_filter_gzip.3
MLINKS+= archive_write_filter.3 archive_write_add_filter_lzip.3
MLINKS+= archive_write_filter.3 archive_write_add_filter_lzma.3
MLINKS+= archive_write_filter.3 archive_write_add_filter_none.3
MLINKS+= archive_write_filter.3 archive_write_add_filter_program.3
MLINKS+= archive_write_filter.3 archive_write_add_filter_xz.3
MLINKS+= archive_write_format.3 archive_write_set_format_cpio.3
MLINKS+= archive_write_format.3 archive_write_set_format_pax.3
MLINKS+= archive_write_format.3 archive_write_set_format_pax_restricted.3
MLINKS+= archive_write_format.3 archive_write_set_format_shar.3
MLINKS+= archive_write_format.3 archive_write_set_format_shar_dump.3
MLINKS+= archive_write_format.3 archive_write_set_format_ustar.3
MLINKS+= archive_write_free.3 archive_write_close.3
MLINKS+= archive_write_free.3 archive_write_fail.3
MLINKS+= archive_write_free.3 archive_write_finish.3
MLINKS+= archive_write_open.3 archive_write_open_FILE.3
MLINKS+= archive_write_open.3 archive_write_open_fd.3
MLINKS+= archive_write_open.3 archive_write_open_file.3
MLINKS+= archive_write_open.3 archive_write_open_filename.3
MLINKS+= archive_write_open.3 archive_write_open_memory.3
MLINKS+= archive_write_set_options.3 archive_write_set_filter_option.3
MLINKS+= archive_write_set_options.3 archive_write_set_format_option.3
MLINKS+= archive_write_set_options.3 archive_write_set_option.3
MLINKS+= libarchive.3 archive.3
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>