aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/p5-PDF-API2/Makefile
blob: 33e737adaa519e4891342773b654695314a8b297 (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
# ex:ts=8
# Ports collection makefile for:    p5-PDF-API2
# Date created:         Feb 2, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   PDF-API2
PORTVERSION=    0.3r77
CATEGORIES= textproc perl5
MASTER_SITES=   ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= PDF
PKGNAMEPREFIX=  p5-

MAINTAINER= erwin@FreeBSD.org
COMMENT=    'The Next Generation' of Text::PDF::API

BUILD_DEPENDS=  ${PERL_SITELIBDIR}/${PERL_ARCH}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib
RUN_DEPENDS=    ${BUILD_DEPENDS}

PERL_CONFIGURE= yes
PERL_SITELIBDIR=    ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}

FILES=      API2.pm API2/IOString.pm API2/UniMap.pm  \
        API2/PDF/FileAPI.pm API2/TTF/Font.pm

pre-patch:
.for i in ${FILES}
    @${PERL} -pi -e '$$_="" if /require 5/;' \
        -e '$$_="" if /no warnings/;' \
        ${WRKSRC}/lib/PDF/${i}
.endfor

.include <bsd.port.mk>