# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 120279 2014-05-21 18:59:02Z snc@macports.org $

PortSystem          1.0

name                fatsort
version             1.3.365
categories          sysutils
platforms           darwin freebsd linux
license             GPL-2+
maintainers         ionic.de:ionic

installs_libs       no

description         Utility to sort FAT12, FAT16 and FAT32 partitions
long_description    FATSort is a C utility that sorts FAT12, FAT16 and \
                    FAT32 partitions. It even can handle long file \
                    name entries. FATSort reads the boot sector and \
                    sorts the directory structure recursively.
homepage            http://fatsort.sourceforge.net/

depends_build       port:help2man
depends_lib         port:libiconv

master_sites        sourceforge:${name}
checksums           md5 f1232f40eba6ee9362acd9f0d5209dcf \
                    sha1    9ae5d1ab5e4c91e6725237fab1271f881c3edb59 \
                    rmd160  47e848fa3936d2bfc7f6e62f986055d312d809b9 \
                    sha256  77acc374b189e80e3d75d3508f3c0ca559f8030f1c220f7cfde719a4adb03f3d

use_configure       no
variant universal   {}

build.type          gnu
build.env           CFLAGS="${configure.cppflags} ${configure.cflags} [get_canonical_archflags cc]" \
                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
build.args          CC=${configure.cc} \
                    LD=${configure.cc}

destroot.args       MANDIR=${prefix}/share/man/man1 \
                    SBINDIR=${prefix}/sbin

# OS X can't run the tests, but they could hypothetically run on
# any system with bbe, mkfs.vfat, and fsck.vfat.
test.run            yes
test.target         tests
