# $Id: Portfile 65183 2010-03-23 12:04:59Z ryandesign@macports.org $

PortSystem          1.0

name                unpaper
version             0.3
categories          graphics
maintainers         pd.infn.it:cristiano.fontana
license             GPL
description         Post-processing scanned and photocopied book pages
long_description    unpaper is a post-processing tool for scanned sheets of paper, especially for book pages that have been scanned from previously created photocopies. \
                    The main purpose is to make scanned book pages better readable on screen after conversion to PDF. \
                    Additionally, unpaper might be useful to enhance the quality of scanned pages before performing optical character recognition (OCR).
homepage            http://unpaper.berlios.de/
platforms           darwin
master_sites        http://download.berlios.de/unpaper/

checksums           md5     be41eaf8556e7df39ab53939c99c4f7b \
                    sha1    120eee7c635eeb8ea75431c2dfba89bd8c132493 \
                    rmd160  f67a41ae4f80ba74fd7193674340d518d4bbc89f

configure.cflags-append -lm
configure.cflags-append -o ${name}

use_configure       no

build.target        src/unpaper.c
build.args          ${configure.cflags}
build.cmd           ${configure.cc}

destroot {
    xinstall -m 555 ${worksrcpath}/${name} ${destroot}${prefix}/bin
}
