1997-01-04 13:54:38 -05:00
|
|
|
# New ports collection makefile for: eperl
|
1997-08-11 04:59:06 -04:00
|
|
|
# Version required: 2.2.1
|
|
|
|
# Date created: Sat Aug 2 17:22:46 MET DST 1997
|
1997-05-03 03:54:54 -04:00
|
|
|
# Whom: Ralf S. Engelschall <rse@engelschall.com>
|
1997-01-04 13:54:38 -05:00
|
|
|
#
|
1997-08-11 04:59:06 -04:00
|
|
|
# $Id$
|
1997-01-04 13:54:38 -05:00
|
|
|
#
|
|
|
|
|
1997-08-11 04:59:06 -04:00
|
|
|
DISTNAME= eperl-2.2.1
|
1997-05-03 03:54:54 -04:00
|
|
|
CATEGORIES= lang www perl5
|
1997-08-11 04:59:06 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN} \
|
|
|
|
http://www.engelschall.com/sw/eperl/distrib/ \
|
1997-05-03 08:36:05 -04:00
|
|
|
ftp://ftp.engelschall.com/sw/
|
1997-08-11 04:59:06 -04:00
|
|
|
MASTER_SITE_SUBDIR=Parse
|
1997-01-04 13:54:38 -05:00
|
|
|
|
|
|
|
MAINTAINER= rse@engelschall.com
|
|
|
|
|
1997-05-03 03:54:54 -04:00
|
|
|
# User-controlled variables list
|
1997-08-11 04:59:06 -04: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 03:54:54 -04:00
|
|
|
|
|
|
|
.if defined(INSTALL_ALSO_AS_SSSL)
|
1997-08-03 12:46:18 -04:00
|
|
|
RUN_DEPENDS= ${PREFIX}/etc/apache/srm.conf:${PORTSDIR}/www/apache-stable
|
1997-05-03 03:54:54 -04:00
|
|
|
.endif
|
1997-01-04 13:54:38 -05:00
|
|
|
|
1997-07-18 01:04:20 -04:00
|
|
|
USE_PERL5= yes
|
1997-08-11 04:59:06 -04:00
|
|
|
HAS_CONFIGURE= yes
|
1997-05-03 03:54:54 -04:00
|
|
|
CONFIGURE_ARGS+=--with-perl=${PREFIX}/bin/perl
|
1997-01-04 13:54:38 -05:00
|
|
|
|
1997-08-11 04:59:06 -04:00
|
|
|
MAN1= eperl.1
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
rm -f ${WRKSRC}/eg/demo.errsync.phtml # remove bad file
|
|
|
|
|
|
|
|
test:
|
|
|
|
@(cd ${WRKSRC}; make test)
|
|
|
|
|
1997-01-04 13:54:38 -05:00
|
|
|
do-install:
|
1997-05-03 03:54:54 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/eperl ${PREFIX}/bin/eperl
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/eperl.1 ${PREFIX}/man/man1/eperl.1
|
1997-01-04 18:40:19 -05:00
|
|
|
.if !defined(NOPORTDOCS)
|
1997-05-03 03:54:54 -04:00
|
|
|
@if [ ! -d ${PREFIX}/share/examples/eperl ]; then \
|
|
|
|
${MKDIR} -p ${PREFIX}/share/examples/eperl; \
|
|
|
|
fi
|
1997-08-11 04:59:06 -04:00
|
|
|
${CP} ${WRKSRC}/eg/* ${PREFIX}/share/examples/eperl/
|
|
|
|
.endif
|
1997-05-03 03:54:54 -04:00
|
|
|
.if defined(INSTALL_ALSO_AS_SSSL)
|
1997-08-11 04:59:06 -04: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 03:54:54 -04:00
|
|
|
@if [ ".`grep x-httpd-eperl ${PREFIX}/etc/apache/srm.conf`" = . ]; then \
|
1997-08-11 04:59:06 -04:00
|
|
|
${ECHO} "AddType application/x-httpd-eperl .phtml .eperl .epl" \
|
1997-05-03 03:54:54 -04:00
|
|
|
>>${PREFIX}/etc/apache/srm.conf; \
|
1997-08-11 04:59:06 -04:00
|
|
|
${ECHO} "Action application/x-httpd-eperl /cgi-bin/nph-eperl" \
|
1997-05-03 03:54:54 -04:00
|
|
|
>>${PREFIX}/etc/apache/srm.conf; \
|
1997-08-11 04:59:06 -04:00
|
|
|
${ECHO} "Added knowledge about ePerl to Apache's srm.conf"; \
|
1997-05-03 03:54:54 -04:00
|
|
|
else \
|
1997-08-11 04:59:06 -04:00
|
|
|
${ECHO} "Apache srm.conf is already aware of ePerl"; \
|
1997-05-03 03:54:54 -04:00
|
|
|
fi
|
1997-08-11 04:59:06 -04:00
|
|
|
.endif
|
1997-01-04 13:54:38 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|