2004-02-09 23:22:54 +00:00
|
|
|
# $FreeBSD$
|
2004-08-07 03:09:28 +00:00
|
|
|
|
|
|
|
LIB= archive
|
2005-11-10 18:07:07 +00:00
|
|
|
DPADD= ${LIBBZ2} ${LIBZ}
|
|
|
|
LDADD= -lbz2 -lz
|
2005-10-13 05:51:38 +00:00
|
|
|
|
2006-11-06 00:24:57 +00:00
|
|
|
# FreeBSD SHLIB_MAJOR value is managed as part of the FreeBSD system.
|
2008-05-26 17:00:24 +00:00
|
|
|
# It has no real relation to the libarchive version number.
|
2007-03-03 07:37:37 +00:00
|
|
|
SHLIB_MAJOR= 4
|
2005-10-13 05:51:38 +00:00
|
|
|
|
2007-04-12 04:44:21 +00:00
|
|
|
CFLAGS+= -DPLATFORM_CONFIG_H=\"config_freebsd.h\"
|
2004-08-07 03:09:28 +00:00
|
|
|
CFLAGS+= -I${.OBJDIR}
|
|
|
|
|
|
|
|
WARNS?= 6
|
|
|
|
|
2005-10-13 05:51:38 +00:00
|
|
|
# Headers to be installed in /usr/include
|
2004-08-07 03:09:28 +00:00
|
|
|
INCS= archive.h archive_entry.h
|
|
|
|
|
2006-03-08 01:56:06 +00:00
|
|
|
# Sources to be compiled.
|
2008-06-15 05:05:53 +00:00
|
|
|
SRCS= archive_check_magic.c \
|
2004-08-07 03:09:28 +00:00
|
|
|
archive_entry.c \
|
2007-05-29 01:00:21 +00:00
|
|
|
archive_entry_copy_stat.c \
|
|
|
|
archive_entry_stat.c \
|
2007-12-30 04:58:22 +00:00
|
|
|
archive_entry_strmode.c \
|
|
|
|
archive_entry_link_resolver.c \
|
2004-08-07 03:09:28 +00:00
|
|
|
archive_read.c \
|
|
|
|
archive_read_data_into_fd.c \
|
|
|
|
archive_read_extract.c \
|
|
|
|
archive_read_open_fd.c \
|
2006-11-24 16:35:54 +00:00
|
|
|
archive_read_open_file.c \
|
2006-11-20 16:48:04 +00:00
|
|
|
archive_read_open_filename.c \
|
2006-11-24 16:35:54 +00:00
|
|
|
archive_read_open_memory.c \
|
2004-08-07 03:09:28 +00:00
|
|
|
archive_read_support_compression_all.c \
|
|
|
|
archive_read_support_compression_bzip2.c \
|
|
|
|
archive_read_support_compression_compress.c \
|
|
|
|
archive_read_support_compression_gzip.c \
|
|
|
|
archive_read_support_compression_none.c \
|
2007-05-29 01:00:21 +00:00
|
|
|
archive_read_support_compression_program.c \
|
2004-08-07 03:09:28 +00:00
|
|
|
archive_read_support_format_all.c \
|
2007-04-14 22:34:10 +00:00
|
|
|
archive_read_support_format_ar.c \
|
2004-08-07 03:09:28 +00:00
|
|
|
archive_read_support_format_cpio.c \
|
2007-02-01 06:18:17 +00:00
|
|
|
archive_read_support_format_empty.c \
|
2005-01-02 05:21:15 +00:00
|
|
|
archive_read_support_format_iso9660.c \
|
2007-12-30 04:58:22 +00:00
|
|
|
archive_read_support_format_mtree.c \
|
2004-08-07 03:09:28 +00:00
|
|
|
archive_read_support_format_tar.c \
|
2005-01-25 06:07:28 +00:00
|
|
|
archive_read_support_format_zip.c \
|
2004-08-07 03:09:28 +00:00
|
|
|
archive_string.c \
|
|
|
|
archive_string_sprintf.c \
|
|
|
|
archive_util.c \
|
2007-03-03 07:37:37 +00:00
|
|
|
archive_virtual.c \
|
2004-08-07 03:09:28 +00:00
|
|
|
archive_write.c \
|
2007-03-03 07:37:37 +00:00
|
|
|
archive_write_disk.c \
|
|
|
|
archive_write_disk_set_standard_lookup.c \
|
2004-08-07 03:09:28 +00:00
|
|
|
archive_write_open_fd.c \
|
2006-11-24 16:35:54 +00:00
|
|
|
archive_write_open_file.c \
|
2006-11-20 16:48:04 +00:00
|
|
|
archive_write_open_filename.c \
|
2006-11-24 16:35:54 +00:00
|
|
|
archive_write_open_memory.c \
|
2004-08-07 03:09:28 +00:00
|
|
|
archive_write_set_compression_bzip2.c \
|
2008-03-14 20:35:38 +00:00
|
|
|
archive_write_set_compression_compress.c \
|
2004-08-07 03:09:28 +00:00
|
|
|
archive_write_set_compression_gzip.c \
|
|
|
|
archive_write_set_compression_none.c \
|
2007-05-29 01:00:21 +00:00
|
|
|
archive_write_set_compression_program.c \
|
2004-08-07 03:09:28 +00:00
|
|
|
archive_write_set_format.c \
|
2007-04-07 05:54:23 +00:00
|
|
|
archive_write_set_format_ar.c \
|
2004-08-07 03:09:28 +00:00
|
|
|
archive_write_set_format_by_name.c \
|
|
|
|
archive_write_set_format_cpio.c \
|
2007-06-22 05:47:00 +00:00
|
|
|
archive_write_set_format_cpio_newc.c \
|
2004-08-07 03:09:28 +00:00
|
|
|
archive_write_set_format_pax.c \
|
|
|
|
archive_write_set_format_shar.c \
|
2007-05-29 01:00:21 +00:00
|
|
|
archive_write_set_format_ustar.c \
|
|
|
|
filter_fork.c
|
2004-08-07 03:09:28 +00:00
|
|
|
|
2005-10-13 05:51:38 +00:00
|
|
|
# Man pages to be installed.
|
2004-08-07 03:09:28 +00:00
|
|
|
MAN= archive_entry.3 \
|
|
|
|
archive_read.3 \
|
|
|
|
archive_util.3 \
|
|
|
|
archive_write.3 \
|
2007-03-03 07:37:37 +00:00
|
|
|
archive_write_disk.3 \
|
2007-12-30 04:58:22 +00:00
|
|
|
cpio.5 \
|
2004-08-07 03:09:28 +00:00
|
|
|
libarchive.3 \
|
|
|
|
libarchive-formats.5 \
|
|
|
|
tar.5
|
|
|
|
|
2005-10-13 05:51:38 +00:00
|
|
|
# Symlink the man pages under each function name.
|
2004-08-07 03:09:28 +00:00
|
|
|
MLINKS+= archive_entry.3 archive_entry_acl_add_entry.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_acl_add_entry_w.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_acl_clear.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_acl_count.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_acl_next.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_acl_next_w.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_acl_reset.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_acl_text_w.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_clear.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_clone.3
|
2008-05-26 17:00:24 +00:00
|
|
|
MLINKS+= archive_entry.3 archive_entry_copy_fflags_text.3
|
2004-08-07 03:09:28 +00:00
|
|
|
MLINKS+= archive_entry.3 archive_entry_copy_fflags_text_w.3
|
2007-07-15 19:10:34 +00:00
|
|
|
MLINKS+= archive_entry.3 archive_entry_copy_gname.3
|
2004-08-07 03:09:28 +00:00
|
|
|
MLINKS+= archive_entry.3 archive_entry_copy_gname_w.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_copy_hardlink_w.3
|
2008-03-14 23:00:53 +00:00
|
|
|
MLINKS+= archive_entry.3 archive_entry_copy_link.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_copy_link_w.3
|
2004-08-07 03:09:28 +00:00
|
|
|
MLINKS+= archive_entry.3 archive_entry_copy_pathname_w.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_copy_stat.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_copy_symlink_w.3
|
2007-07-15 19:10:34 +00:00
|
|
|
MLINKS+= archive_entry.3 archive_entry_copy_uname.3
|
2004-08-07 03:09:28 +00:00
|
|
|
MLINKS+= archive_entry.3 archive_entry_copy_uname_w.3
|
2007-05-29 01:00:21 +00:00
|
|
|
MLINKS+= archive_entry.3 archive_entry_dev.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_devmajor.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_devminor.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_filetype.3
|
2004-08-07 03:09:28 +00:00
|
|
|
MLINKS+= archive_entry.3 archive_entry_fflags.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_fflags_text.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_free.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_gid.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_gname.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_gname_w.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_hardlink.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_ino.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_mode.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_mtime.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_mtime_nsec.3
|
2007-05-29 01:00:21 +00:00
|
|
|
MLINKS+= archive_entry.3 archive_entry_nlink.3
|
2004-08-07 03:09:28 +00:00
|
|
|
MLINKS+= archive_entry.3 archive_entry_new.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_pathname.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_pathname_w.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_rdev.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_rdevmajor.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_rdevminor.3
|
2007-05-29 01:00:21 +00:00
|
|
|
MLINKS+= archive_entry.3 archive_entry_set_atime.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_set_ctime.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_set_dev.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_set_devmajor.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_set_devminor.3
|
2004-08-07 03:09:28 +00:00
|
|
|
MLINKS+= archive_entry.3 archive_entry_set_fflags.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_set_gid.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_set_gname.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_set_hardlink.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_set_link.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_set_mode.3
|
2007-05-29 01:00:21 +00:00
|
|
|
MLINKS+= archive_entry.3 archive_entry_set_mtime.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_set_nlink.3
|
2004-08-07 03:09:28 +00:00
|
|
|
MLINKS+= archive_entry.3 archive_entry_set_pathname.3
|
2007-05-29 01:00:21 +00:00
|
|
|
MLINKS+= archive_entry.3 archive_entry_set_rdev.3
|
2004-08-07 03:09:28 +00:00
|
|
|
MLINKS+= archive_entry.3 archive_entry_set_rdevmajor.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_set_rdevminor.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_set_size.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_set_symlink.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_set_uid.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_set_uname.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_size.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_stat.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_symlink.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_uid.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_uname.3
|
|
|
|
MLINKS+= archive_entry.3 archive_entry_uname_w.3
|
|
|
|
MLINKS+= archive_read.3 archive_read_data.3
|
|
|
|
MLINKS+= archive_read.3 archive_read_data_block.3
|
|
|
|
MLINKS+= archive_read.3 archive_read_data_into_buffer.3
|
|
|
|
MLINKS+= archive_read.3 archive_read_data_into_fd.3
|
|
|
|
MLINKS+= archive_read.3 archive_read_data_skip.3
|
|
|
|
MLINKS+= archive_read.3 archive_read_extract.3
|
|
|
|
MLINKS+= archive_read.3 archive_read_extract_set_progress_callback.3
|
2006-09-05 05:59:46 +00:00
|
|
|
MLINKS+= archive_read.3 archive_read_extract_set_skip_file.3
|
2004-08-07 03:09:28 +00:00
|
|
|
MLINKS+= archive_read.3 archive_read_finish.3
|
|
|
|
MLINKS+= archive_read.3 archive_read_new.3
|
|
|
|
MLINKS+= archive_read.3 archive_read_next_header.3
|
|
|
|
MLINKS+= archive_read.3 archive_read_open.3
|
2006-09-05 05:59:46 +00:00
|
|
|
MLINKS+= archive_read.3 archive_read_open2.3
|
2006-11-24 16:35:54 +00:00
|
|
|
MLINKS+= archive_read.3 archive_read_open_FILE.3
|
2004-08-07 03:09:28 +00:00
|
|
|
MLINKS+= archive_read.3 archive_read_open_fd.3
|
|
|
|
MLINKS+= archive_read.3 archive_read_open_file.3
|
2006-11-20 16:48:04 +00:00
|
|
|
MLINKS+= archive_read.3 archive_read_open_filename.3
|
2006-11-24 16:35:54 +00:00
|
|
|
MLINKS+= archive_read.3 archive_read_open_memory.3
|
2004-08-07 03:09:28 +00:00
|
|
|
MLINKS+= archive_read.3 archive_read_support_compression_all.3
|
|
|
|
MLINKS+= archive_read.3 archive_read_support_compression_bzip2.3
|
|
|
|
MLINKS+= archive_read.3 archive_read_support_compression_compress.3
|
|
|
|
MLINKS+= archive_read.3 archive_read_support_compression_gzip.3
|
|
|
|
MLINKS+= archive_read.3 archive_read_support_compression_none.3
|
2007-05-29 01:00:21 +00:00
|
|
|
MLINKS+= archive_read.3 archive_read_support_compression_program.3
|
2004-08-07 03:09:28 +00:00
|
|
|
MLINKS+= archive_read.3 archive_read_support_format_all.3
|
|
|
|
MLINKS+= archive_read.3 archive_read_support_format_cpio.3
|
2005-01-08 19:51:04 +00:00
|
|
|
MLINKS+= archive_read.3 archive_read_support_format_iso9660.3
|
2004-08-07 03:09:28 +00:00
|
|
|
MLINKS+= archive_read.3 archive_read_support_format_tar.3
|
2005-01-25 06:07:28 +00:00
|
|
|
MLINKS+= archive_read.3 archive_read_support_format_zip.3
|
2007-03-03 07:37:37 +00:00
|
|
|
MLINKS+= archive_util.3 archive_clear_error.3
|
2004-08-07 03:09:28 +00:00
|
|
|
MLINKS+= archive_util.3 archive_compression.3
|
|
|
|
MLINKS+= archive_util.3 archive_compression_name.3
|
|
|
|
MLINKS+= archive_util.3 archive_errno.3
|
|
|
|
MLINKS+= archive_util.3 archive_error_string.3
|
|
|
|
MLINKS+= archive_util.3 archive_format.3
|
|
|
|
MLINKS+= archive_util.3 archive_format_name.3
|
2004-11-05 05:38:15 +00:00
|
|
|
MLINKS+= archive_util.3 archive_set_error.3
|
2008-03-21 11:10:20 +00:00
|
|
|
MLINKS+= archive_write.3 archive_write_close.3
|
2004-08-07 03:09:28 +00:00
|
|
|
MLINKS+= archive_write.3 archive_write_data.3
|
|
|
|
MLINKS+= archive_write.3 archive_write_finish.3
|
2006-11-26 19:00:50 +00:00
|
|
|
MLINKS+= archive_write.3 archive_write_finish_entry.3
|
|
|
|
MLINKS+= archive_write.3 archive_write_get_bytes_in_last_block.3
|
|
|
|
MLINKS+= archive_write.3 archive_write_get_bytes_per_block.3
|
2004-08-07 03:09:28 +00:00
|
|
|
MLINKS+= archive_write.3 archive_write_header.3
|
|
|
|
MLINKS+= archive_write.3 archive_write_new.3
|
|
|
|
MLINKS+= archive_write.3 archive_write_open.3
|
2006-11-24 16:35:54 +00:00
|
|
|
MLINKS+= archive_write.3 archive_write_open_FILE.3
|
2004-08-07 03:09:28 +00:00
|
|
|
MLINKS+= archive_write.3 archive_write_open_fd.3
|
|
|
|
MLINKS+= archive_write.3 archive_write_open_file.3
|
2006-11-20 16:48:04 +00:00
|
|
|
MLINKS+= archive_write.3 archive_write_open_filename.3
|
2006-11-24 16:35:54 +00:00
|
|
|
MLINKS+= archive_write.3 archive_write_open_memory.3
|
2004-08-07 03:09:28 +00:00
|
|
|
MLINKS+= archive_write.3 archive_write_set_bytes_in_last_block.3
|
2006-11-24 16:35:54 +00:00
|
|
|
MLINKS+= archive_write.3 archive_write_set_bytes_per_block.3
|
2004-08-07 03:09:28 +00:00
|
|
|
MLINKS+= archive_write.3 archive_write_set_callbacks.3
|
|
|
|
MLINKS+= archive_write.3 archive_write_set_compression_bzip2.3
|
2008-05-26 17:00:24 +00:00
|
|
|
MLINKS+= archive_write.3 archive_write_set_compression_compress.3
|
2004-08-07 03:09:28 +00:00
|
|
|
MLINKS+= archive_write.3 archive_write_set_compression_gzip.3
|
2007-05-29 01:00:21 +00:00
|
|
|
MLINKS+= archive_write.3 archive_write_set_compression_none.3
|
|
|
|
MLINKS+= archive_write.3 archive_write_set_compression_program.3
|
2004-08-07 03:09:28 +00:00
|
|
|
MLINKS+= archive_write.3 archive_write_set_format_pax.3
|
|
|
|
MLINKS+= archive_write.3 archive_write_set_format_shar.3
|
|
|
|
MLINKS+= archive_write.3 archive_write_set_format_ustar.3
|
2007-03-03 07:37:37 +00:00
|
|
|
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
|
2004-08-07 03:09:28 +00:00
|
|
|
MLINKS+= libarchive.3 archive.3
|
|
|
|
|
2008-05-26 17:00:24 +00:00
|
|
|
.PHONY: check test
|
|
|
|
check test:
|
2007-03-03 07:37:37 +00:00
|
|
|
cd ${.CURDIR}/test && make test
|
|
|
|
|
2004-08-07 03:09:28 +00:00
|
|
|
.include <bsd.lib.mk>
|