# -*- 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 64763 2010-03-15 16:31:33Z nox@macports.org $

PortSystem                      1.0
PortGroup                       cmake 1.0

name                            scantailor
version                         0.9.7.2
revision        1
platforms                       darwin
maintainers                     raphael openmaintainer
license                         GPL-3+
categories                      graphics
description                     An interactive post-processing tool for scanned pages
homepage                        http://${name}.sourceforge.net/
long_description                Scan Tailor is an interactive post-processing tool for scanned \
                                pages. It performs operations such as page splitting, deskewing, \
                                adding/removing borders, and others. You give it raw scans, and \
                                you get pages ready to be printed or assembled into a PDF or \
                                DJVU file. Scanning, optical character recognition, and \
                                assembling multi-page documents are out of scope of this project.

depends_lib                     path:bin/qmake-mac:qt4-mac \
                                port:jpeg \
                                port:zlib \
                                port:libpng \
                                port:tiff \
                                port:boost

master_sites                    sourceforge

checksums                       md5     26e7efb1cd443f698c7201e37c0efb23 \
                                sha1    a402c65be30de6809cc5ce5d44808f71fc12c694 \
                                rmd160  d30cc9ce9fc53bff21c5b4c4e7bf2ccc91b60ea7

post-destroot {                 set docdir ${destroot}${prefix}/share/doc/${name}
                                xinstall -d ${docdir}
                                xinstall -m 644 -W ${worksrcpath} \
                                    COPYING \
                                    GPL3.txt \
                                    VERSION \
                                    ${docdir}
}
