2003-09-14 07:33:29 +02:00
|
|
|
# $NetBSD: Makefile,v 1.24 2003/09/14 05:33:29 kim Exp $
|
2000-05-11 22:04:03 +02:00
|
|
|
#
|
|
|
|
|
2003-09-14 07:33:29 +02:00
|
|
|
VERS= 2.98
|
2003-04-21 20:33:35 +02:00
|
|
|
DISTNAME= CGI.pm-${VERS}
|
|
|
|
PKGNAME= p5-CGI-${VERS}
|
2001-10-18 17:20:01 +02:00
|
|
|
SVR4_PKGNAME= p5cgi
|
2000-05-11 22:04:03 +02:00
|
|
|
CATEGORIES= www perl5
|
2003-04-21 20:33:35 +02:00
|
|
|
MASTER_SITES+= ${MASTER_SITE_PERL_CPAN:=CGI/}
|
2000-05-11 22:04:03 +02:00
|
|
|
|
2003-07-18 00:50:55 +02:00
|
|
|
MAINTAINER= jlam@NetBSD.org
|
2000-10-15 04:17:16 +02:00
|
|
|
HOMEPAGE= http://stein.cshl.org/WWW/software/CGI/
|
2003-07-22 06:14:17 +02:00
|
|
|
COMMENT= Perl5 module for writing forms-based CGI programs
|
2000-05-11 22:04:03 +02:00
|
|
|
|
2000-09-05 11:25:20 +02:00
|
|
|
# Some perl packages install their own versions of this module.
|
|
|
|
# Can't simply define USE_PERL5.
|
2001-11-26 07:49:36 +01:00
|
|
|
BUILDLINK_DEPENDS.perl= {perl-5.0*,perl-5.6.0nb2,perl-base>=5.6.0,perl>=5.6.1nb2}
|
2000-08-29 21:14:28 +02:00
|
|
|
|
2002-10-08 00:34:23 +02:00
|
|
|
USE_BUILDLINK2= YES
|
2000-08-27 09:10:59 +02:00
|
|
|
PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/CGI/.packlist
|
2000-09-15 16:50:58 +02:00
|
|
|
HTMLDIR= ${PREFIX}/share/doc/html/p5-CGI
|
|
|
|
|
|
|
|
post-build:
|
2001-02-02 18:52:25 +01:00
|
|
|
cd ${WRKSRC}/examples; \
|
|
|
|
for file in *.cgi *.pl; do \
|
|
|
|
${SED} -e "s|^#!/.*|#!${PERL5}|g" \
|
2001-09-09 05:12:28 +02:00
|
|
|
$${file} > $${file}.tmp; \
|
|
|
|
${MV} -f $${file}.tmp $${file}; \
|
2001-02-02 18:52:25 +01:00
|
|
|
done; \
|
|
|
|
${CHMOD} +x *.cgi; \
|
|
|
|
${PERL5} make_links.pl
|
2000-09-15 16:50:58 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${HTMLDIR}
|
2000-10-15 04:17:16 +02:00
|
|
|
${INSTALL_DATA_DIR} ${HTMLDIR}/examples
|
|
|
|
cd ${WRKSRC}; ${INSTALL_DATA} *.html ${HTMLDIR}
|
2001-02-02 18:52:25 +01:00
|
|
|
cd ${WRKSRC}/examples; \
|
|
|
|
${INSTALL_DATA} *.gif *.html *.txt *.xbm ${HTMLDIR}/examples; \
|
|
|
|
${INSTALL_SCRIPT} *.cgi ${HTMLDIR}/examples
|
2000-09-15 16:50:58 +02:00
|
|
|
|
2002-10-08 00:34:23 +02:00
|
|
|
.include "../../lang/perl5/module.mk"
|
2000-05-11 22:04:03 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|