# -*- 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                       cmake 1.1
PortGroup                       qt5 1.0
PortGroup                       boost 1.0

github.setup                    trufanov-nok scantailor 0.2.9
github.tarball_from             archive
epoch                           1
revision                        2
maintainers                     {@rdbisme gmail.com:rubendibattista} openmaintainer
license                         GPL-3+
categories                      graphics aqua
description                     A fork of the original scantailor: an interactive post-processing tool for scanned pages. 
homepage                        http://scantailor.org/
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. \
                                This fork merges the features of the ScanTailor Featured and \
                                ScanTailor Enhanced versions, brings new ones and fixes.

boost.version                   1.71

qt5.depends_component           qttools

compiler.cxx_standard           2011

depends_lib-append              path:include/turbojpeg.h:libjpeg-turbo \
                                port:zlib \
                                port:libpng \
                                port:tiff \
                                port:xrender

checksums                       rmd160  bb42e8cb0d5be1fdc07550d9480720798cc7c227 \
                                sha256  25ba248566df3bc74580f0b18a275df9a6fd97f462ad6232f574225e0434c23c \
                                size    1323413
                                
patchfiles                      patch-Info-plist.diff \
                                patch-qpainterpath.diff

post-destroot {                 
                                # create application bundle
                                set appdir ${destroot}${applications_dir}/ScanTailor.app
                                move ${destroot}${prefix}/scantailor-universal.app ${appdir}
                                move ${appdir}/Contents/MacOS/scantailor-universal ${appdir}/Contents/MacOS/ScanTailor
                                move ${appdir}/Contents/Resources/ScanTailorUniversal.icns ${appdir}/Contents/Resources/ScanTailor.icns
}
