0
0
Fork 0
haikuports/sys-fs/dosfstools/dosfstools-4.1.recipe

54 lines
1.3 KiB
Bash
Raw Permalink Normal View History

2017-08-27 11:31:03 +00:00
SUMMARY="Programs to create, check and label file systems of the FAT family"
DESCRIPTION="mkfs, checkfs, and fatlabel for FAT partitions."
HOMEPAGE="https://github.com/dosfstools/dosfstools"
COPYRIGHT="1991 Linus Torvalds
1992-1993 Remy Card
1993-1994 David Hudson
1999-2005 Roman Hodek
1999-2005 Werner Almesberger
1999-2005 Roman Hodek
2008-2014 Daniel Baumann
2015-2016 Andreas Bombe"
LICENSE="GNU GPL v3"
2018-08-03 12:51:17 +00:00
REVISION="1"
2017-08-27 11:31:03 +00:00
SOURCE_URI="https://github.com/dosfstools/dosfstools/releases/download/v$portVersion/dosfstools-$portVersion.tar.xz"
CHECKSUM_SHA256="e6b2aca70ccc3fe3687365009dd94a2e18e82b688ed4e260e04b7412471cc173"
ARCHITECTURES="all !x86_gcc2 ?x86 !ppc !m68k"
2017-08-27 11:31:03 +00:00
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
dosfstools$secondaryArchSuffix = $portVersion
cmd:fatlabel
cmd:fsck.fat
cmd:mkfs.fat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libiconv$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc$secondaryArchSuffix
2018-08-10 06:17:02 +00:00
cmd:make
2017-08-27 11:31:03 +00:00
"
BUILD()
{
# FIXME only works for little-endian architectures
export CFLAGS="-Dhtole32\(x\)=x -Dhtole16\(x\)=x -Dle32toh\(x\)=x -Dle16toh\(x\)=x"
export LDFLAGS=-liconv
runConfigure --omit-dirs binDir,sbinDir ./configure --bindir=$prefix/bin --sbindir=$prefix/bin
make $jobArgs
}
INSTALL()
{
make install
}