| @@ -1,29 +1,29 @@ | | | @@ -1,29 +1,29 @@ |
1 | # $NetBSD: options.mk,v 1.5 2020/06/19 23:11:37 scole Exp $ | | 1 | # $NetBSD: options.mk,v 1.6 2022/05/05 13:22:44 gutteridge Exp $ |
2 | | | 2 | |
3 | # xxx unsquashfs hung for me without any error message when extracting | | 3 | # xxx unsquashfs hung for me without any error message when extracting |
4 | # an xattr archive and xattr was not included as a package option | | 4 | # an xattr archive and xattr was not included as a package option |
5 | PKG_OPTIONS_VAR= PKG_OPTIONS.squashfs | | 5 | PKG_OPTIONS_VAR= PKG_OPTIONS.squashfs |
6 | PKG_SUPPORTED_OPTIONS= zlib xz lzo lz4 zstd xattr reproducible | | 6 | PKG_SUPPORTED_OPTIONS= zlib xz lzo lz4 zstd xattr reproducible |
7 | PKG_SUGGESTED_OPTIONS= zlib xz lzo lz4 zstd xattr reproducible | | 7 | PKG_SUGGESTED_OPTIONS= zlib xz lzo lz4 zstd xattr reproducible |
8 | | | 8 | |
9 | .include "../../mk/bsd.options.mk" | | 9 | .include "../../mk/bsd.options.mk" |
10 | | | 10 | |
11 | .if empty(PKG_OPTIONS:Mzlib) && \ | | 11 | .if empty(PKG_OPTIONS:Mzlib) && \ |
12 | empty(PKG_OPTIONS:Mlz4) && \ | | 12 | empty(PKG_OPTIONS:Mlz4) && \ |
13 | empty(PKG_OPTIONS:Mlzo) && \ | | 13 | empty(PKG_OPTIONS:Mlzo) && \ |
14 | empty(PKG_OPTIONS:Mxz) && \ | | 14 | empty(PKG_OPTIONS:Mxz) && \ |
15 | empty(PKG_OPTIONS:Mzstd) | | 15 | empty(PKG_OPTIONS:Mzstd) |
16 | PKG_FAIL_REASON= "need at least one compression algorithm selected" | | 16 | PKG_FAIL_REASON+= "Need at least one compression algorithm selected" |
17 | .endif | | 17 | .endif |
18 | | | 18 | |
19 | .if !empty(PKG_OPTIONS:Mzlib) | | 19 | .if !empty(PKG_OPTIONS:Mzlib) |
20 | .include "../../devel/zlib/buildlink3.mk" | | 20 | .include "../../devel/zlib/buildlink3.mk" |
21 | BUILD_MAKE_FLAGS+= GZIP_SUPPORT=1 | | 21 | BUILD_MAKE_FLAGS+= GZIP_SUPPORT=1 |
22 | SQUASH_COMPRESSORS+= gzip | | 22 | SQUASH_COMPRESSORS+= gzip |
23 | .else | | 23 | .else |
24 | BUILD_MAKE_FLAGS+= GZIP_SUPPORT=0 | | 24 | BUILD_MAKE_FLAGS+= GZIP_SUPPORT=0 |
25 | .endif | | 25 | .endif |
26 | | | 26 | |
27 | .if !empty(PKG_OPTIONS:Mlz4) | | 27 | .if !empty(PKG_OPTIONS:Mlz4) |
28 | .include "../../archivers/lz4/buildlink3.mk" | | 28 | .include "../../archivers/lz4/buildlink3.mk" |
29 | BUILD_MAKE_FLAGS+= LZ4_SUPPORT=1 | | 29 | BUILD_MAKE_FLAGS+= LZ4_SUPPORT=1 |