From 96104de0069397d53072d18149e8de1f2fbba2d9 Mon Sep 17 00:00:00 2001 From: scole Date: Fri, 9 Sep 2016 15:40:17 +0000 Subject: PR pkg/51058 Add filesystem/squashfs 4.3 Squashfs is a highly compressed read-only filesystem for Linux. It uses either gzip/xz/lzo/lz4 compression to compress both files, inodes and directories. Inodes in the system are very small and all blocks are packed to minimise data overhead. Block sizes greater than 4K are supported up to a maximum of 1Mbytes (default block size 128K). Squashfs is intended for general read-only filesystem use, for archival use (i.e. in cases where a .tar.gz file may be used), and in constrained block device/memory systems (e.g. embedded systems) where low overhead is needed. This package contains tools to manipulate squashfs archive files. --- filesystems/squashfs/options.mk | 43 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 filesystems/squashfs/options.mk (limited to 'filesystems/squashfs/options.mk') diff --git a/filesystems/squashfs/options.mk b/filesystems/squashfs/options.mk new file mode 100644 index 00000000000..64e9ff28c1c --- /dev/null +++ b/filesystems/squashfs/options.mk @@ -0,0 +1,43 @@ +# $NetBSD: options.mk,v 1.1 2016/09/09 15:40:17 scole Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.squashfs +PKG_SUPPORTED_OPTIONS= zlib lz4 lzo xz xattr +PKG_SUGGESTED_OPTIONS= zlib lzo xz + +.include "../../mk/bsd.options.mk" + +# XXX any other OS support xattr? +.if ${OPSYS} == "Linux" +PKG_SUGGESTED_OPTIONS+= xattr +.endif + +.if empty(PKG_OPTIONS:Mzlib) && \ + empty(PKG_OPTIONS:Mlz4) && \ + empty(PKG_OPTIONS:Mlzo) && \ + empty(PKG_OPTIONS:Mxz) +PKG_FAIL_REASON= "need at least one compression algorithm selected" +.endif + +.if !empty(PKG_OPTIONS:Mzlib) +.include "../../devel/zlib/buildlink3.mk" +BUILD_MAKE_FLAGS+= GZIP_SUPPORT=1 +.endif + +.if !empty(PKG_OPTIONS:Mlz4) +.include "../../archivers/lz4/buildlink3.mk" +BUILD_MAKE_FLAGS+= LZ4_SUPPORT=1 +.endif + +.if !empty(PKG_OPTIONS:Mlzo) +.include "../../archivers/lzo/buildlink3.mk" +BUILD_MAKE_FLAGS+= LZO_SUPPORT=1 +.endif + +.if !empty(PKG_OPTIONS:Mxz) +.include "../../archivers/xz/buildlink3.mk" +BUILD_MAKE_FLAGS+= XZ_SUPPORT=1 +.endif + +.if !empty(PKG_OPTIONS:Mxattr) +BUILD_MAKE_FLAGS+= XATTR_SUPPORT=1 +.endif -- cgit v1.2.3