aboutsummaryrefslogtreecommitdiffstats
path: root/security/p5-GD-SecurityImage/Makefile
blob: c908dd6d4ba967533131caf2384fc6f22aac1058 (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
# Created by: ports@rbt.ca
# $FreeBSD$

PORTNAME=   GD-SecurityImage
PORTVERSION=    1.72
PORTEPOCH=  1
CATEGORIES= security perl5
MASTER_SITES=   CPAN
PKGNAMEPREFIX=  p5-

MAINTAINER= perl@FreeBSD.org
COMMENT=    Perl5 module for creating CAPTCHA security images

BUILD_DEPENDS=  p5-GD>=0:${PORTSDIR}/graphics/p5-GD
RUN_DEPENDS=    p5-GD>=0:${PORTSDIR}/graphics/p5-GD

OPTIONS_DEFINE= IMAGEMAGICK
IMAGEMAGICK_DESC=   Build ImageMagick module

PORTSCOUT=  skipv:1.581

USES=       perl5
USE_PERL5=  configure

MAN3=       GD::SecurityImage.3 \
        GD::SecurityImage::GD.3 \
        GD::SecurityImage::Magick.3 \
        GD::SecurityImage::Styles.3

NO_STAGE=   yes
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MIMAGEMAGICK}
BUILD_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick
RUN_DEPENDS+=   convert:${PORTSDIR}/graphics/ImageMagick
.endif

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 501400
BUILD_DEPENDS+= p5-Module-Build>=0.3800:${PORTSDIR}/devel/p5-Module-Build
.endif

.include <bsd.port.post.mk>