pkgsrc/www/p5-CGI/Makefile
veego 63ad910dee SVR4 packages have a limit of 9 chars for a package name.
The automatic truncation in gensolpkg doesn't work for packages which
have the same package name for the first 5-6 chars.
e.g. amanda-server and amanda-client would be named amanda and amanda.
Now, we add a SVR4_PKGNAME and use amacl for amanda-client and amase for
amanda-server.
All svr4 packages also have a vendor tag, so we have to reserve some chars
for this tag, which is normaly 3 or 4 chars. Thats why we can only use 6
or 5 chars for SVR4_PKGNAME. I used 5 for all the packages, to give the
vendor tag enough room.
All p5-* packages and a few other packages have now a SVR4_PKGNAME.
2001-10-18 15:20:01 +00:00

48 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.15 2001/10/18 15:20:47 veego Exp $
#
DISTNAME= CGI.pm-2.752
PKGNAME= p5-CGI-2.75.2
SVR4_PKGNAME= p5cgi
CATEGORIES= www perl5
MASTER_SITES= http://stein.cshl.org/WWW/software/CGI/ \
${MASTER_SITE_PERL_CPAN:=CGI/}
MAINTAINER= jlam@netbsd.org
HOMEPAGE= http://stein.cshl.org/WWW/software/CGI/
COMMENT= perl5 module for writing forms-based CGI programs
# Some perl packages install their own versions of this module.
# Can't simply define USE_PERL5.
DEPENDS+= {perl-5.0*,perl-5.6.0nb2,perl-base>=5.6.0,perl>=5.6.1nb2}:../../lang/perl5
PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/CGI/.packlist
HTMLDIR= ${PREFIX}/share/doc/html/p5-CGI
do-configure:
cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL
post-build:
cd ${WRKSRC}/examples; \
for file in *.cgi *.pl; do \
${SED} -e "s|^#!/.*|#!${PERL5}|g" \
$${file} > $${file}.tmp; \
${MV} -f $${file}.tmp $${file}; \
done; \
${CHMOD} +x *.cgi; \
${PERL5} make_links.pl
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
.include "../../mk/bsd.pkg.mk"
.if !defined(PERL5_SITEARCH)
PERL5_SITEARCH!= eval `${PERL5} -V:installsitearch 2>/dev/null`; \
${ECHO} $${installsitearch}
.endif