1997-01-04 18:54:38 +00:00
|
|
|
# New ports collection makefile for: eperl
|
1997-09-03 10:34:17 +00:00
|
|
|
# Version required: 2.2.5
|
|
|
|
# Date created: Wed Sep 3 12:31:36 MET DST 1997
|
1997-05-03 07:54:54 +00:00
|
|
|
# Whom: Ralf S. Engelschall <rse@engelschall.com>
|
1997-01-04 18:54:38 +00:00
|
|
|
#
|
1997-09-03 10:34:17 +00:00
|
|
|
# $Id: Makefile,v 1.13 1997/09/01 14:11:02 rse Exp $
|
1997-01-04 18:54:38 +00:00
|
|
|
#
|
|
|
|
|
1997-09-03 10:34:17 +00:00
|
|
|
DISTNAME= eperl-2.2.5
|
1997-05-03 07:54:54 +00:00
|
|
|
CATEGORIES= lang www perl5
|
1997-08-11 08:59:06 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN} \
|
|
|
|
http://www.engelschall.com/sw/eperl/distrib/ \
|
1997-05-03 12:36:05 +00:00
|
|
|
ftp://ftp.engelschall.com/sw/
|
1997-08-11 08:59:06 +00:00
|
|
|
MASTER_SITE_SUBDIR=Parse
|
1997-01-04 18:54:38 +00:00
|
|
|
|
|
|
|
MAINTAINER= rse@engelschall.com
|
|
|
|
|
1997-05-03 07:54:54 +00:00
|
|
|
# User-controlled variables list
|
1997-08-11 08:59:06 +00:00
|
|
|
# INSTALL_ALSO_AS_SSSL
|
|
|
|
# install ePerl also as a Server-Side
|
|
|
|
# Scripting Language (SSSL) for Apache
|
|
|
|
INSTALL_ALSO_AS_SSSL= no
|
1997-05-03 07:54:54 +00:00
|
|
|
|
|
|
|
.if defined(INSTALL_ALSO_AS_SSSL)
|
1997-08-13 09:40:07 +00:00
|
|
|
RUN_DEPENDS= ${PREFIX}/etc/apache/srm.conf:${PORTSDIR}/www/apache
|
1997-05-03 07:54:54 +00:00
|
|
|
.endif
|
1997-01-04 18:54:38 +00:00
|
|
|
|
1997-07-18 05:04:20 +00:00
|
|
|
USE_PERL5= yes
|
1997-08-11 08:59:06 +00:00
|
|
|
HAS_CONFIGURE= yes
|
1997-05-03 07:54:54 +00:00
|
|
|
CONFIGURE_ARGS+=--with-perl=${PREFIX}/bin/perl
|
1997-01-04 18:54:38 +00:00
|
|
|
|
1997-08-11 08:59:06 +00:00
|
|
|
MAN1= eperl.1
|
|
|
|
|
|
|
|
test:
|
|
|
|
@(cd ${WRKSRC}; make test)
|
|
|
|
|
1997-01-04 18:54:38 +00:00
|
|
|
do-install:
|
1997-05-03 07:54:54 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/eperl ${PREFIX}/bin/eperl
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/eperl.1 ${PREFIX}/man/man1/eperl.1
|
1997-01-04 23:40:19 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
1997-05-03 07:54:54 +00:00
|
|
|
@if [ ! -d ${PREFIX}/share/examples/eperl ]; then \
|
|
|
|
${MKDIR} -p ${PREFIX}/share/examples/eperl; \
|
|
|
|
fi
|
1997-08-11 08:59:06 +00:00
|
|
|
${CP} ${WRKSRC}/eg/* ${PREFIX}/share/examples/eperl/
|
|
|
|
.endif
|
1997-05-03 07:54:54 +00:00
|
|
|
.if defined(INSTALL_ALSO_AS_SSSL)
|
1997-08-11 08:59:06 +00:00
|
|
|
@if [ ! -d ${PREFIX}/www/cgi-bin ]; then \
|
|
|
|
${MKDIR} -p ${PREFIX}/www/cgi-bin; \
|
|
|
|
fi
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/eperl ${PREFIX}/www/cgi-bin/nph-eperl
|
1997-05-03 07:54:54 +00:00
|
|
|
@if [ ".`grep x-httpd-eperl ${PREFIX}/etc/apache/srm.conf`" = . ]; then \
|
1997-08-11 08:59:06 +00:00
|
|
|
${ECHO} "AddType application/x-httpd-eperl .phtml .eperl .epl" \
|
1997-05-03 07:54:54 +00:00
|
|
|
>>${PREFIX}/etc/apache/srm.conf; \
|
1997-08-11 08:59:06 +00:00
|
|
|
${ECHO} "Action application/x-httpd-eperl /cgi-bin/nph-eperl" \
|
1997-05-03 07:54:54 +00:00
|
|
|
>>${PREFIX}/etc/apache/srm.conf; \
|
1997-08-11 08:59:06 +00:00
|
|
|
${ECHO} "Added knowledge about ePerl to Apache's srm.conf"; \
|
1997-05-03 07:54:54 +00:00
|
|
|
else \
|
1997-08-11 08:59:06 +00:00
|
|
|
${ECHO} "Apache srm.conf is already aware of ePerl"; \
|
1997-05-03 07:54:54 +00:00
|
|
|
fi
|
1997-08-11 08:59:06 +00:00
|
|
|
.endif
|
1997-01-04 18:54:38 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|