pkgsrc/www/p5-CGI/Makefile

43 lines
1.2 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.9 2001/02/02 17:52:25 jlam Exp $
#
DISTNAME= CGI.pm-2.75
PKGNAME= p5-CGI-2.75
CATEGORIES= www perl5
MASTER_SITES= http://stein.cshl.org/WWW/software/CGI/ \
${MASTER_SITE_PERL_CPAN:=CGI/}
MAINTAINER= christos@netbsd.org
HOMEPAGE= http://stein.cshl.org/WWW/software/CGI/
# Some perl packages install their own versions of this module.
# Can't simply define USE_PERL5.
DEPENDS+= perl-{5.0*,5.6.0nb2,base-5.[6-9]*}:../../lang/perl5-base
PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/CGI/.packlist
2000-09-15 16:50:58 +02:00
HTMLDIR= ${PREFIX}/share/doc/html/p5-CGI
do-configure:
cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL
2000-09-15 16:50:58 +02:00
post-build:
cd ${WRKSRC}/examples; \
for file in *.cgi *.pl; do \
${MV} -f $${file} $${file}.tmp; \
${SED} -e "s|^#!/.*|#!${PERL5}|g" \
$${file}.tmp > $${file}; \
${RM} -f $${file}.tmp; \
done; \
${CHMOD} +x *.cgi; \
${PERL5} make_links.pl
2000-09-15 16:50:58 +02:00
post-install:
${INSTALL_DATA_DIR} ${HTMLDIR}
${INSTALL_DATA_DIR} ${HTMLDIR}/examples
cd ${WRKSRC}; ${INSTALL_DATA} *.html ${HTMLDIR}
cd ${WRKSRC}/examples; \
${INSTALL_DATA} *.gif *.html *.txt *.xbm ${HTMLDIR}/examples; \
${INSTALL_SCRIPT} *.cgi ${HTMLDIR}/examples
2000-09-15 16:50:58 +02:00
.include "../../mk/bsd.pkg.mk"