2021-12-05 19:37:19 -05:00
|
|
|
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
|
|
|
|
|
|
|
|
|
PortSystem 1.0
|
|
|
|
|
PortGroup github 1.0
|
2021-12-06 13:08:00 -05:00
|
|
|
PortGroup legacysupport 1.1
|
2021-12-05 19:37:19 -05:00
|
|
|
|
2026-03-27 20:51:47 +01:00
|
|
|
github.setup plougher squashfs-tools 4.7.5
|
|
|
|
|
github.tarball_from archive
|
|
|
|
|
revision 0
|
|
|
|
|
checksums rmd160 d460195adb84cce1a94abf125d26baaaabe9582f \
|
|
|
|
|
sha256 547b7b7f4d2e44bf91b6fc554664850c69563701deab9fd9cd7e21f694c88ea6 \
|
|
|
|
|
size 412571
|
2021-12-05 19:37:19 -05:00
|
|
|
|
|
|
|
|
categories sysutils
|
|
|
|
|
license GPL-2+
|
|
|
|
|
maintainers {mit.edu:quentin @quentinmit} \
|
|
|
|
|
openmaintainer
|
|
|
|
|
|
2021-12-06 13:03:18 -05:00
|
|
|
description Tools to create and extract Squashfs filesystems
|
|
|
|
|
long_description \
|
|
|
|
|
Squashfs is a highly compressed read-only filesystem for Linux. \
|
2021-12-05 19:37:19 -05:00
|
|
|
It uses zlib 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 \
|
|
|
|
|
64K.\
|
|
|
|
|
\
|
|
|
|
|
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.
|
|
|
|
|
|
2021-12-06 13:08:00 -05:00
|
|
|
legacysupport.newest_darwin_requires_legacy 16
|
|
|
|
|
|
2026-03-27 20:51:47 +01:00
|
|
|
depends_build-append \
|
|
|
|
|
port:gsed
|
|
|
|
|
|
2021-12-06 13:03:18 -05:00
|
|
|
depends_lib-append port:zlib \
|
|
|
|
|
port:xz \
|
|
|
|
|
port:lzo2 \
|
|
|
|
|
port:lz4 \
|
|
|
|
|
port:zstd
|
2021-12-05 19:37:19 -05:00
|
|
|
|
2021-12-06 13:03:18 -05:00
|
|
|
worksrcdir ${distname}/${name}
|
2021-12-05 19:37:19 -05:00
|
|
|
|
2026-03-27 20:51:47 +01:00
|
|
|
# Fix Darwin struct stat field: st_atim -> st_atimespec on macOS
|
|
|
|
|
# https://github.com/plougher/squashfs-tools/pull/356
|
|
|
|
|
patchfiles patch-mksquashfs-st_atimespec.diff
|
2021-12-05 19:37:19 -05:00
|
|
|
|
|
|
|
|
use_configure no
|
|
|
|
|
|
2021-12-06 13:08:00 -05:00
|
|
|
build.pre_args-append \
|
|
|
|
|
EXTRA_CFLAGS="${configure.cppflags}" \
|
|
|
|
|
EXTRA_LDFLAGS="${configure.ldflags}"
|
|
|
|
|
|
|
|
|
|
build.args-append XZ_SUPPORT=1 \
|
2021-12-06 13:03:18 -05:00
|
|
|
LZO_SUPPORT=1 \
|
|
|
|
|
LZ4_SUPPORT=1 \
|
2026-03-27 20:51:47 +01:00
|
|
|
ZSTD_SUPPORT=1 \
|
|
|
|
|
XATTR_SUPPORT=1
|
2021-12-05 19:37:19 -05:00
|
|
|
|
2026-03-27 20:51:47 +01:00
|
|
|
destroot.destdir
|
|
|
|
|
destroot.args-append \
|
|
|
|
|
INSTALL_PREFIX=${destroot}${prefix} \
|
|
|
|
|
INSTALL_MANPAGES_DIR=${destroot}${prefix}/share/man/man1
|