pkgsrc/textproc/p5-XML-Sablotron/Makefile
jlam 7fbb8d9527 Bump the PKGREVISIONs of all (638) packages that hardcode the locations
of Perl files to deal with the perl-5.8.7 update that moved all
pkgsrc-installed Perl files into the "vendor" directories.
2005-08-06 06:19:03 +00:00

37 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.6 2005/08/06 06:19:34 jlam Exp $
DISTNAME= XML-Sablotron-0.98
PKGNAME= p5-${DISTNAME}
PKGREVISION= 3
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}/Makefile.PL ${WRKSRC}/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}/Makefile.PL.orig > ${WRKSRC}/Makefile.PL
.include "../../mk/bsd.pkg.mk"