Ravenports generated: 04 Mar 2023 16:17
[ravenports.git] / bucket_12 / libarchive
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               libarchive
4 VERSION=                3.6.2
5 KEYWORDS=               archivers
6 VARIANTS=               standard static extended ravensw
7 SDESC[standard]=        Library to handle many streaming archive formats
8 SDESC[extended]=        Extended libarchive with lzo and lz4 capability
9 SDESC[static]=          Static build of libarchive
10 SDESC[ravensw]=         Zstd-only libarchive for ravensw
11 HOMEPAGE=               http://libarchive.org/
12 CONTACT=                nobody
13
14 DOWNLOAD_GROUPS=        main
15 SITES[main]=            http://libarchive.org/downloads/
16                         https://www.libarchive.de/downloads/
17 DISTFILE[1]=            libarchive-3.6.2.tar.gz:main
18 DF_INDEX=               1
19 SPKGS[standard]=        single
20 SPKGS[extended]=        single
21 SPKGS[static]=          single
22 SPKGS[ravensw]=         single
23
24 OPTIONS_AVAILABLE=      NOT_STD STATIC EXTENDED RAVENSW
25 OPTIONS_STANDARD=       none
26 VOPTS[extended]=        NOT_STD=ON STATIC=OFF EXTENDED=ON RAVENSW=OFF
27 VOPTS[static]=          NOT_STD=ON STATIC=ON EXTENDED=OFF RAVENSW=OFF
28 VOPTS[ravensw]=         NOT_STD=ON STATIC=OFF EXTENDED=OFF RAVENSW=ON
29
30 USES=                   cpe libtool
31
32 LICENSE=                BSD2CLAUSE:single BSD3CLAUSE:single PUBDOM:single
33 LICENSE_FILE=           BSD2CLAUSE:{{WRKSRC}}/COPYING
34                         BSD3CLAUSE:{{WRKSRC}}/COPYING
35                         PUBDOM:{{WRKSRC}}/COPYING
36 LICENSE_SCHEME=         multi
37
38 FPC_EQUIVALENT=         archivers/libarchive
39
40 MUST_CONFIGURE=         gnu
41 CONFIGURE_ARGS=         --without-xml2
42                         --without-iconv
43                         --disable-acl
44 CONFIGURE_ENV=          ac_cv_lib_md_MD5Init=no
45
46 INSTALL_TARGET=         install-strip
47 SOVERSION=              13.6.2
48
49 CFLAGS=                 -I{{LOCALBASE}}/libressl/include
50 CPPFLAGS=               -I{{LOCALBASE}}/libressl/include
51 LDFLAGS=                -lpthread
52                         -L{{LOCALBASE}}/libressl/lib
53
54 [STATIC].DESCRIPTION=                   Build version for raven sysroots
55 [STATIC].BUILD_DEPENDS_ON=              libressl:dev:standard
56 [STATIC].CONFIGURE_ARGS_ON=             --enable-shared=no
57                                         --enable-static=yes
58 [STATIC].LDFLAGS_OFF=                   -Wl,-rpath,{{LOCALBASE}}/libressl/lib
59 [STATIC].USES_ON=                       zstd:build
60                                         expat:build
61                                         bz2:build
62                                         zlib:build
63                                         xz:build
64
65 [RAVENSW].DESCRIPTION=                  Build zstd-only version for ravensw
66 [RAVENSW].BUILD_DEPENDS_ON=             libressl:dev:standard
67 [RAVENSW].CONFIGURE_ARGS_ON=            --enable-shared=yes
68                                         --enable-static=yes
69                                         --without-zlib
70                                         --without-bz2lib
71                                         --without-libb2
72                                         --without-lz4
73                                         --without-lzo2
74                                         --without-lzma
75                                         --enable-bsdtar=no
76                                         --enable-bsdcat=no
77                                         --enable-bsdcpio=no
78 [RAVENSW].USES_ON=                      zstd
79                                         expat
80
81 [EXTENDED].DESCRIPTION=                 Build loaded version (common + lzo + lz4)
82 [EXTENDED].BUILDRUN_DEPENDS_ON=         libressl:primary:standard
83 [EXTENDED].BUILD_DEPENDS_ON=            libressl:dev:standard
84 [EXTENDED].CONFIGURE_ARGS_ON=           --enable-shared=yes
85                                         --with-lzo2
86                                         --with-lz4
87 [EXTENDED].USES_ON=                     lz4
88                                         lzo
89                                         zstd
90                                         expat
91                                         bz2
92                                         zlib
93                                         xz
94
95 [NOT_STD].DESCRIPTION=                  Don't build common user version
96 [NOT_STD].BUILDRUN_DEPENDS_OFF=         libressl:primary:standard
97 [NOT_STD].BUILD_DEPENDS_OFF=            libressl:dev:standard
98 [NOT_STD].CONFIGURE_ARGS_OFF=           --enable-shared=yes
99 [NOT_STD].USES_OFF=                     zstd
100                                         expat
101                                         bz2
102                                         zlib
103                                         xz
104
105 post-build-RAVENSW-ON:
106         # assemble PIC library
107         (cd ${WRKSRC}/libarchive/.libs &&\
108          ${AR} -cruv libarchive_pic.a *.o &&\
109          ranlib libarchive_pic.a)
110
111 pre-configure-STATIC-ON:
112         # Remove dead symlinks that confuse linker
113         ${RM} ${LOCALBASE}/lib/libz.so
114         ${RM} ${LOCALBASE}/lib/libbz2.so
115         ${RM} ${LOCALBASE}/lib/libexpat.so
116         ${RM} ${LOCALBASE}/lib/liblzma.so
117         ${RM} ${LOCALBASE}/libressl/lib*.so
118
119 do-test:
120         (cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} check)
121
122 post-install-RAVENSW-ON:
123         ${RM} -r ${STAGEDIR}${MANPREFIX}/man/man[135]
124         ${RM} ${STAGEDIR}${PREFIX}/lib/libarchive.so*
125         ${RM} ${LOCALBASE}/libressl/lib*.so
126         # install our PIC library
127         ${INSTALL_DATA} ${WRKSRC}/libarchive/.libs/libarchive_pic.a \
128                 ${STAGEDIR}${PREFIX}/lib/
129
130 [FILE:1042:descriptions/desc.single]
131 The libarchive library features:
132  * Support for a variety of archive and compression formats.
133  * Robust automatic format detection, including archive/compression
134    combinations such as tar.gz.
135  * Zero-copy internal architecture for high performance.
136  * Streaming architecture eliminates all limits on size of archive,
137    limits on entry sizes depend on particular formats.
138  * Carefully factored code to minimize bloat when programs are
139    statically linked.
140  * Growing test suite to verify correctness of new ports.
141  * Works on most POSIX-like systems (including FreeBSD, Linux,
142    Solaris, etc.)
143
144 The bsdtar and bsdcpio command-line utilities are feature- and
145 performance-competitive with other tar and cpio implementations:
146  * Reads a variety of formats, including tar, pax, cpio, zip, xar,
147    lha, ar, cab, mtree, rar, and ISO images.
148  * Writes tar, pax, cpio, zip, xar, ar, ISO, mtree, and shar archives.
149  * Automatically handles archives compressed with gzip, bzip2, lzip,
150    xz, lzma, or compress.
151  * Unique format conversion feature.
152
153
154 [FILE:102:distinfo]
155 ba6d02f15ba04aba9c23fd5f236bb234eab9d5209e95d1c4df85c44d5f19b9b3      7428511 libarchive-3.6.2.tar.gz
156
157
158 [FILE:1281:manifests/plist.single]
159 bin/
160  bsdcat
161  bsdcpio
162  bsdtar
163 include/
164  archive.h
165  archive_entry.h
166 lib/
167  libarchive.a
168  libarchive.so
169  libarchive.so.%%SOMAJOR%%
170  libarchive.so.%%SOVERSION%%
171 lib/pkgconfig/libarchive.pc
172 share/man/man1/
173  bsdcat.1.gz
174  bsdcpio.1.gz
175  bsdtar.1.gz
176 share/man/man3/
177  archive_entry.3.gz
178  archive_entry_acl.3.gz
179  archive_entry_linkify.3.gz
180  archive_entry_misc.3.gz
181  archive_entry_paths.3.gz
182  archive_entry_perms.3.gz
183  archive_entry_stat.3.gz
184  archive_entry_time.3.gz
185  archive_read.3.gz
186  archive_read_add_passphrase.3.gz
187  archive_read_data.3.gz
188  archive_read_disk.3.gz
189  archive_read_extract.3.gz
190  archive_read_filter.3.gz
191  archive_read_format.3.gz
192  archive_read_free.3.gz
193  archive_read_header.3.gz
194  archive_read_new.3.gz
195  archive_read_open.3.gz
196  archive_read_set_options.3.gz
197  archive_util.3.gz
198  archive_write.3.gz
199  archive_write_blocksize.3.gz
200  archive_write_data.3.gz
201  archive_write_disk.3.gz
202  archive_write_filter.3.gz
203  archive_write_finish_entry.3.gz
204  archive_write_format.3.gz
205  archive_write_free.3.gz
206  archive_write_header.3.gz
207  archive_write_new.3.gz
208  archive_write_open.3.gz
209  archive_write_set_options.3.gz
210  archive_write_set_passphrase.3.gz
211  libarchive.3.gz
212  libarchive_changes.3.gz
213  libarchive_internals.3.gz
214 share/man/man5/
215  cpio.5.gz
216  libarchive-formats.5.gz
217  mtree.5.gz
218  tar.5.gz
219
220
221 [FILE:1208:manifests/plist.single.static]
222 bin/
223  bsdcat
224  bsdcpio
225  bsdtar
226 include/
227  archive.h
228  archive_entry.h
229 lib/libarchive.a
230 lib/pkgconfig/libarchive.pc
231 share/man/man1/
232  bsdcat.1.gz
233  bsdcpio.1.gz
234  bsdtar.1.gz
235 share/man/man3/
236  archive_entry.3.gz
237  archive_entry_acl.3.gz
238  archive_entry_linkify.3.gz
239  archive_entry_misc.3.gz
240  archive_entry_paths.3.gz
241  archive_entry_perms.3.gz
242  archive_entry_stat.3.gz
243  archive_entry_time.3.gz
244  archive_read.3.gz
245  archive_read_add_passphrase.3.gz
246  archive_read_data.3.gz
247  archive_read_disk.3.gz
248  archive_read_extract.3.gz
249  archive_read_filter.3.gz
250  archive_read_format.3.gz
251  archive_read_free.3.gz
252  archive_read_header.3.gz
253  archive_read_new.3.gz
254  archive_read_open.3.gz
255  archive_read_set_options.3.gz
256  archive_util.3.gz
257  archive_write.3.gz
258  archive_write_blocksize.3.gz
259  archive_write_data.3.gz
260  archive_write_disk.3.gz
261  archive_write_filter.3.gz
262  archive_write_finish_entry.3.gz
263  archive_write_format.3.gz
264  archive_write_free.3.gz
265  archive_write_header.3.gz
266  archive_write_new.3.gz
267  archive_write_open.3.gz
268  archive_write_set_options.3.gz
269  archive_write_set_passphrase.3.gz
270  libarchive.3.gz
271  libarchive_changes.3.gz
272  libarchive_internals.3.gz
273 share/man/man5/
274  cpio.5.gz
275  libarchive-formats.5.gz
276  mtree.5.gz
277  tar.5.gz
278
279
280 [FILE:102:manifests/plist.single.ravensw]
281 include/
282  archive.h
283  archive_entry.h
284 lib/
285  libarchive.a
286  libarchive_pic.a
287 lib/pkgconfig/libarchive.pc
288
289
290 [FILE:483:patches/patch-libarchive_archive__write__add__filter__zstd.c]
291 --- libarchive/archive_write_add_filter_zstd.c.orig     2022-12-09 13:38:31 UTC
292 +++ libarchive/archive_write_add_filter_zstd.c
293 @@ -63,7 +63,7 @@ struct private_data {
294  /* If we don't have the library use default range values (zstdcli.c v1.4.0) */
295  #define CLEVEL_MIN -99
296  #define CLEVEL_STD_MIN 0 /* prior to 1.3.4 and more recent without using --fast */
297 -#define CLEVEL_DEFAULT 3
298 +#define CLEVEL_DEFAULT 7
299  #define CLEVEL_STD_MAX 19 /* without using --ultra */
300  #define CLEVEL_MAX 22
301  
302