blob: 63add55bb6324ae7bce8bb338ac3a2f20294838f (
plain)
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
|
# $NetBSD: Makefile,v 1.9 2006/02/05 23:11:05 joerg Exp $
DISTNAME= XML-Sablotron-0.98
PKGNAME= p5-${DISTNAME}
PKGREVISION= 5
SVR4_PKGNAME= p5xsb
CATEGORIES= textproc perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=XML/}
MAINTAINER= adam@migus.org
HOMEPAGE= http://www.gingerall.com/charlie/ga/xml/p_sab.xml
COMMENT= Perl interface to the Sablotron XSLT processor
DEPENDS+= p5-XML-DOM>=1.25:../../textproc/p5-XML-DOM
DEPENDS+= p5-XML-Parser>=2.23:../../textproc/p5-XML-Parser
EXPATLIBPATH= ${BUILDLINK_PREFIX.expat}/lib
EXPATINCPATH= ${BUILDLINK_PREFIX.expat}/include
SABLOTLIBPATH= ${BUILDLINK_PREFIX.sablotron}/lib
SABLOTINCPATH= ${BUILDLINK_PREFIX.sablotron}/include
PERL5_PACKLIST= auto/XML/Sablotron/.packlist
.include "../../textproc/expat/buildlink3.mk"
.include "../../textproc/sablotron/buildlink3.mk"
.include "../../lang/perl5/module.mk"
post-patch:
@${MV} ${WRKSRC:Q}/Makefile.PL ${WRKSRC:Q}/Makefile.PL.orig
@${SED} \
-e 's|^\(my \$$expat_libpath = '\)\(';\)$$|\1${EXPATLIBPATH}\2|' \
-e 's|^\(my \$$expat_incpath = '\)\(';\)$$|\1${EXPATINCPATH}\2|' \
-e 's|^\(my \$$sablot_libpath = '\)\(';\)$$|\1${SABLOTLIBPATH}\2|' \
-e 's|^\(my \$$sablot_incpath = '\)\(';\)$$|\1${SABLOTINCPATH}\2|' \
${WRKSRC:Q}/Makefile.PL.orig > ${WRKSRC:Q}/Makefile.PL
.include "../../mk/bsd.pkg.mk"
|