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