blob: 6fc3e41dfeb042f223dc5e2bf4081264312a871f [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001# dosfstools OE build file
2# Copyright (C) 2004-2006, Advanced Micro Devices, Inc. All Rights Reserved
3# Copyright (C) 2015, Sören Brinkmann <soeren.brinkmann@gmail> All Rights Reserved
4# Released under the MIT license (see packages/COPYING)
5SUMMARY = "DOS FAT Filesystem Utilities"
6HOMEPAGE = "https://github.com/dosfstools/dosfstools"
7
8SECTION = "base"
9LICENSE = "GPLv3"
10LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
11
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050012SRC_URI = "https://github.com/dosfstools/dosfstools/releases/download/v3.0.28/dosfstools-3.0.28.tar.xz \
13 file://largefile.patch \
14 file://0001-mkfs.fat-fix-incorrect-int-type.patch \
15 "
Patrick Williamsc124f4f2015-09-15 14:41:29 -050016SRC_URI[md5sum] = "6a047a6c65186b9ebb1853709adb36db"
17SRC_URI[sha256sum] = "ee95913044ecf2719b63ea11212917649709a6e53209a72d622135aaa8517ee2"
18
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050019UPSTREAM_CHECK_URI = "https://github.com/dosfstools/dosfstools/releases"
20
21CFLAGS += "-D_GNU_SOURCE ${@bb.utils.contains('DISTRO_FEATURES', 'largefile', '-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', '', d)}"
22
Patrick Williamsc124f4f2015-09-15 14:41:29 -050023FILES_${PN} = "${base_sbindir}"
24FILES_${PN}-doc = "${mandir} ${docdir}"
25
26do_install () {
27 oe_runmake "PREFIX=${D}${prefix}" "SBINDIR=${D}${base_sbindir}" \
28 "MANDIR=${D}${mandir}" "DOCDIR=${D}${docdir}" install
29}
30
31BBCLASSEXTEND = "native"