blob: f352f64689504307751cae6810e1be478bcc5fd9 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# New ports collection makefile for: gscan2pdf
# Date created: 4 September 2006
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= gscan2pdf
PORTVERSION= 0.9.32
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= SF
MAINTAINER= sylvio@FreeBSD.org
COMMENT= Produce PDF from scanned documents
BUILD_DEPENDS= ${SITE_PERL}/Test/Perl/Critic.pm:${PORTSDIR}/textproc/p5-Test-Perl-Critic \
${SITE_PERL}/Set/IntSpan.pm:${PORTSDIR}/math/p5-Set-IntSpan \
${SITE_PERL}/XML/LibXML/Simple.pm:${PORTSDIR}/textproc/p5-XML-LibXML-Simple \
${SITE_PERL}/Sys/SigAction.pm:${PORTSDIR}/devel/p5-Sys-SigAction \
${SITE_PERL}/${PERL_ARCH}/forks.pm:${PORTSDIR}/devel/p5-forks \
${SITE_PERL}/${PERL_ARCH}/Proc/ProcessTable.pm:${PORTSDIR}/devel/p5-Proc-ProcessTable \
${SITE_PERL}/${PERL_ARCH}/Image/Magick.pm:${PORTSDIR}/graphics/ImageMagick \
${SITE_PERL}/${PERL_ARCH}/Goo/Canvas.pm:${PORTSDIR}/devel/p5-Goo-Canvas \
${SITE_PERL}/${PERL_ARCH}/Pango.pm:${PORTSDIR}/x11-toolkits/p5-Pango \
${SITE_PERL}/${PERL_ARCH}/Acme/Damn.pm:${PORTSDIR}/devel/p5-Acme-Damn \
${SITE_PERL}/Devel/Symdump.pm:${PORTSDIR}/devel/p5-Devel-Symdump \
${SITE_PERL}/${PERL_ARCH}/Glib.pm:${PORTSDIR}/devel/p5-Glib2
LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff
RUN_DEPENDS= ${SITE_PERL}/Archive/Tar.pm:${PORTSDIR}/archivers/p5-Archive-Tar \
p5-Locale-gettext>=1.05:${PORTSDIR}/devel/p5-Locale-gettext \
p5-Config-General>=0:${PORTSDIR}/devel/p5-Config-General \
cjb2:${PORTSDIR}/graphics/djvulibre-nox11 \
gocr:${PORTSDIR}/graphics/gocr \
p5-Sane>=0:${PORTSDIR}/graphics/p5-Sane \
scanimage:${PORTSDIR}/graphics/sane-backends \
scanadf:${PORTSDIR}/graphics/sane-frontends \
tesseract:${PORTSDIR}/graphics/tesseract \
unpaper:${PORTSDIR}/graphics/unpaper \
xdg-open:${PORTSDIR}/devel/xdg-utils \
ocropus:${PORTSDIR}/graphics/ocropus \
p5-PDF-API2>=0.57:${PORTSDIR}/textproc/p5-PDF-API2 \
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 \
p5-Gtk2-ImageView>=0:${PORTSDIR}/x11-toolkits/p5-Gtk2-ImageView
LICENSE= GPLv3
USE_GMAKE= yes
USE_GNOME= gtk20 librsvg2
PERL_CONFIGURE= yes
MAN1= ${PORTNAME}.1 scanadf-perl.1 scanimage-perl.1
PORT_VERBS= ${PORTNAME} Gscan2pdf
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
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>
|