2011-01-09 18:40:36 +01:00
################################################################################
2017-09-22 13:58:12 +01:00
# This file is part of LibreELEC - https://libreelec.tv
# Copyright (C) 2017-present Team LibreELEC
2011-01-09 18:40:36 +01:00
#
2017-09-22 13:58:12 +01:00
# LibreELEC is free software: you can redistribute it and/or modify
2011-01-09 18:40:36 +01:00
# it under the terms of the GNU General Public License as published by
2013-12-21 21:51:48 +01:00
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
2011-01-09 18:40:36 +01:00
#
2017-09-22 13:58:12 +01:00
# LibreELEC is distributed in the hope that it will be useful,
2011-01-09 18:40:36 +01:00
# but WITHOUT ANY WARRANTY; without even the implied warranty of
2013-12-21 21:51:48 +01:00
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2011-01-09 18:40:36 +01:00
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
2017-09-22 13:58:12 +01:00
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
2011-01-09 18:40:36 +01:00
################################################################################
2010-11-17 14:34:59 +01:00
PKG_NAME = "squashfs"
2017-09-22 13:58:12 +01:00
PKG_VERSION = "1a6ffc7"
PKG_SHA256 = "2a641ae2f3ae772b9b34dce955a77cfa0717eda57efb3df3a4a5222607c24b2c"
2010-11-17 14:34:59 +01:00
PKG_ARCH = "any"
PKG_LICENSE = "GPL"
2017-09-22 13:58:12 +01:00
PKG_SITE = "https://git.kernel.org/pub/scm/fs/squashfs/squashfs-tools.git"
PKG_URL = " https://git.kernel.org/pub/scm/fs/squashfs/squashfs-tools.git/snapshot/ $PKG_VERSION .tar.gz "
PKG_SOURCE_DIR = " $PKG_VERSION "
2017-09-22 13:58:12 +01:00
PKG_DEPENDS_HOST = "ccache:host zlib:host lzo:host xz:host zstd:host"
2017-10-13 16:00:00 +01:00
PKG_NEED_UNPACK = " $( get_pkg_directory zlib) $( get_pkg_directory lzo) $( get_pkg_directory xz) $( get_pkg_directory zstd) "
2014-01-05 11:41:23 +01:00
PKG_SECTION = "sysutils"
2010-11-17 14:34:59 +01:00
PKG_SHORTDESC = "squashfs-tools: A compressed read-only filesystem for Linux"
PKG_LONGDESC = "Squashfs is intended to be a general read-only filesystem, 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. The filesystem is currently stable and has been tested on PowerPC, i386, SPARC and ARM architectures."
2017-10-27 13:11:34 +02:00
PKG_TOOLCHAIN = "manual"
2014-01-05 11:41:23 +01:00
m a k e _ h o s t ( ) {
make -C squashfs-tools mksquashfs \
2017-09-22 13:58:12 +01:00
XZ_SUPPORT = 1 LZO_SUPPORT = 1 ZSTD_SUPPORT = 1 \
2017-08-19 15:48:15 +02:00
XATTR_SUPPORT = 0 XATTR_DEFAULT = 0 \
2017-02-17 06:40:16 +00:00
INCLUDEDIR = " -I. -I $TOOLCHAIN /include "
2014-01-05 11:41:23 +01:00
}
m a k e i n s t a l l _ h o s t ( ) {
2017-02-17 06:40:16 +00:00
mkdir -p $TOOLCHAIN /bin
cp squashfs-tools/mksquashfs $TOOLCHAIN /bin
2014-01-05 11:41:23 +01:00
}