pkgsrc/www/p5-CGI/Makefile
grant 908e765695 since perl is now built with threads on most platforms, the perl archlib
module directory has changed (eg. "darwin-2level" vs.
"darwin-thread-multi-2level").

binary packages of perl modules need to be distinguishable between
being built against threaded perl and unthreaded perl, so bump the
PKGREVISION of all perl module packages and introduce
BUILDLINK_RECOMMENDED for perl as perl>=5.8.5nb5 so the correct
dependencies are registered and the binary packages are distinct.

addresses PR pkg/28619 from H. Todd Fujinaka.
2004-12-20 11:30:55 +00:00

46 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.30 2004/12/20 11:31:13 grant Exp $
#
VERS= 3.05
DISTNAME= CGI.pm-${VERS}
PKGNAME= p5-CGI-${VERS}
SVR4_PKGNAME= p5cgi
PKGREVISION= 1
CATEGORIES= www perl5
MASTER_SITES+= ${MASTER_SITE_PERL_CPAN:=CGI/}
MAINTAINER= tech-pkg@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.
BUILDLINK_DEPENDS.perl= {perl-5.0*,perl-5.6.0nb2,perl-base>=5.6.0,perl{,-thread}>=5.6.1nb2}
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_BUILDLINK3= YES
USE_LANGUAGES= # empty
PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/CGI/.packlist
HTMLDIR= ${PREFIX}/share/doc/html/p5-CGI
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 "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"