2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2009-06-18 14:29:02 +02:00
|
|
|
#
|
|
|
|
# dosfstools
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-04-11 14:27:04 +02:00
|
|
|
|
2016-05-24 23:32:32 +02:00
|
|
|
DOSFSTOOLS_VERSION = 4.0
|
2013-09-06 08:14:15 +02:00
|
|
|
DOSFSTOOLS_SOURCE = dosfstools-$(DOSFSTOOLS_VERSION).tar.xz
|
2015-06-25 20:52:08 +02:00
|
|
|
DOSFSTOOLS_SITE = https://github.com/dosfstools/dosfstools/releases/download/v$(DOSFSTOOLS_VERSION)
|
2013-01-22 04:35:46 +01:00
|
|
|
DOSFSTOOLS_LICENSE = GPLv3+
|
|
|
|
DOSFSTOOLS_LICENSE_FILES = COPYING
|
2016-05-24 23:32:32 +02:00
|
|
|
DOSFSTOOLS_CONF_OPTS = --enable-compat-symlinks --exec-prefix=/
|
|
|
|
HOST_DOSFSTOOLS_CONF_OPTS = --enable-compat-symlinks
|
2013-03-01 07:24:04 +01:00
|
|
|
|
2016-05-24 23:32:32 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
|
|
DOSFSTOOLS_CONF_OPTS += --with-udev
|
|
|
|
DOSFSTOOLS_DEPENDENCIES += udev
|
|
|
|
else
|
|
|
|
DOSFSTOOLS_CONF_OPTS += --without-udev
|
|
|
|
endif
|
2014-09-11 07:16:10 +02:00
|
|
|
|
2013-03-01 07:24:04 +01:00
|
|
|
ifneq ($(BR2_ENABLE_LOCALE),y)
|
2016-05-24 23:32:32 +02:00
|
|
|
DOSFSTOOLS_CONF_OPTS += LIBS="-liconv"
|
2013-03-01 07:24:04 +01:00
|
|
|
DOSFSTOOLS_DEPENDENCIES += libiconv
|
|
|
|
endif
|
|
|
|
|
2016-05-24 23:32:32 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_DOSFSTOOLS_FATLABEL),)
|
|
|
|
define DOSFSTOOLS_REMOVE_FATLABEL
|
|
|
|
rm -f $(addprefix $(TARGET_DIR)/sbin/,dosfslabel fatlabel)
|
2015-01-19 17:14:06 +01:00
|
|
|
endef
|
2016-05-24 23:32:32 +02:00
|
|
|
DOSFSTOOLS_POST_INSTALL_TARGET_HOOKS += DOSFSTOOLS_REMOVE_FATLABEL
|
2015-01-19 17:14:06 +01:00
|
|
|
endif
|
|
|
|
|
2016-05-24 23:32:32 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT),)
|
|
|
|
define DOSFSTOOLS_REMOVE_FSCK_FAT
|
|
|
|
rm -f $(addprefix $(TARGET_DIR)/sbin/,fsck.fat dosfsck fsck.msdos fsck.vfat)
|
2015-01-19 17:14:06 +01:00
|
|
|
endef
|
2016-05-24 23:32:32 +02:00
|
|
|
DOSFSTOOLS_POST_INSTALL_TARGET_HOOKS += DOSFSTOOLS_REMOVE_FSCK_FAT
|
2015-01-19 17:14:06 +01:00
|
|
|
endif
|
|
|
|
|
2016-05-24 23:32:32 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_DOSFSTOOLS_MKFS_FAT),)
|
|
|
|
define DOSFSTOOLS_REMOVE_MKFS_FAT
|
|
|
|
rm -f $(addprefix $(TARGET_DIR)/sbin/,mkfs.fat mkdosfs mkfs.msdos mkfs.vfat)
|
2015-01-19 17:14:06 +01:00
|
|
|
endef
|
2016-05-24 23:32:32 +02:00
|
|
|
DOSFSTOOLS_POST_INSTALL_TARGET_HOOKS += DOSFSTOOLS_REMOVE_MKFS_FAT
|
2015-01-19 17:14:06 +01:00
|
|
|
endif
|
2010-09-26 09:13:58 +02:00
|
|
|
|
2016-05-24 23:32:32 +02:00
|
|
|
$(eval $(autotools-package))
|
|
|
|
$(eval $(host-autotools-package))
|