aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/gscan2pdf/Makefile
blob: 2bc83d3f2e408736c9eefe8d627678afd5497d3b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# New ports collection makefile for:    gscan2pdf
# Date created:     4 September 2006
# Whom:         Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   gscan2pdf
PORTVERSION=    0.9.23
CATEGORIES= graphics
MASTER_SITES=   SFE

MAINTAINER= infofarmer@FreeBSD.org
COMMENT=    Produce PDF from scanned documents

RUN_DEPENDS=    p5-PDF-API2>=0.57:${PORTSDIR}/textproc/p5-PDF-API2 \
        p5-Config-General>=0:${PORTSDIR}/devel/p5-Config-General \
        scanimage:${PORTSDIR}/graphics/sane-backends \
        scanadf:${PORTSDIR}/graphics/sane-frontends \
        cjb2:${PORTSDIR}/graphics/djvulibre \
        unpaper:${PORTSDIR}/graphics/unpaper \
        p5-Gtk2>=1.112:${PORTSDIR}/x11-toolkits/p5-Gtk2 \
        p5-Gtk2-Ex-PodViewer>=0.17:${PORTSDIR}/x11-toolkits/p5-Gtk2-Ex-PodViewer \
        p5-Gtk2-Ex-Simple-List>=0.50:${PORTSDIR}/x11-toolkits/p5-Gtk2-Ex-Simple-List \
        gocr:${PORTSDIR}/graphics/gocr \
        tesseract:${PORTSDIR}/graphics/tesseract \
        ImageMagick>=6.3.3.5:${PORTSDIR}/graphics/ImageMagick \
        p5-gettext>=1.05:${PORTSDIR}/devel/p5-Locale-gettext
#       xdg-email:${PORTSDIR}/devel/xdg-utils

USE_GETTEXT=    yes
USE_GMAKE=  yes
USE_GNOME=  librsvg2
PERL_CONFIGURE= yes
MAN1=       ${PORTNAME}.1
PORT_VERBS= ${PORTNAME} Gscan2pdf

post-patch:
    @${REINPLACE_CMD} -e 's/--parents/-p/g;s|$$sharedir/man|${MANPREFIX}/man|g;s|1p|1|g'\
        -e '/SITEPREFIX/s|/usr|${PREFIX}|' ${WRKSRC}/Makefile.PL
    @${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|g' ${WRKSRC}/bin/${PORTNAME}

.include <bsd.port.mk>