View | Details | Raw Unified | Return to bug 254107
Collapse All | Expand All

(-)Makefile (-3 / +14 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	FuzzyOcr
4
PORTNAME=	FuzzyOcr
5
DISTVERSION=	3.6.0
5
DISTVERSION=	3.6.0
6
PORTREVISION=	6
6
PORTREVISION=	7
7
CATEGORIES=	mail perl5
7
CATEGORIES=	mail perl5
8
MASTER_SITES=	http://users.own-hero.net/~decoder/${PORTNAME:tl}/
8
MASTER_SITES=	http://users.own-hero.net/~decoder/${PORTNAME:tl}/
9
PKGNAMEPREFIX=	p5-
9
PKGNAMEPREFIX=	p5-
Lines 14-19 Link Here
14
COMMENT=	Plugin for SpamAssassin which scans image attachments for spam
14
COMMENT=	Plugin for SpamAssassin which scans image attachments for spam
15
15
16
OPTIONS_DEFINE=	DOCS EXAMPLES
16
OPTIONS_DEFINE=	DOCS EXAMPLES
17
OPTIONS_SINGLE=	GIFINTER_EMULATION
18
OPTIONS_SINGLE_GIFINTER_EMULATION=IMAGEMAGICK GRAPHICSMAGICK
19
OPTIONS_DEFAULT=IMAGEMAGICK
20
OPTIONS_SUB=	please
17
21
18
RUN_DEPENDS=	giftopnm:graphics/netpbm			\
22
RUN_DEPENDS=	giftopnm:graphics/netpbm			\
19
		gifsicle:graphics/gifsicle			\
23
		gifsicle:graphics/gifsicle			\
Lines 24-30 Link Here
24
		p5-MLDBM>=0:databases/p5-MLDBM	\
28
		p5-MLDBM>=0:databases/p5-MLDBM	\
25
		p5-MLDBM-Sync>=0:databases/p5-MLDBM-Sync \
29
		p5-MLDBM-Sync>=0:databases/p5-MLDBM-Sync \
26
		p5-String-Approx>=0:devel/p5-String-Approx
30
		p5-String-Approx>=0:devel/p5-String-Approx
31
IMAGEMAGICK_RUN_DEPENDS=convert:graphics/ImageMagick7
32
GRAPHICSMAGICK_RUN_DEPENDS=gm:graphics/GraphicsMagick
27
33
34
IMAGEMAGICK_DESC=Use ImageMagick's convert to process interlaced GIFs
35
GRAPHICSMAGICK_DESC=Use GraphicsMagick to process interlaced GIFs
36
28
USES=		perl5
37
USES=		perl5
29
NO_BUILD=	yes
38
NO_BUILD=	yes
30
39
Lines 36-42 Link Here
36
		samples/ocr-obfuscated.eml samples/ocr-png.eml samples/ocr-wrongext.eml
45
		samples/ocr-obfuscated.eml samples/ocr-png.eml samples/ocr-wrongext.eml
37
PORTEXAMPLES=	*
46
PORTEXAMPLES=	*
38
47
39
SUB_FILES=	pkg-message
48
SUB_FILES=	pkg-message gifinter
40
49
41
SA_PLUGINDIR?=	Mail/SpamAssassin/Plugin
50
SA_PLUGINDIR?=	Mail/SpamAssassin/Plugin
42
SA_CONFIGDIR?=	etc/mail/spamassassin
51
SA_CONFIGDIR?=	etc/mail/spamassassin
Lines 49-55 Link Here
49
		%%SITE_PERL%%/${SA_PLUGINDIR}/FuzzyOcr/Misc.pm \
58
		%%SITE_PERL%%/${SA_PLUGINDIR}/FuzzyOcr/Misc.pm \
50
		%%SITE_PERL%%/${SA_PLUGINDIR}/FuzzyOcr/Preprocessor.pm \
59
		%%SITE_PERL%%/${SA_PLUGINDIR}/FuzzyOcr/Preprocessor.pm \
51
		%%SITE_PERL%%/${SA_PLUGINDIR}/FuzzyOcr/Scanset.pm \
60
		%%SITE_PERL%%/${SA_PLUGINDIR}/FuzzyOcr/Scanset.pm \
52
		%%SITE_PERL%%/${SA_PLUGINDIR}/FuzzyOcr/Scoring.pm
61
		%%SITE_PERL%%/${SA_PLUGINDIR}/FuzzyOcr/Scoring.pm \
62
		bin/gifinter
53
63
54
#.if defined(WITH_OCRAD)
64
#.if defined(WITH_OCRAD)
55
#RUN_DEPENDS+=	ocrad:graphics/ocrad
65
#RUN_DEPENDS+=	ocrad:graphics/ocrad
Lines 80-85 Link Here
80
	${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.scansets ${STAGEDIR}${EXAMPLESDIR}/FuzzyOcr.scansets
90
	${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.scansets ${STAGEDIR}${EXAMPLESDIR}/FuzzyOcr.scansets
81
	${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.preps ${STAGEDIR}${EXAMPLESDIR}/FuzzyOcr.preps
91
	${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.preps ${STAGEDIR}${EXAMPLESDIR}/FuzzyOcr.preps
82
	${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.mysql ${STAGEDIR}${EXAMPLESDIR}/FuzzyOcr.mysql
92
	${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.mysql ${STAGEDIR}${EXAMPLESDIR}/FuzzyOcr.mysql
93
	${INSTALL_SCRIPT} ${WRKDIR}/gifinter ${STAGEDIR}${PREFIX}/bin/
83
	@${MKDIR} ${STAGEDIR}${DOCSDIR}/samples
94
	@${MKDIR} ${STAGEDIR}${DOCSDIR}/samples
84
.for f in ${PORTDOCS_F}
95
.for f in ${PORTDOCS_F}
85
	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/${f}
96
	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/${f}
(-)files/gifinter.in (+3 lines)
Line 0 Link Here
1
exec \
2
%%IMAGEMAGICK%%%%PREFIX%%/bin/convert -interlace "$@"
3
%%GRAPHICSMAGICK%%%%PREFIX%%/bin/gm convert -interlace "$@"

Return to bug 254107