diff options
author | scole <scole> | 2017-02-09 18:16:07 +0000 |
---|---|---|
committer | scole <scole> | 2017-02-09 18:16:07 +0000 |
commit | 1874689b9020dfb6a5a32192ae9c40db28c742bf (patch) | |
tree | 1d06c33c4321e5320f7150c9b83434a0393e8146 /filesystems/squashfs/options.mk | |
parent | f745586ed008052abdae141221f4d7a66738123a (diff) | |
download | pkgsrc-1874689b9020dfb6a5a32192ae9c40db28c742bf.tar.gz |
Fix xattr and other options, "simplify" PLIST and other build files to make changing versions easier
Diffstat (limited to 'filesystems/squashfs/options.mk')
-rw-r--r-- | filesystems/squashfs/options.mk | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/filesystems/squashfs/options.mk b/filesystems/squashfs/options.mk index 64e9ff28c1c..fb70f87fd61 100644 --- a/filesystems/squashfs/options.mk +++ b/filesystems/squashfs/options.mk @@ -1,4 +1,4 @@ -# $NetBSD: options.mk,v 1.1 2016/09/09 15:40:17 scole Exp $ +# $NetBSD: options.mk,v 1.2 2017/02/09 18:16:07 scole Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.squashfs PKG_SUPPORTED_OPTIONS= zlib lz4 lzo xz xattr @@ -21,23 +21,48 @@ PKG_FAIL_REASON= "need at least one compression algorithm selected" .if !empty(PKG_OPTIONS:Mzlib) .include "../../devel/zlib/buildlink3.mk" BUILD_MAKE_FLAGS+= GZIP_SUPPORT=1 +SQUASH_COMPRESSORS+= gzip +.else +BUILD_MAKE_FLAGS+= GZIP_SUPPORT=0 .endif .if !empty(PKG_OPTIONS:Mlz4) .include "../../archivers/lz4/buildlink3.mk" BUILD_MAKE_FLAGS+= LZ4_SUPPORT=1 +SQUASH_COMPRESSORS+= lz4 +.else +BUILD_MAKE_FLAGS+= LZ4_SUPPORT=0 .endif .if !empty(PKG_OPTIONS:Mlzo) .include "../../archivers/lzo/buildlink3.mk" BUILD_MAKE_FLAGS+= LZO_SUPPORT=1 +SQUASH_COMPRESSORS+= lzo +.else +BUILD_MAKE_FLAGS+= LZO_SUPPORT=0 .endif .if !empty(PKG_OPTIONS:Mxz) .include "../../archivers/xz/buildlink3.mk" BUILD_MAKE_FLAGS+= XZ_SUPPORT=1 +SQUASH_COMPRESSORS+= xz +.else +BUILD_MAKE_FLAGS+= XZ_SUPPORT=0 .endif .if !empty(PKG_OPTIONS:Mxattr) BUILD_MAKE_FLAGS+= XATTR_SUPPORT=1 +.else +BUILD_MAKE_FLAGS+= XATTR_SUPPORT=0 +.endif + +# XXX is this ok with pkgsrc framework? +# if default compressor specified (e.g. "bmake COMP_DEFAULT=xz") +# use that, else use gzip, else use first on list not including xattr +.if empty(COMP_DEFAULT) +.if !empty(PKG_OPTIONS:Mzlib) +BUILD_MAKE_FLAGS+= COMP_DEFAULT=gzip +.else +BUILD_MAKE_FLAGS+= COMP_DEFAULT=${SQUASH_COMPRESSORS:Nxattr:[1]} +.endif .endif |