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

name                gifshuffle
version             2.0
revision            0
checksums           rmd160  2b08f2dd8414e4c24754219d2ab7814bf7135e22 \
                    sha256  5341ccbe850cb687213fa664ba3a791f5b304278fad8a9b09df172c53a829342 \
                    size    21509

categories          graphics
maintainers         {ryandesign @ryandesign} openmaintainer
license             public-domain

description         GIF Colourmap Steganography: conceal messages in GIF images

long_description    gifshuffle is used to conceal messages in GIF images by \
                    shuffling the colourmap, which leaves the image visibly \
                    unchanged. gifshuffle works with all GIF images, \
                    including those with transparency and animation, and in \
                    addition provides compression and encryption of the \
                    concealed message.

homepage            http://www.darkside.com.au/gifshuffle/
master_sites        ${homepage}
distname            ${name}
dist_subdir         ${name}/${version}

# Work around stupid server that returns "406 Not Acceptable" when
# "curl" is in the user agent string.
fetch.user_agent    MacPorts/[macports_version]

use_configure       no

variant universal {}

build.target
build.args          CC="${configure.cc} [get_canonical_archflags]" \
                    CFLAGS="${configure.cflags}"

destroot {
    xinstall ${worksrcpath}/${name} ${destroot}${prefix}/bin
    xinstall -m 644 ${worksrcpath}/${name}.1 ${destroot}${prefix}/share/man/man1
}

livecheck.type      regex
livecheck.regex     ${name} (\[0-9.\]+)