summaryrefslogtreecommitdiff
path: root/filesystems/squashfs/options.mk
diff options
context:
space:
mode:
authorscole <scole>2016-09-09 15:40:17 +0000
committerscole <scole>2016-09-09 15:40:17 +0000
commit96104de0069397d53072d18149e8de1f2fbba2d9 (patch)
tree675fc933442afe339333083d22302ba278465466 /filesystems/squashfs/options.mk
parent25f75944f9ced91bcc83abf2ad5852ee8b8bbef3 (diff)
downloadpkgsrc-96104de0069397d53072d18149e8de1f2fbba2d9.tar.gz
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.
Diffstat (limited to 'filesystems/squashfs/options.mk')
-rw-r--r--filesystems/squashfs/options.mk43
1 files changed, 43 insertions, 0 deletions
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