summaryrefslogtreecommitdiffstats
path: root/rules/dosfstools.make
blob: c728cc1d586fa7b21621b0808e07b4b1b89ac75e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# -*-makefile-*-
#
# Copyright (C) 2005 by Steven Scholz <steven.scholz@imc-berlin.de>
#               2009 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_DOSFSTOOLS) += dosfstools

#
# Paths and names
#
DOSFSTOOLS_VERSION	:= 4.1
DOSFSTOOLS_MD5		:= 07a1050db1a898e9a2e03b0c4569c4bd
DOSFSTOOLS		:= dosfstools-$(DOSFSTOOLS_VERSION)
DOSFSTOOLS_SUFFIX	:= tar.xz
DOSFSTOOLS_SRC		:= $(DOSFSTOOLS).$(DOSFSTOOLS_SUFFIX)
DOSFSTOOLS_URL		:= https://github.com/dosfstools/dosfstools/releases/download/v$(DOSFSTOOLS_VERSION)/$(DOSFSTOOLS_SRC)
DOSFSTOOLS_SOURCE	:= $(SRCDIR)/$(DOSFSTOOLS_SRC)
DOSFSTOOLS_DIR		:= $(BUILDDIR)/$(DOSFSTOOLS)
DOSFSTOOLS_LICENSE	:= GPL-3.0-or-later
DOSFSTOOLS_LICENSE_FILES	:= \
	file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
	file://src/fsck.fat.c;startline=1;endline=22;md5=3f94b53f3d7556100055c58a48937788

# ----------------------------------------------------------------------------
# Prepare (nothing to be done here)
# ----------------------------------------------------------------------------

DOSFSTOOLS_CONF_TOOL	:= autoconf
DOSFSTOOLS_CONF_OPT	:= \
	$(CROSS_AUTOCONF_USR) \
	--disable-compat-symlinks \
	--$(call ptx/wwo, PTXCONF_DOSFSTOOLS_UDEV)-udev \
	$(GLOBAL_LARGE_FILE_OPTION)

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/dosfstools.targetinstall:
	@$(call targetinfo)

	@$(call install_init, dosfstools)
	@$(call install_fixup, dosfstools,PRIORITY,optional)
	@$(call install_fixup, dosfstools,SECTION,base)
	@$(call install_fixup, dosfstools,AUTHOR,"Steven Scholz <steven.scholz@imc-berlin.de>")
	@$(call install_fixup, dosfstools,DESCRIPTION,missing)

ifdef PTXCONF_DOSFSTOOLS_MKFS_FAT
	@$(call install_copy, dosfstools, 0, 0, 0755, -, \
		/usr/sbin/mkfs.fat)
endif
ifdef PTXCONF_DOSFSTOOLS_MKFS_FAT_MSDOS
	@$(call install_link, dosfstools, mkfs.fat, /usr/sbin/mkfs.msdos)
endif
ifdef PTXCONF_DOSFSTOOLS_MKFS_FAT_VFAT
	@$(call install_link, dosfstools, mkfs.fat, /usr/sbin/mkfs.vfat)
endif


ifdef PTXCONF_DOSFSTOOLS_FSCK_FAT
	@$(call install_copy, dosfstools, 0, 0, 0755, -, \
		/usr/sbin/fsck.fat)
endif
ifdef PTXCONF_DOSFSTOOLS_FSCK_FAT_MSDOS
	@$(call install_link, dosfstools, fsck.fat, /usr/sbin/fsck.msdos)
endif
ifdef PTXCONF_DOSFSTOOLS_FSCK_FAT_VFAT
	@$(call install_link, dosfstools, fsck.fat, /usr/sbin/fsck.vfat)
endif

ifdef PTXCONF_DOSFSTOOLS_FATLABEL
	@$(call install_copy, dosfstools, 0, 0, 0755, -, \
		/usr/sbin/fatlabel)
endif

	@$(call install_finish, dosfstools)

	@$(call touch)

# vim: syntax=make