freebsd-ports/www/p5-CGI.pm/Makefile

56 lines
1.6 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: www/p5-CGI.pm
# Date created: 12 July 2001
# Whom: Anton Berezin <tobez@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= CGI.pm
PORTVERSION= 3.10
PORTEPOCH= 1
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= CGI
PKGNAMEPREFIX= p5-
MAINTAINER= tobez@FreeBSD.org
2003-03-06 00:26:29 +01:00
COMMENT= Simple Common Gateway Interface Class for Perl
PERL_CONFIGURE= yes
CONFIGURE_ARGS= INSTALLDIRS=site
2003-03-06 00:26:29 +01:00
MAN3= CGI.3 CGI::Apache.3 CGI::Carp.3 CGI::Cookie.3 \
CGI::Fast.3 CGI::Pretty.3 CGI::Push.3 CGI::Switch.3 \
CGI::Util.3
.if !defined(NOPORTDOCS)
EXAMPLES= examples/caution.xbm examples/clickable_image.cgi \
examples/cookie.cgi examples/crash.cgi examples/customize.cgi \
examples/diff_upload.cgi examples/dna.small.gif \
examples/file_upload.cgi examples/frameset.cgi \
examples/index.html examples/internal_links.cgi \
examples/javascript.cgi examples/make_links.pl \
examples/monty.cgi examples/multiple_forms.cgi \
examples/nph-clock.cgi examples/nph-multipart.cgi \
examples/popup.cgi examples/save_state.cgi \
examples/tryit.cgi examples/wilogo.gif
post-install:
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${EXAMPLES:S|^|${WRKSRC}/|} ${EXAMPLESDIR}
@${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}."
.endif
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500601
BUILD_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
RUN_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
2005-04-11 10:40:49 +02:00
post-patch:
@${PERL} -i -pe '$$_ = "" if /require 5\.6/' ${WRKSRC}/Makefile.PL
.endif
.include <bsd.port.post.mk>