1997-01-04 18:54:38 +00:00
|
|
|
# New ports collection makefile for: eperl
|
1998-08-02 14:55:26 +00:00
|
|
|
# Version required: 2.2.14
|
1997-10-28 12:43:06 +00:00
|
|
|
# Date created: 03-Sep-1997
|
1997-05-03 07:54:54 +00:00
|
|
|
# Whom: Ralf S. Engelschall <rse@engelschall.com>
|
1997-01-04 18:54:38 +00:00
|
|
|
#
|
1999-08-23 04:23:59 +00:00
|
|
|
# $Id: Makefile,v 1.29 1998/09/15 21:31:46 asami Exp $
|
1997-01-04 18:54:38 +00:00
|
|
|
#
|
|
|
|
|
1998-08-02 14:55:26 +00:00
|
|
|
DISTNAME= eperl-2.2.14
|
1997-05-03 07:54:54 +00:00
|
|
|
CATEGORIES= lang www perl5
|
1997-12-31 09:25:39 +00:00
|
|
|
MASTER_SITES= http://www.engelschall.com/sw/eperl/distrib/ \
|
1997-12-25 11:08:53 +00:00
|
|
|
ftp://ftp.engelschall.com/sw/eperl/ \
|
1997-12-31 09:25:39 +00:00
|
|
|
ftp://ftp.hyperreal.org/software/engelschall/eperl/ \
|
|
|
|
${MASTER_SITE_PERL_CPAN}
|
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
|
1997-10-28 12:43:06 +00:00
|
|
|
#INSTALL_ALSO_AS_SSSL= yes
|
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
|
1998-09-15 21:31:59 +00:00
|
|
|
CONFIGURE_ARGS= --with-perl=${PERL5}
|
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 \
|
1997-10-28 12:50:42 +00:00
|
|
|
${MKDIR} ${PREFIX}/share/examples/eperl; \
|
1997-05-03 07:54:54 +00:00
|
|
|
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 \
|
1997-10-28 12:50:42 +00:00
|
|
|
${MKDIR} ${PREFIX}/www/cgi-bin; \
|
1997-08-11 08:59:06 +00:00
|
|
|
fi
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/eperl ${PREFIX}/www/cgi-bin/nph-eperl
|
1999-08-23 04:23:59 +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>
|