# -*- 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

PortSystem          1.0

PortGroup           github 1.0
PortGroup           xcode 1.0

github.setup        rentzsch stressdrive 1.4
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0
categories          sysutils
maintainers         {@toy yandex.com:bstj} openmaintainer
license             MIT

set danger          "DANGER: ${name} will overwrite, without warning, all \
                    data on the given drive. Be sure to double-check the \
                    drive you're aiming it at (diskutil list or Disk \
                    Utility.app > Select Drive > Info > Disk Identifier)."

description         Tool meant to verify correct operation of a drive
long_description    {*}${description} by filling a drive up with random data \
                    and ensuring all the data can be correctly read back. \
                    \n${danger}

notes               "${danger}"

checksums           rmd160  7dd1ffe2a44c7451d25b1c11f43db28b4b68b6d0 \
                    sha256  3e43f5b7f418695fe2e12aaa024fc7ce5d6d8d480fbdbaa298093460d3b2a162 \
                    size    8260

depends_lib         port:openssl

xcode.build.settings \
                    HEADER_SEARCH_PATHS=${prefix}/include \
                    LIBRARY_SEARCH_PATHS=${prefix}/lib \
                    OTHER_LDFLAGS=-lcrypto
xcode.destroot.settings \
                    HEADER_SEARCH_PATHS=${prefix}/include \
                    LIBRARY_SEARCH_PATHS=${prefix}/lib \
                    OTHER_LDFLAGS=-lcrypto

xcode.destroot.path ${prefix}/bin
