xref: /dragonfly/lib/libarchive/Makefile (revision 5153f92b)
1# $DragonFly: src/lib/libarchive/Makefile,v 1.1 2004/11/10 18:02:24 joerg Exp $
2
3LIB=	archive
4
5PATCHES!=	echo ${.CURDIR}/patches/*.patch
6CONTRIBDIR=	${.CURDIR}/../../contrib/libarchive
7.PATH: ${CONTRIBDIR}
8
9VERSION=	1.01.015
10ARCHIVE_API_FEATURE=	2
11ARCHIVE_API_VERSION=	1
12SHLIB_MAJOR=	1
13CFLAGS+=	-DPACKAGE_NAME=\"lib${LIB}\"
14CFLAGS+=	-DPACKAGE_VERSION=\"${VERSION}\"
15CFLAGS+=	-DHAVE_CONFIG_H
16
17CFLAGS+=	-I${.OBJDIR} -I${.CURDIR} -I${CONTRIBDIR}
18WARNS?=	6
19
20INCS=	archive.h archive_entry.h
21
22# Note: archive.h does need to be listed here, since it's built
23SRCS=	archive.h					\
24	archive_check_magic.c				\
25	archive_entry.c					\
26	archive_read.c					\
27	archive_read_data_into_buffer.c			\
28	archive_read_data_into_fd.c			\
29	archive_read_extract.c				\
30	archive_read_open_fd.c				\
31	archive_read_open_file.c			\
32	archive_read_support_compression_all.c		\
33	archive_read_support_compression_bzip2.c	\
34	archive_read_support_compression_compress.c	\
35	archive_read_support_compression_gzip.c		\
36	archive_read_support_compression_none.c		\
37	archive_read_support_format_all.c		\
38	archive_read_support_format_cpio.c		\
39	archive_read_support_format_tar.c		\
40	archive_string.c				\
41	archive_string_sprintf.c			\
42	archive_util.c					\
43	archive_write.c					\
44	archive_write_open_fd.c				\
45	archive_write_open_file.c			\
46	archive_write_set_compression_bzip2.c		\
47	archive_write_set_compression_gzip.c		\
48	archive_write_set_compression_none.c		\
49	archive_write_set_format.c			\
50	archive_write_set_format_by_name.c		\
51	archive_write_set_format_cpio.c			\
52	archive_write_set_format_pax.c			\
53	archive_write_set_format_shar.c			\
54	archive_write_set_format_ustar.c
55
56SRCS+=	${PATCHES}
57
58MAN=	archive_entry.3					\
59	archive_read.3					\
60	archive_util.3					\
61	archive_write.3					\
62	libarchive.3					\
63	libarchive-formats.5				\
64	tar.5
65
66MLINKS+=	archive_entry.3 archive_entry_acl_add_entry.3
67MLINKS+=	archive_entry.3 archive_entry_acl_add_entry_w.3
68MLINKS+=	archive_entry.3 archive_entry_acl_clear.3
69MLINKS+=	archive_entry.3 archive_entry_acl_count.3
70MLINKS+=	archive_entry.3 archive_entry_acl_next.3
71MLINKS+=	archive_entry.3 archive_entry_acl_next_w.3
72MLINKS+=	archive_entry.3 archive_entry_acl_reset.3
73MLINKS+=	archive_entry.3 archive_entry_acl_text_w.3
74MLINKS+=	archive_entry.3 archive_entry_clear.3
75MLINKS+=	archive_entry.3 archive_entry_clone.3
76MLINKS+=	archive_entry.3 archive_entry_copy_fflags_text_w.3
77MLINKS+=	archive_entry.3 archive_entry_copy_gname_w.3
78MLINKS+=	archive_entry.3 archive_entry_copy_hardlink_w.3
79MLINKS+=	archive_entry.3 archive_entry_copy_pathname_w.3
80MLINKS+=	archive_entry.3 archive_entry_copy_stat.3
81MLINKS+=	archive_entry.3 archive_entry_copy_symlink_w.3
82MLINKS+=	archive_entry.3 archive_entry_copy_uname_w.3
83MLINKS+=	archive_entry.3 archive_entry_fflags.3
84MLINKS+=	archive_entry.3 archive_entry_fflags_text.3
85MLINKS+=	archive_entry.3 archive_entry_free.3
86MLINKS+=	archive_entry.3 archive_entry_gid.3
87MLINKS+=	archive_entry.3 archive_entry_gname.3
88MLINKS+=	archive_entry.3 archive_entry_gname_w.3
89MLINKS+=	archive_entry.3 archive_entry_hardlink.3
90MLINKS+=	archive_entry.3 archive_entry_ino.3
91MLINKS+=	archive_entry.3 archive_entry_mode.3
92MLINKS+=	archive_entry.3 archive_entry_mtime.3
93MLINKS+=	archive_entry.3 archive_entry_mtime_nsec.3
94MLINKS+=	archive_entry.3 archive_entry_new.3
95MLINKS+=	archive_entry.3 archive_entry_pathname.3
96MLINKS+=	archive_entry.3 archive_entry_pathname_w.3
97MLINKS+=	archive_entry.3 archive_entry_rdev.3
98MLINKS+=	archive_entry.3 archive_entry_rdevmajor.3
99MLINKS+=	archive_entry.3 archive_entry_rdevminor.3
100MLINKS+=	archive_entry.3 archive_entry_set_fflags.3
101MLINKS+=	archive_entry.3 archive_entry_set_gid.3
102MLINKS+=	archive_entry.3 archive_entry_set_gname.3
103MLINKS+=	archive_entry.3 archive_entry_set_hardlink.3
104MLINKS+=	archive_entry.3 archive_entry_set_link.3
105MLINKS+=	archive_entry.3 archive_entry_set_mode.3
106MLINKS+=	archive_entry.3 archive_entry_set_pathname.3
107MLINKS+=	archive_entry.3 archive_entry_set_rdevmajor.3
108MLINKS+=	archive_entry.3 archive_entry_set_rdevminor.3
109MLINKS+=	archive_entry.3 archive_entry_set_size.3
110MLINKS+=	archive_entry.3 archive_entry_set_symlink.3
111MLINKS+=	archive_entry.3 archive_entry_set_uid.3
112MLINKS+=	archive_entry.3 archive_entry_set_uname.3
113MLINKS+=	archive_entry.3 archive_entry_size.3
114MLINKS+=	archive_entry.3 archive_entry_stat.3
115MLINKS+=	archive_entry.3 archive_entry_symlink.3
116MLINKS+=	archive_entry.3 archive_entry_uid.3
117MLINKS+=	archive_entry.3 archive_entry_uname.3
118MLINKS+=	archive_entry.3 archive_entry_uname_w.3
119MLINKS+=	archive_read.3 archive_read_data.3
120MLINKS+=	archive_read.3 archive_read_data_block.3
121MLINKS+=	archive_read.3 archive_read_data_into_buffer.3
122MLINKS+=	archive_read.3 archive_read_data_into_fd.3
123MLINKS+=	archive_read.3 archive_read_data_skip.3
124MLINKS+=	archive_read.3 archive_read_extract.3
125MLINKS+=	archive_read.3 archive_read_extract_set_progress_callback.3
126MLINKS+=	archive_read.3 archive_read_finish.3
127MLINKS+=	archive_read.3 archive_read_new.3
128MLINKS+=	archive_read.3 archive_read_next_header.3
129MLINKS+=	archive_read.3 archive_read_open.3
130MLINKS+=	archive_read.3 archive_read_open_fd.3
131MLINKS+=	archive_read.3 archive_read_open_file.3
132MLINKS+=	archive_read.3 archive_read_set_bytes_per_block.3
133MLINKS+=	archive_read.3 archive_read_support_compression_all.3
134MLINKS+=	archive_read.3 archive_read_support_compression_bzip2.3
135MLINKS+=	archive_read.3 archive_read_support_compression_compress.3
136MLINKS+=	archive_read.3 archive_read_support_compression_gzip.3
137MLINKS+=	archive_read.3 archive_read_support_compression_none.3
138MLINKS+=	archive_read.3 archive_read_support_format_all.3
139MLINKS+=	archive_read.3 archive_read_support_format_cpio.3
140MLINKS+=	archive_read.3 archive_read_support_format_tar.3
141MLINKS+=	archive_util.3 archive_compression.3
142MLINKS+=	archive_util.3 archive_compression_name.3
143MLINKS+=	archive_util.3 archive_errno.3
144MLINKS+=	archive_util.3 archive_error_string.3
145MLINKS+=	archive_util.3 archive_format.3
146MLINKS+=	archive_util.3 archive_format_name.3
147MLINKS+=	archive_util.3 archive_set_error.3
148MLINKS+=	archive_write.3 archive_write_data.3
149MLINKS+=	archive_write.3 archive_write_finish.3
150MLINKS+=	archive_write.3 archive_write_header.3
151MLINKS+=	archive_write.3 archive_write_new.3
152MLINKS+=	archive_write.3 archive_write_open.3
153MLINKS+=	archive_write.3 archive_write_open_fd.3
154MLINKS+=	archive_write.3 archive_write_open_file.3
155MLINKS+=	archive_write.3 archive_write_prepare.3
156MLINKS+=	archive_write.3 archive_write_set_bytes_per_block.3
157MLINKS+=	archive_write.3 archive_write_set_bytes_in_last_block.3
158MLINKS+=	archive_write.3 archive_write_set_callbacks.3
159MLINKS+=	archive_write.3 archive_write_set_compression_bzip2.3
160MLINKS+=	archive_write.3 archive_write_set_compression_gzip.3
161MLINKS+=	archive_write.3 archive_write_set_format_pax.3
162MLINKS+=	archive_write.3 archive_write_set_format_shar.3
163MLINKS+=	archive_write.3 archive_write_set_format_ustar.3
164MLINKS+=	libarchive.3 archive.3
165
166# Build archive.h from archive.h.in
167archive.h:	archive.h.in Makefile
168	cat ${CONTRIBDIR}/archive.h.in |				\
169		sed 's/@ARCHIVE_API_VERSION@/${ARCHIVE_API_VERSION}/' |	\
170		sed 's/@ARCHIVE_API_FEATURE@/${ARCHIVE_API_FEATURE}/' |	\
171		cat > archive.h
172
173# archive.h needs to be cleaned
174CLEANFILES+=	archive.h
175
176.include <bsd.lib.mk>
177