0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-03-01 01:01:24 +00:00

43 lines
1.5 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="ntfs-3g_ntfsprogs"
PKG_VERSION="2017.3.23AR.5"
PKG_SHA256="c4e6234e1743f9ff7cea6ce85e006fce98b9a4dc7433a6c269db0c05a80b83cf"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/tuxera/ntfs-3g"
PKG_URL="https://github.com/tuxera/ntfs-3g/archive/refs/tags/${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain fuse libgcrypt"
PKG_LONGDESC="A NTFS driver with read and write support."
PKG_TOOLCHAIN="autotools"
PKG_BUILD_FLAGS="+lto"
PKG_CONFIGURE_OPTS_TARGET="--exec-prefix=/usr/ \
--disable-dependency-tracking \
--disable-library \
--enable-posix-acls \
--enable-mtab \
--enable-ntfsprogs \
--disable-crypto \
--with-fuse=external \
--with-uuid"
post_makeinstall_target() {
# dont include ntfsprogs.
for i in ${INSTALL}/usr/bin/*; do
if [ "$(basename ${i})" != "ntfs-3g" ]; then
rm ${i}
fi
done
rm -rf ${INSTALL}/sbin
rm -rf ${INSTALL}/usr/sbin/ntfsclone
rm -rf ${INSTALL}/usr/sbin/ntfscp
rm -rf ${INSTALL}/usr/sbin/ntfsundelete
mkdir -p ${INSTALL}/usr/sbin
ln -sf /usr/bin/ntfs-3g ${INSTALL}/usr/sbin/mount.ntfs
ln -sf /usr/sbin/mkntfs ${INSTALL}/usr/sbin/mkfs.ntfs
}