PortSystem          1.0

name                stegdetect
version             0.6
revision            2
categories          security graphics
license             BSD-old SSLeay Permissive IJG
maintainers         nomaintainer
description         tool for detecting steganographic content in jpeg images.
long_description \
   Stegdetect is an automated tool for detecting steganographic content in \
   images. It is capable of detecting several different steganographic \
   methods to embed hidden information in jpeg images.

platforms           darwin

homepage            http://www.outguess.org/detection.php
master_sites        http://www.outguess.org/

checksums           md5 850a3551b5c450b9f450a919ad021767

patchfiles          patch-Makefile.in.diff patch-configure.diff \
                    patch-file_Makefile.in.diff patch-stegdetect.c.diff \
                    implicit.patch

configure.args      --mandir=${prefix}/share/man
# no deps, all includes and libs should be internal (#35723)
configure.cppflags
configure.ldflags
post-configure {
   reinplace "s|install:|_install:|g" ${worksrcpath}/jpeg-6b/Makefile
}

# sed: RE error: illegal byte sequence
build.env           LANG=C

post-destroot {
   xinstall -m 755 -d ${destroot}${prefix}/share/stegbreak
   xinstall -m 644 -W ${filespath} rules.ini.sample \
      ${destroot}${prefix}/share/stegbreak
   file delete ${destroot}${prefix}/share/magic \
      ${destroot}${prefix}/share/magic.inc \
      ${destroot}${prefix}/share/magic.mime \
      ${destroot}${prefix}/share/man/man1/file.1 \
      ${destroot}${prefix}/share/man/man4/magic.4
}

post-activate {
   if {![file exists ${prefix}/share/stegbreak/rules.ini]} {
      file copy ${prefix}/share/stegbreak/rules.ini.sample \
         ${prefix}/share/stegbreak/rules.ini
   }
}

platform darwin 8 powerpc {
   configure.compiler   gcc-3.3
}