Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | # 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) |
| 5 | SUMMARY = "DOS FAT Filesystem Utilities" |
| 6 | HOMEPAGE = "https://github.com/dosfstools/dosfstools" |
| 7 | |
| 8 | SECTION = "base" |
| 9 | LICENSE = "GPLv3" |
| 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" |
| 11 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 12 | SRC_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 Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 16 | SRC_URI[md5sum] = "6a047a6c65186b9ebb1853709adb36db" |
| 17 | SRC_URI[sha256sum] = "ee95913044ecf2719b63ea11212917649709a6e53209a72d622135aaa8517ee2" |
| 18 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 19 | UPSTREAM_CHECK_URI = "https://github.com/dosfstools/dosfstools/releases" |
| 20 | |
| 21 | CFLAGS += "-D_GNU_SOURCE ${@bb.utils.contains('DISTRO_FEATURES', 'largefile', '-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', '', d)}" |
| 22 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 23 | FILES_${PN} = "${base_sbindir}" |
| 24 | FILES_${PN}-doc = "${mandir} ${docdir}" |
| 25 | |
| 26 | do_install () { |
| 27 | oe_runmake "PREFIX=${D}${prefix}" "SBINDIR=${D}${base_sbindir}" \ |
| 28 | "MANDIR=${D}${mandir}" "DOCDIR=${D}${docdir}" install |
| 29 | } |
| 30 | |
| 31 | BBCLASSEXTEND = "native" |