1997-01-04 13:54:38 -05:00
|
|
|
# New ports collection makefile for: eperl
|
1997-10-28 07:43:06 -05:00
|
|
|
# Version required: 2.2.6
|
|
|
|
# Date created: 03-Sep-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-10-28 07:50:42 -05:00
|
|
|
# $Id: Makefile,v 1.15 1997/10/28 12:43:04 rse Exp $
|
1997-01-04 13:54:38 -05:00
|
|
|
#
|
|
|
|
|
1997-10-28 07:43:06 -05:00
|
|
|
DISTNAME= eperl-2.2.6
|
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
|
1997-10-28 07:43:06 -05:00
|
|
|
#INSTALL_ALSO_AS_SSSL= yes
|
1997-05-03 03:54:54 -04:00
|
|
|
|
|
|
|
.if defined(INSTALL_ALSO_AS_SSSL)
|
1997-08-13 05:40:07 -04:00
|
|
|
RUN_DEPENDS= ${PREFIX}/etc/apache/srm.conf:${PORTSDIR}/www/apache
|
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
|
|
|
|
|
|
|
|
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 \
|
1997-10-28 07:50:42 -05:00
|
|
|
${MKDIR} ${PREFIX}/share/examples/eperl; \
|
1997-05-03 03:54:54 -04:00
|
|
|
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 \
|
1997-10-28 07:50:42 -05:00
|
|
|
${MKDIR} ${PREFIX}/www/cgi-bin; \
|
1997-08-11 04:59:06 -04:00
|
|
|
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>
|